No description
  • Python 58.3%
  • TypeScript 39.7%
  • CSS 1.5%
  • HTML 0.3%
  • Just 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Renovate Bot 94097d2c4b
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
Merge pull request 'chore(deps): update dependency lucide-react to v1.82.0' (#63) from renovate/all-minor-patch into develop
2026-11-30 08:09:32 +00:00
.forgejo/workflows fix(deps): update all non-major dependencies 2026-11-09 13:03:00 +00:00
.vscode refactor: implement explicit node-to-node data flow system 2025-11-09 01:15:44 -05:00
backend fix(deps): update all non-major dependencies 2026-11-30 05:05:12 +00:00
frontend chore(deps): update dependency lucide-react to v1.82.0 2026-11-30 07:04:13 +00:00
monitoring monitoring: hand the bundled Prometheus the metrics token from .env 2026-10-30 10:55:47 -04:00
packages fix(deps): update dependency pyjwt to v2.15.0 [security] 2026-11-09 06:04:03 +00:00
scripts db: cap statement time and bound the worker's process count 2026-10-30 10:55:47 -04:00
tools/anti_slop lint: vendor anti-slop linters for python and oxlint 2026-10-26 23:33:17 -04:00
.dockerignore feat: restructure project for monorepo support with local node packages and environment configuration 2026-06-03 23:36:02 -04:00
.env.defaults packages: let admins choose git and local-path installs in settings 2026-10-30 10:55:47 -04:00
.env.example monitoring: email site admins when workers stop or the queue backs up 2026-11-21 09:44:55 -05:00
.env.local.example docs: restructure around just and fix stale setup info 2026-10-27 22:31:21 -04:00
.env.schema packages: let admins choose git and local-path installs in settings 2026-10-30 10:55:47 -04:00
.gitignore fix(mcp): commit the guide.md 2026-08-07 22:56:58 -04:00
.markdownlint.json squash mvp ui buildout 2025-10-29 04:58:36 -04:00
.pre-commit-config.yaml chore(deps): update linters 2026-11-23 05:03:45 +00:00
compose.yml fix(deps): update all non-major dependencies 2026-11-30 05:05:12 +00:00
DEVELOPMENT.md packages: let admins choose git and local-path installs in settings 2026-10-30 10:55:47 -04:00
docker-compose.dev.yml fix(deps): update all non-major dependencies 2026-11-30 05:05:12 +00:00
docker-entrypoint.sh feat: Add entrypoint script to run database migrations before starting services 2026-03-22 11:41:12 -04:00
Dockerfile fix(deps): update all non-major dependencies 2026-11-30 05:05:12 +00:00
justfile dev: bind dev servers to loopback 2026-10-26 23:25:52 -04:00
LICENSE feat: add GNU Affero General Public License and update license information in project files 2026-01-19 23:49:10 -05:00
Procfile.dev dev: bind dev servers to loopback 2026-10-26 23:25:52 -04:00
pyproject.toml fix(deps): update all non-major dependencies 2026-11-30 05:05:12 +00:00
README.md packages: let admins choose git and local-path installs in settings 2026-10-30 10:55:47 -04:00
renovate.json renovate: let lock maintenance refresh the backend lock 2026-11-09 09:04:53 -05:00
ruff.toml lint: gate python on ty and anti-slop 2026-10-27 10:18:16 -04:00

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.

  1. Get the deployment files — copy compose.yml and .env.example from this repo into an empty directory, then:

    cp .env.example .env
    
  2. Set the three required values in .env

    POSTGRES_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
  3. Start it

    docker compose up -d
    
  4. 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 (default flowire/flowire-app:latest). Set it in .env to 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 run docker compose up -d again; 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-minute stop_grace_period to 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:

  1. Generate a new Fernet key: openssl rand -base64 32 | tr '+/' '-_'

  2. 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
    
  3. 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.

  4. Check Site Admin → Encryption → Encrypted Data Status until every row is on v2. Run Rotation re-triggers it manually (idempotent, safe anytime).

  5. Remove the old key: CREDENTIALS_ENCRYPTION_KEYS_JSON='{"v2":"<new>"}'

  6. Restart Flowire. Done.

Notes:

  • Manual only — set AUTO_ROTATE_ENCRYPTION_KEYS=false and 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/v2 or ISO dates (2026-01); string sort puts v10 before v2, 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 in extra) per rotation that changed at least one row; encryption.rotation_failed on 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_PASSWORD in .env and listens on 127.0.0.1:3001 only — put it behind your reverse proxy to reach it from elsewhere
  • Setup: monitoring/README.md

API Documentation

License

Copyright (C) 2026 Eddy Hintze — AGPL-3.0.