@igoruehara/canvas-flow 0.1.5 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -1,15 +1,72 @@
|
|
|
1
1
|
# Canvas Flow
|
|
2
2
|
|
|
3
|
-
Canvas Flow
|
|
3
|
+
Canvas Flow e uma aplicacao web local para criar, testar e executar fluxos de IA multiagente em formato visual. O pacote npm sobe frontend e backend juntos em um unico comando.
|
|
4
|
+
|
|
5
|
+
Use quando quiser:
|
|
6
|
+
|
|
7
|
+
- criar automacoes com agentes de IA;
|
|
8
|
+
- conectar prompts, ferramentas, webhooks e documentos;
|
|
9
|
+
- testar fluxos localmente antes de publicar;
|
|
10
|
+
- usar RAG com documentos;
|
|
11
|
+
- expor fluxos por API ou webhook.
|
|
12
|
+
|
|
13
|
+
## Inicio Rapido
|
|
14
|
+
|
|
15
|
+
Com Docker, o Canvas Flow sobe MongoDB local automaticamente e abre o navegador:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npx @igoruehara/canvas-flow@latest --with-docker --open
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Sem Docker, use quando voce ja tem MongoDB local, MongoDB Atlas ou outro Mongo remoto:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npx @igoruehara/canvas-flow@latest --open
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Na primeira execucao o CLI cria `~/.canvas-flow/config.json`, gera secrets locais e inicia o app em:
|
|
28
|
+
|
|
29
|
+
```txt
|
|
30
|
+
http://localhost:3333
|
|
31
|
+
```
|
|
4
32
|
|
|
5
33
|
## Requisitos
|
|
6
34
|
|
|
7
35
|
- Node.js 20+
|
|
8
|
-
-
|
|
36
|
+
- MongoDB local, MongoDB remoto ou Docker Desktop
|
|
37
|
+
- Docker Desktop opcional para subir MongoDB, Milvus, MinIO e etcd localmente
|
|
38
|
+
|
|
39
|
+
## O Que Ele Entrega
|
|
40
|
+
|
|
41
|
+
- editor visual para montar fluxos multiagente;
|
|
42
|
+
- execucao local de frontend e API no mesmo processo Node;
|
|
43
|
+
- configuracao de provedores de IA pela UI ou pelo `config.json`;
|
|
44
|
+
- RAG com Milvus/Zilliz ou Azure AI Search;
|
|
45
|
+
- entrada por API, webhook, web widget e canais configurados no app;
|
|
46
|
+
- chaves de API para consumir fluxos publicados;
|
|
47
|
+
- validacao do ambiente com `doctor`.
|
|
48
|
+
|
|
49
|
+
## Interface
|
|
50
|
+
|
|
51
|
+
### Editor Visual
|
|
52
|
+
|
|
53
|
+

|
|
54
|
+
|
|
55
|
+
### Teste Do Fluxo
|
|
9
56
|
|
|
10
|
-
|
|
57
|
+

|
|
11
58
|
|
|
12
|
-
|
|
59
|
+
### Biblioteca De Componentes
|
|
60
|
+
|
|
61
|
+

|
|
62
|
+
|
|
63
|
+
### Provedores
|
|
64
|
+
|
|
65
|
+

|
|
66
|
+
|
|
67
|
+
## Rodar Com Docker
|
|
68
|
+
|
|
69
|
+
Para ambiente local simples, suba MongoDB junto com o Canvas Flow:
|
|
13
70
|
|
|
14
71
|
```bash
|
|
15
72
|
npx @igoruehara/canvas-flow@latest --with-docker --open
|
|
@@ -32,7 +89,7 @@ npx @igoruehara/canvas-flow@latest infra down
|
|
|
32
89
|
|
|
33
90
|
`infra down` para os containers, mas mantem os volumes Docker.
|
|
34
91
|
|
|
35
|
-
## Rodar
|
|
92
|
+
## Rodar Sem Docker
|
|
36
93
|
|
|
37
94
|
Use este caminho quando voce ja tem MongoDB local, Atlas ou outro Mongo remoto.
|
|
38
95
|
|
|
@@ -102,7 +159,7 @@ npx @igoruehara/canvas-flow@latest --config C:\canvas-flow\config.json --open
|
|
|
102
159
|
npx @igoruehara/canvas-flow@latest --home C:\canvas-flow-data --open
|
|
103
160
|
```
|
|
104
161
|
|
|
105
|
-
|
|
162
|
+
## Campos Principais Do Config
|
|
106
163
|
|
|
107
164
|
`server`: controla porta, URL publica, Swagger, CORS e abertura do navegador.
|
|
108
165
|
|
|
@@ -185,7 +242,7 @@ Tambem e possivel configurar provedores pela propria aplicacao depois que ela es
|
|
|
185
242
|
|
|
186
243
|
`runtime` e `aws`: opcionais. Ajustam timezone, execucao de cron, limites do runtime e regiao AWS.
|
|
187
244
|
|
|
188
|
-
## Validar
|
|
245
|
+
## Validar Ambiente
|
|
189
246
|
|
|
190
247
|
```bash
|
|
191
248
|
npx @igoruehara/canvas-flow@latest doctor
|
|
@@ -197,7 +254,28 @@ Sem checar rede/Mongo:
|
|
|
197
254
|
npx @igoruehara/canvas-flow@latest doctor --offline
|
|
198
255
|
```
|
|
199
256
|
|
|
200
|
-
|
|
257
|
+
Para tratar avisos como erro:
|
|
258
|
+
|
|
259
|
+
```bash
|
|
260
|
+
npx @igoruehara/canvas-flow@latest doctor --strict
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
## Comandos Do CLI
|
|
264
|
+
|
|
265
|
+
```bash
|
|
266
|
+
npx @igoruehara/canvas-flow@latest init
|
|
267
|
+
npx @igoruehara/canvas-flow@latest config
|
|
268
|
+
npx @igoruehara/canvas-flow@latest config --edit
|
|
269
|
+
npx @igoruehara/canvas-flow@latest config --show
|
|
270
|
+
npx @igoruehara/canvas-flow@latest doctor
|
|
271
|
+
npx @igoruehara/canvas-flow@latest infra up
|
|
272
|
+
npx @igoruehara/canvas-flow@latest infra up --full
|
|
273
|
+
npx @igoruehara/canvas-flow@latest infra status
|
|
274
|
+
npx @igoruehara/canvas-flow@latest infra logs
|
|
275
|
+
npx @igoruehara/canvas-flow@latest infra down
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
## Instalar Globalmente
|
|
201
279
|
|
|
202
280
|
Opcional:
|
|
203
281
|
|
|
@@ -205,3 +283,9 @@ Opcional:
|
|
|
205
283
|
npm i -g @igoruehara/canvas-flow
|
|
206
284
|
canvas-flow --with-docker --open
|
|
207
285
|
```
|
|
286
|
+
|
|
287
|
+
## Seguranca
|
|
288
|
+
|
|
289
|
+
- Nao publique `~/.canvas-flow/config.json`.
|
|
290
|
+
- Nao exponha `auth.apiToken`, `jwtSecret`, `mediaProxySecret` ou chaves de provedores.
|
|
291
|
+
- Para uso publico ou producao, revise login, CORS, Swagger, limites de API, armazenamento de arquivos e provedores antes de expor o app.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@igoruehara/canvas-flow",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "Standalone npm launcher for Canvas Flow multi-agent GenAI workflows.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"IA",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"files": [
|
|
18
18
|
"bin",
|
|
19
|
+
"docs/screenshots",
|
|
19
20
|
"public",
|
|
20
21
|
"server",
|
|
21
22
|
"templates",
|