能力标签
🔄
n8n工作流

海流

基于 TypeScript · 可视化低代码工作流,300+ 服务连接器
英文名:haiflow
⭐ 8 Stars 🍴 3 Forks 💻 TypeScript 📄 MIT 🏷 AI 8.0分
8.0AI 综合评分
n8naiagentai-automation
✦ AI Skill Hub 推荐

海流 是 AI Skill Hub 本期精选n8n工作流之一。综合评分 8.0 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。

📚 深度解析

海流 是基于 n8n 平台的可视化工作流模板。n8n 是目前最受开发者欢迎的开源工作流自动化工具之一,支持自托管部署,同时提供云端版本,通过拖拽式界面连接数百种应用和服务,无需编写代码即可构建复杂的自动化流程。

海流 工作流模板封装了特定场景下的最佳实践配置。导入后你无需从零开始搭建——只需根据向导配置必要的 API Key 和账号信息,激活工作流后即可立即运行。这类预制模板特别适合希望快速验证自动化方案可行性的用户,避免在节点连接和逻辑配置上花费大量时间。

n8n 的核心优势在于数据主权:自托管版本的所有数据(包括 Credentials 和执行记录)完全存储在你自己的服务器上,适合对数据隐私有要求的企业和个人用户。AI Skill Hub 推荐通过 Docker 部署 n8n 自托管实例,并将 海流 作为工作流库的起始模板。

📋 工具概览

海流 是一款基于 TypeScript 开发的开源工具,专注于 n8n、ai、agent 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。

GitHub Stars
⭐ 8
开发语言
TypeScript
支持平台
Windows / macOS / Linux
维护状态
轻量级项目,按需更新
开源协议
MIT
AI 综合评分
8.0 分
工具类型
n8n工作流
Forks
3

📖 中文文档

以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

海流 是一款基于 TypeScript 开发的开源工具,专注于 n8n、ai、agent 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。

📌 核心特色
  • 基于 n8n 平台的可视化低代码工作流
  • 支持拖拽式节点编排,将自动化门槛降至最低
  • 内置 300+ 第三方服务连接器,覆盖主流工具生态
  • 支持 Webhook、定时触发、事件驱动等多种启动方式
  • 可导出 JSON 文件,方便团队共享和版本管理
🎯 主要使用场景
  • 定时采集外部数据并自动生成分析报告推送
  • 实现多系统间的数据同步和状态更新通知
  • 构建自动化运维告警和响应处置流程
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 方式一:npm 全局安装
npm install -g haiflow

# 方式二:npx 直接运行(无需安装)
npx haiflow --help

# 方式三:项目依赖安装
npm install haiflow

# 方式四:从源码运行
git clone https://github.com/andersonaguiar/haiflow
cd haiflow
npm install
npm start
📋 安装步骤说明
  1. 访问 GitHub 仓库,下载工作流 JSON 文件
  2. 登录 n8n 工作台
  3. 点击右上角「导入工作流」按钮
  4. 上传或粘贴 JSON 内容
  5. 根据提示配置必要的 API Key、账号等参数
  6. 激活工作流后即可正常运行
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 命令行使用
haiflow --help

# 基本用法
haiflow [options] <input>

# Node.js 代码中使用
const haiflow = require('haiflow');

const result = await haiflow.run(options);
console.log(result);
以下配置示例基于典型使用场景生成,具体参数请参照官方文档调整。
配置示例
// n8n 工作流配置步骤
// 1. 在 n8n 中点击 "Import Workflow"
// 2. 粘贴 JSON 文件内容或上传文件
// 3. 配置必要的 Credentials:
//    - Settings → Credentials → New
//    - 选择对应服务类型填写 API Key
// 4. 激活工作流 (Toggle ON)
// 5. 通过 Webhook 或定时触发器运行
📑 README 深度解析 真实文档 完整度 70/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

haiflow

hooks · ai · flow

License: MIT Bun TypeScript Claude Code n8n tmux GitHub stars

Run Claude Code as a headless AI agent over HTTP — no API key costs, no SDK, just your existing Claude Code subscription.

Haiflow wraps Claude Code in tmux sessions and exposes a REST API to trigger prompts, queue work, and capture responses. Automate anything you can do in Claude Code — code generation, refactoring, bug triage, daily reports — from any HTTP client.

Why not the Claude API? Claude Code includes tool use, file access, git integration, and your custom skills out of the box. Haiflow lets you automate all of that via HTTP without paying per-token API costs. Use n8n, cron, webhooks, or any automation tool to drive it.

demo

POST /trigger ───┐
                 │        ┌────────────────┐
             ┌───▼───┐    │  tmux session  │
             │ Queue ├───>│   (claude)     │
             │ (FIFO)│    └───────┬────────┘
             └───────┘            │
                           hooks fire on
                           session events
                                  │
                          ┌───────▼────────┐
                          │    Responses   │
                          └───────┬────────┘
                                  │
GET /responses/:id <──────────────┤
                                  │
GET /responses/:id/stream <───────┘  (SSE)

Prerequisites

  • Bun v1.2.3+
  • tmux
  • Claude Code CLI
  • jq
  • Redisoptional, enables event persistence and delivery retry. Without it, pipeline events fire but aren't persisted. Run with docker run -d -p 6379:6379 redis.

1. Install dependencies

bun install

Setup

2. Install hooks

Haiflow uses Claude Code hooks to track session state. The setup command merges hook config into ~/.claude/settings.json:

bun run setup

The hooks are thin HTTP forwarders — they POST Claude Code events to the haiflow server. If the server isn't running, they silently no-op. They won't interfere with non-orchestrated Claude sessions (the server ignores unknown session IDs).

Setup

  1. Create pipeline.json in your HAIFLOW_DATA_DIR (default /tmp/haiflow):
{
  "topics": {
    "design.ready": {
      "description": "Design agent completed its analysis",
      "subscribers": [
        {
          "session": "developer",
          "promptTemplate": "Implement this design:\n\n{{message}}"
        }
      ]
    },
    "code.ready": {
      "subscribers": [
        {
          "session": "code-reviewer",
          "promptTemplate": "Review these changes:\n\n{{message}}"
        }
      ]
    }
  },
  "emitters": {
    "design-agent": ["design.ready"],
    "developer": ["code.ready"]
  }
}
  1. Start your agents and trigger the first one. The pipeline handles the rest.

```bash

Quick start

Integration examples

Haiflow works with any tool that can make HTTP requests. Here are a few examples:

n8n (example workflow templates included)

Import the chained calc workflow from examples/chained-calc/: - chained-calc-step1.json — Step 1: calculate 2+2 - chained-calc-step2.json — Step 2: multiply result by 5 - chained-calc-step3.json — Step 3: multiply result by 10 - pipeline-calc-chain.json — Pipeline configuration that wires them together

Edit .env and set HAIFLOW_API_KEY to any secret string you choose

bun run dev # starts server with hot reload ```

3. Configure environment (optional)

cp .env.example .env
VariableDefaultDescription
PORT3333HTTP server port
HAIFLOW_DATA_DIR/tmp/haiflowDirectory for session state, queues, and responses
HAIFLOW_PORT3333Port used by hook scripts (set if different from PORT)
HAIFLOW_API_KEY**Required.** Any string you choose — this is your own secret, not a paid key
HAIFLOW_CWDWhen set, every session is forced to use this cwd. The cwd field in /session/start request bodies is ignored (a warning is logged if it differs).
HAIFLOW_ALLOW_REQUEST_CWDtrueWhen false, /session/start rejects requests that try to set their own cwdHAIFLOW_CWD must be set on the server instead.
HAIFLOW_GUARDRAILStrueInstalls ~/.claude/skills/haiflow-guardrails/SKILL.md on server boot and injects /haiflow-guardrails into each new tmux session. The skill instructs Claude to refuse paths outside cwd, refuse to read secrets, and refuse network exfiltration.
REDIS_URLredis://localhost:6379**Required.** Redis URL for event persistence and delivery tracking
N8N_API_KEYn8n API key for workflow integration
HAIFLOW_USAGE_ALERT_TOKENSWhen set, GET /usage/window flags alert: true once the rolling 5h token total crosses it (alert-only, never throttles)
HAIFLOW_TASK_TIMEOUT_SEC0Optional hard per-task timeout. 0 disables it. The watchdog flags tasks that exceed it
HAIFLOW_WAITING_GRACE_SEC120How long a session flagged waiting by Claude's Notification hook may stay blocked before the watchdog acts
HAIFLOW_WATCHDOG_RECOVERfalseWhen true, the watchdog auto-recovers a wedged session (Escape, mark timed_out, drain). Default alert-only
HAIFLOW_MAP_MAX_ITEMS200Max items one POST /map call may fan across a pool
HAIFLOW_MAP_TIMEOUT_SEC1800How long a map run waits for stragglers before the reducer fires with partial results

View pipeline config, Redis status, and recent events

curl -s -H "Authorization: Bearer $HAIFLOW_API_KEY" \ http://localhost:3333/pipeline | jq .

API

See API.md for the full API reference — all endpoints, parameters, and examples.

Agent pipeline

Chain agents together with event-driven pub/sub. Each agent subscribes to topics it cares about and emits events when done — no hardcoded dependencies between agents.

Design Agent ──emit──▶ design.ready ──subscribe──▶ Developer Agent
Developer    ──emit──▶ code.ready   ──subscribe──▶ Code Reviewer
Reviewer     ──emit──▶ review.done  ──subscribe──▶ QA Agent

See Pipeline for setup.

Pipeline

The pipeline system lets you chain agents together using pub/sub topics. When an agent finishes a task, haiflow automatically emits its output to configured topics. Other agents subscribed to those topics receive the output as their next prompt.

Trigger the first agent — the pipeline chains the rest

curl -X POST http://localhost:3333/trigger \ -H "Authorization: Bearer $HAIFLOW_API_KEY" \ -H "Content-Type: application/json" \ -d '{"prompt": "Analyse the Figma design at ...", "session": "design-agent"}' ```

🎯 aiskill88 AI 点评 A 级 2026-06-24

高质量的开源n8n工作流项目

⚡ 核心功能

👥 适合人群

n8n 平台用户自动化爱好者运维工程师对低代码开发感兴趣的技术人员

🎯 使用场景

  • 定时采集外部数据并自动生成分析报告推送
  • 实现多系统间的数据同步和状态更新通知
  • 构建自动化运维告警和响应处置流程

⚖️ 优点与不足

✅ 优点
  • +MIT 协议,可免费商用
  • +开源自托管,数据安全可控
  • +节点丰富,第三方扩展便捷
  • +社区活跃,问题易查易解
⚠️ 不足
  • 自托管需自行维护服务器和基础设施
  • 学习曲线相对较陡,初学需耐心
  • 大规模并发场景对资源要求较高
⚠️ 使用须知

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

📄 License 说明

✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。

🔗 相关工具推荐

🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合

❓ 常见问题 FAQ

参考README文档
💡 AI Skill Hub 点评

经综合评估,海流 在n8n工作流赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。

⬇️ 获取与下载
⬇ 下载源码 ZIP

✅ MIT 协议 · 可免费商用 · 直接从 aiskill88 服务器下载,无需跳转 GitHub

📚 深入学习 海流
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 haiflow
Topics n8naiagentai-automation
GitHub https://github.com/andersonaguiar/haiflow
License MIT
语言 TypeScript
🔗 原始来源
🐙 GitHub 仓库  https://github.com/andersonaguiar/haiflow

收录时间:2026-06-24 · 更新时间:2026-06-24 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。

📺 订阅 AI Skill Hub Daily Telegram 频道
每天 8 条精选 AI Skill、MCP、Agent 与自动化工具推送
加入频道 →