Flowise:可视化构建 AI Agent
英文标题:📦 FlowiseAI/Flowise
Flowise 是一个开源低代码平台,允许开发者通过拖拽节点的方式可视化构建 AI Agent 与工作流。 项目基于 Node.js 与 React,支持 npm、Docker 等多种安装方式,并提供自托管与云服务选项。 该工具显著降低了构建复杂 AI 应用的门槛,适合希望快速接入大语言模型(LLM)能力的开发者与企业。
9.3 KB
4.1 KB
993.1 KB
中文
可视化构建 AI Agent
📦 安装
下载并安装 NodeJS >= 20.0.0
一、使用 npm 安装
-
安装 Flowise
npm install -g flowise -
启动 Flowise
npx flowise start
二、使用 Docker Compose 安装
- 克隆 Flowise 项目
- 进入项目根目录下的
docker文件夹 - 复制
.env.example文件,粘贴到相同位置,并重命名为.env文件 - 运行
docker compose up -d - 打开 http://localhost:3000
- 可以通过
docker compose stop停止所有容器
三、使用 Docker 镜像安装
-
在本地构建镜像:
docker build --no-cache -t flowise . -
运行镜像:
docker run -d --name flowise -p 3000:3000 flowise -
停止镜像:
docker stop flowise
👨💻 开发者指南
Flowise 在同一个单体仓库中包含 4 个不同的模块。
server: Node 后端,用于提供 API 逻辑ui: React 前端components: 第三方节点集成api-documentation: 基于 express 自动生成的 swagger-ui API 文档
前置条件
- 安装 PNPM
搭建步骤
-
克隆仓库:
git clone https://github.com/FlowiseAI/Flowise.git -
进入仓库目录:
cd Flowise -
安装所有模块的依赖:
pnpm install -
构建所有代码:
pnpm build
如果运行上述 build 脚本时出现退出代码 134 (JavaScript heap out of memory) 错误,请尝试增大 Node.js 堆内存大小,然后重新运行脚本:
# macOS / Linux / Git Bash
export NODE_OPTIONS="--max-old-space-size=4096"
# Windows PowerShell
$env:NODE_OPTIONS="--max-old-space-size=4096"
# Windows CMD
set NODE_OPTIONS=--max-old-space-size=4096
然后运行:
pnpm build
-
启动应用:
pnpm start
现在可以通过 http://localhost:3000 访问应用。
-
开发构建:
pnpm dev
任何代码更改后,应用将在 http://localhost:8080 自动重载。
⚙️ 配置
Flowise 支持多种环境变量来配置实例。你可以在 packages/server 文件夹中的 .env 文件里指定以下变量。了解更多 细节
📖 文档
你可以在 此处 查看 Flowise 官方文档。
🌐 自托管与云服务
在您现有的基础设施中自托管部署 Flowise,我们支持多种 部署方式。
快速开始使用 Flowise Cloud。
💬 社区
欢迎在 Discussion 中提问、反馈问题和提出新功能需求。
🙌 贡献者
感谢这些卓越的贡献者们
📄 贡献与许可
参见 贡献指南。如有任何问题,可通过 Discord 联系我们。
本仓库中的源代码基于 Apache License Version 2.0 提供。
English / 原文
Build AI Agents, Visually
Download and Install NodeJS >= 20.0.0
-
Install Flowise
-
Start Flowise
-
Clone the Flowise project
-
Go to
dockerfolder at the root of the project -
Copy
.env.examplefile, paste it into the same location, and rename to.envfile -
docker compose up -d -
You can bring the containers down by
docker compose stop -
Build the image locally:
docker build --no-cache -t flowise . -
Run image:
docker run -d --name flowise -p 3000:3000 flowise -
Stop image:
Flowise has 3 different modules in a single mono repository.
-
server: Node backend to serve API logics -
ui: React frontend -
components: Third-party nodes integrations -
api-documentation: Auto-generated swagger-ui API docs from express -
Install PNPM
-
Clone the repository:
git clone https://github.com/FlowiseAI/Flowise.git -
Go into repository folder:
-
Install all dependencies of all modules:
-
Build all the code:
Exit code 134 (JavaScript heap out of memory) If you get this error when running the above build script, try increasing the Node.js heap size and run the script again:
# macOS / Linux / Git Bash
export NODE_OPTIONS="--max-old-space-size=4096"
# Windows PowerShell
$env:NODE_OPTIONS="--max-old-space-size=4096"
# Windows CMD
set NODE_OPTIONS=--max-old-space-size=4096
Then run:
- Start the app:
You can now access the app on http://localhost:3000
- For development build:
Any code changes will reload the app automatically on http://localhost:8080
Flowise supports different environment variables to configure your instance. You can specify the following variables in the .env file inside packages/server folder. Read more
You can view the Flowise Docs here
Deploy Flowise self-hosted in your existing infrastructure, we support various deployments
Get Started with Flowise Cloud.
Feel free to ask any questions, raise problems, and request new features in Discussion.
Thanks go to these awesome contributors
See Contributing Guide. Reach out to us at Discord if you have any questions or issues.
Source code in this repository is made available under the Apache License Version 2.0.
