FlexiFlow Handbook
Welcome to the FlexiFlow Handbook. This is the authoritative reference for everything FlexiFlow — from installation to production persistence.
Why FlexiFlow?
Section titled “Why FlexiFlow?”Most workflow engines are heavyweight, opinionated, and assume you want a DAG runner. FlexiFlow is none of those things.
FlexiFlow gives you async components with declarative rules, an event bus with priority and delivery modes, state machines with built-in and custom states, structured logging with correlation IDs, and persistence with snapshot history — all in under 2,000 lines of pure Python. No heavy dependencies. No magic.
What’s in this handbook
Section titled “What’s in this handbook”- Getting Started — Install, configure, and run your first component via CLI or embedded Python.
- Event Bus — Priority subscriptions, delivery modes, error policies, observability events, and retry.
- State Machines — Built-in message types, custom states, YAML state packs, and config introspection.
- Reference — Persistence backends, error handling hierarchy, structured logging, and security scope.
Design principles
Section titled “Design principles”- Lightweight — Under 2,000 lines. No framework lock-in.
- Async-native — Built on
asynciofrom the ground up. - Declarative — Define rules and states in config, not code.
- Observable — Every state change and message is an event you can subscribe to.
- Local-first — No cloud sync, no telemetry, no network calls.