- Python 58.3%
- TypeScript 39.7%
- CSS 1.5%
- HTML 0.3%
- Just 0.1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
All checks were successful
Build and Push Docker Image / lint (push) Successful in 53s
Build and Push Docker Image / frontend (push) Successful in 1m17s
Build and Push Docker Image / packages (flowire-sdk) (push) Successful in 47s
Build and Push Docker Image / env-parity (push) Successful in 5s
Build and Push Docker Image / packages (fw-nodes-core) (push) Successful in 32s
Build and Push Docker Image / backend (push) Successful in 1m58s
Build and Push Docker Image / test (push) Successful in 0s
Build and Push Docker Image / changes (push) Successful in 4s
Build and Push Docker Image / build (push) Successful in 2m21s
|
||
| .forgejo/workflows | ||
| .vscode | ||
| backend | ||
| frontend | ||
| monitoring | ||
| packages | ||
| scripts | ||
| tools/anti_slop | ||
| .dockerignore | ||
| .env.defaults | ||
| .env.example | ||
| .env.local.example | ||
| .env.schema | ||
| .gitignore | ||
| .markdownlint.json | ||
| .pre-commit-config.yaml | ||
| compose.yml | ||
| DEVELOPMENT.md | ||
| docker-compose.dev.yml | ||
| docker-entrypoint.sh | ||
| Dockerfile | ||
| justfile | ||
| LICENSE | ||
| Procfile.dev | ||
| pyproject.toml | ||
| README.md | ||
| renovate.json | ||
| ruff.toml | ||
Flowire
Self-hosted, low-code workflow automation with a visual node-based editor.
- Visual builder — drag-and-drop editor (React Flow)
- Node library — built-in nodes plus installable/custom node packages
- Multi-tenant — organization → project → workflow, with role-based access
- Versioning — workflow change and execution history
- Auth — local email/password or any OIDC provider
- Execution engine — sync/async nodes, rate limiting, timeouts
Developing Flowire or building node packages? See DEVELOPMENT.md.
Quick Start
Needs Docker with Compose.
-
Get the deployment files — copy
compose.ymland.env.examplefrom this repo into an empty directory, then:cp .env.example .env -
Set the three required values in
.envPOSTGRES_PASSWORD= # openssl rand -base64 24 JWT_SECRET_KEY= # openssl rand -base64 48 CREDENTIALS_ENCRYPTION_KEYS_JSON='{"v1":"<fernet-key>"}' # key: openssl rand -base64 32 | tr '+/' '-_'- Keep the single quotes around the JSON so the braces survive shell-sourcing / systemd
-
Start it
docker compose up -d -
Open http://localhost:8000 and create your first account.
Updating
docker compose pull
docker compose up -d
- Image / registry / version — all app services run
FLOWIRE_IMAGE(defaultflowire/flowire-app:latest). Set it in.envto pull from another registry or pin a release, e.g.FLOWIRE_IMAGE=flowire/flowire-app:<version>, then run the two commands above - Startup aborts with "Cannot create the case-insensitive unique index on users.email" — two
accounts differ only by letter case; the message lists them. Change or remove one of each pair
(
UPDATE users SET email = ...) and rundocker compose up -dagain; nothing was changed - In-flight tasks are safe — workers use
task_acks_late, so a task interrupted by a restart goes back on the queue; the worker gets a 10-minutestop_grace_periodto finish first - Missed schedules are recovered — jobs due while the server was down run when it comes back
- Except bursts — for a high-frequency schedule (e.g. every minute) only the most recent missed run is recovered, not every missed firing
Configuration
All config is environment variables in .env. Full list with descriptions: .env.example.
| Variable | Description | Default |
|---|---|---|
AUTH_MODE |
local (email/password) or oidc |
local |
FRONTEND_URL |
Public URL of your instance | http://localhost:8000 |
COOKIE_SECURE |
true when served over HTTPS |
false |
STORAGE_TYPE |
Binary storage: local or s3 |
local |
OIDC Authentication
Set AUTH_MODE=oidc plus:
OIDC_ISSUER=https://your-provider.example.com
OIDC_CLIENT_ID=your_client_id
OIDC_CLIENT_SECRET=your_client_secret
OIDC_REDIRECT_URI=http://localhost:8000/auth/callback
- Works with any OpenID Connect provider (Google, GitHub, Okta, Auth0, Keycloak, Zitadel, …)
Reverse Proxy (HTTPS)
FRONTEND_URL=https://flowire.yourdomain.com
CORS_ALLOWED_ORIGINS=https://flowire.yourdomain.com
COOKIE_SECURE=true
Encryption Key Rotation
Credentials and secret project variables are Fernet-encrypted at rest. Never just swap the key — every existing credential becomes unreadable. Keep the old key loaded while the new one takes over:
-
Generate a new Fernet key:
openssl rand -base64 32 | tr '+/' '-_' -
Add it next to the current one in
.env:CREDENTIALS_ENCRYPTION_KEYS_JSON='{"v1":"<old>","v2":"<new>"}' CREDENTIALS_ENCRYPTION_CURRENT_VERSION=v2 # optional, defaults to the highest version -
Restart Flowire. With
AUTO_ROTATE_ENCRYPTION_KEYS=true(default), a background task re-encrypts existing rows under the new key. The app stays usable meanwhile. -
Check Site Admin → Encryption → Encrypted Data Status until every row is on
v2. Run Rotation re-triggers it manually (idempotent, safe anytime). -
Remove the old key:
CREDENTIALS_ENCRYPTION_KEYS_JSON='{"v2":"<new>"}' -
Restart Flowire. Done.
Notes:
- Manual only — set
AUTO_ROTATE_ENCRYPTION_KEYS=falseand trigger rotation from Site Admin - Multiple API replicas are safe — a Redis lock (
encryption:rotation:lock, 1h TTL) makes one worker do the work; the others log "another worker holds the rotation lock; skipping" - Version names — any string ≤16 chars without
|- Lower-sorting names count as older; pre-versioning data decrypts under the lowest loaded key
- Current version defaults to the highest
- Use
v1/v2or ISO dates (2026-01); string sort putsv10beforev2, so zero-pad (v01) past 9
- Removing a key safely — rotation only re-encrypts to the current version, so make sure the
key isn't current, run rotation, confirm no rows remain under it, then remove it and restart
- Removing it too early → "version not loaded" errors on those rows
- Audit trail —
encryption.keys_rotated(with per-table counts inextra) per rotation that changed at least one row;encryption.rotation_failedon failure; no-op rotations log nothing
Node Packages
The image ships with fw-nodes-core. Any installed package with flowire.nodes entry points loads automatically.
-
Admin UI (recommended) — Site Admin → Node Packages installs, uninstalls and reloads packages
- Tracked in the database and reconciled on startup
- Turn off "Allow package install / uninstall" in Site Admin → Settings to make the page read-only
- The same page chooses the sources: git URLs (on by default) and local paths (off; development only)
-
Custom image — for packages that should always be present:
FROM flowire/flowire-app:latest RUN uv pip install --system fw-nodes-ai fw-nodes-mattermost
Building your own package: DEVELOPMENT.md → Node Packages.
Architecture
All app services run from one Docker image:
| Service | Role |
|---|---|
| api | FastAPI server, also serves the frontend |
| worker | Celery worker that executes workflows |
| beat | Celery beat: cron triggers and maintenance |
| connection-manager | Persistent WebSocket connections for stream-trigger nodes (single instance) |
| event-dispatcher | Fires event-trigger workflows from the project event stream (single instance) |
| migrate | Runs DB migrations on startup, then exits |
| postgres | Primary database |
| redis | Celery broker + result backend |
Monitoring
- Opt-in Prometheus
/metrics(queue depth, worker throughput, execution stats, API latency) - Grafana dashboard included; Prometheus + Grafana services are commented out in
compose.yml- Bundled Grafana requires
GRAFANA_ADMIN_PASSWORDin.envand listens on127.0.0.1:3001only — put it behind your reverse proxy to reach it from elsewhere
- Bundled Grafana requires
- Setup: monitoring/README.md
API Documentation
- Swagger UI: http://localhost:8000/docs
- ReDoc: http://localhost:8000/redoc
License
Copyright (C) 2026 Eddy Hintze — AGPL-3.0.