Docs · Playground · Roadmap
FlowConsole(alpha) is a new breed of architecture as code tooling that significantly improves developers experience with architecture artifacts. You can model your architecture in code with powerful fluent API.
Features
- ⚡️ Fully typed APIs
- 🥳 Auto positioning system
- 🛠️ Generates animated diagrams on the fly
- 👀 Generates animated system flows on the fly
- 🙌 C4 backed
▶️ Live Playground with examples
//who is using your app
const user: User = { name: "Customer", description: "app user" };
//add components(microservices, cache, db, etc)
const frontApp: ReactApp = {
name: "Customer Dashboard",
description: "React app"
};
const restApi: RestApi = {
name: "Backend",
description: "Java REST API"
};
const db: Postgres = {
name: "main_db",
description: "DB"
};
//Define a flow and watch it live
user.sendsRequestTo(frontApp, "opens in browser")
.then(frontApp).sendsRequestTo(restApi, "GET /api/v1/dashboard/:id")
.then(restApi).sendsRequestTo(db,"fetch dashboard data");- VS Code extention
- Jetbrains IDEA/Rider extention
- CLI tool for CI/CD pipeline integration
- C#(WIP), Java, Go, Python support
- Add llm.txt
- Export in SVG
- Docs for architecture json scheme
- Docs for CLI tool
- Prereqs: Node.js 18+ and
pnpminstalled. - cd to src/docs or src/app
- Install deps:
pnpm install. - Run dev server:
pnpm dev. - Build:
pnpm build.
pnpm dev— start Vite dev server.pnpm build— type-check and build for production.pnpm lint— run ESLint (eslint.config.js).pnpm lint:fix— ESLint with auto-fix.pnpm test:unit/pnpm test:coverage— Vitest suites.pnpm test:e2e— Playwright against a built app.
- Location: tests/e2e
- Default preview port is controlled by
PORT(defaults to4173);PLAYWRIGHT_BASE_URLcan override the target URL. - Typical CI/local run:
pnpm build && PORT=4173 pnpm test:e2e. - Tests start
pnpm previewautomatically viaplaywright.config.tsand reuse an existing server when not on CI. pnpm test:e2e— to run tests.
src/core/components/Workbench/CodeDiagramWorkbench: Monaco-based editor + model preview, debounced evaluation.src/core/components/ArchitectureDiagram: Reactflow renderer with autolayout navigation panel.src/core/languages/typescript: DSL declarations, evaluator, and samples that compile authored code into architecture models.src/core/components/NavigationPanel: flow and scope navigation for rendered models.
- See
CONTRIBUTING.mdfor setup, standards, and how to file issues/PRs. - Community expectations:
CODE_OF_CONDUCT.md.
- Core(src/core) frontend code is distributed under AGPLv3 (see
LICENSE). - Some components or auxiliary parts may be under license; check file headers and/or a nearby NOTICE for those modules.
