How haz-ux/cardinal-frame works
Cardinal Frame is a personal-scale AI agent orchestration platform with a React SPA and an Express/SQLite backend. Users authenticate, then operate agents, chat, DAG workflows, and other capabilities through the UI; requests reach backend routes and, where applicable, orchestration engines that enforce governance before execution. Major branches include multi-node delegation, skills and plugins, LLM providers, observability, and the live neural map. The README documents the broad architecture; unsampled route and engine internals are represented only at the documented subsystem level.
Main entry points: App.jsx React application · server.mjs HTTP server · AuthContext.jsx Session and API client · skills.mjs Skills sandbox
Components 28
User interface
- React application
client/src/App.jsx - Session and API client
client/src/AuthContext.jsx - Chat interface
client/src/Chat.jsx - DAG editor
client/src/DAGEditor.jsx - Dashboard
client/src/Dashboard.jsx - Neural map
client/src/NeuralMap.jsx - Graph layout engine
client/src/graph/LayoutEngine.js - Graph metrics
client/src/graph/GraphMetrics.js - Sector layout
client/src/graph/SectorLayout.js - Client data cache
client/src/dataCache.js - Live resource updates
client/src/useWsResource.js
Execution and governance
- DAG executor and queue
src/server/job-queue.mjs - Chain executor
src/server/chains.mjs - Skills sandbox
src/server/routes/skills.mjs - Governance controls
src/server/routes/governance.mjs - Agent workflows
src/server/routes/agent.mjs
Providers and nodes
- Node delegation
src/server/routes/delegation.mjs - LLM routes
src/server/routes/llm.mjs - Provider runtime
src/server/llm/provider-runtime.mjs - MCP client
src/server/mcp-client.mjs - Plugin system
src/server/plugins.mjs
Platform services
- HTTP server
src/server/server.mjs - Authentication routes
src/server/routes/auth.mjs - Request validation
src/server/validate.mjs - SQLite state
src/server/server.mjs
Other components
- Operator
- LLM providers
- MCP servers
Connections 31
- Operator → React application: uses
README.md - React application → Session and API client: checks session
client/src/App.jsx - React application → Chat interface: routes to
client/src/App.jsx - React application → DAG editor: routes to
client/src/App.jsx - React application → Dashboard: routes to
client/src/App.jsx - React application → Neural map: routes to
client/src/App.jsx - Chat interface → Session and API client: sends requests
- DAG editor → Session and API client: sends requests
README.md - Dashboard → Session and API client: sends requests
README.md - Neural map → Graph layout engine: requests layout
client/src/graph/LayoutEngine.js - Graph layout engine → Graph metrics: uses
client/src/graph/LayoutEngine.js - Graph layout engine → Sector layout: uses
client/src/graph/LayoutEngine.js - Operator → HTTP server: HTTP requests
README.md - Session and API client → HTTP server: calls API
client/src/AuthContext.jsx - HTTP server → Authentication routes: registers routes
src/server/server.mjs - HTTP server → Request validation: validates requests
README.md - Authentication routes → SQLite state: reads and writes
README.md - DAG editor → DAG executor and queue: submits workflows
README.md - DAG executor and queue → Skills sandbox: executes steps
README.md - Chain executor → Skills sandbox: executes steps
README.md - Chain executor → Governance controls: checks permission
README.md - Agent workflows → Skills sandbox: runs skills
README.md - Node delegation → Governance controls: checks permissions
README.md - LLM routes → Provider runtime: uses runtime
- Provider runtime → LLM providers: sends requests
README.md - MCP client → MCP servers: connects by stdio
src/server/mcp-client.mjs - Skills sandbox → Plugin system: fires hooks
README.md - DAG executor and queue → SQLite state: persists jobs
README.md - Governance controls → SQLite state: records audit
README.md - Live resource updates → HTTP server: refreshes resources
- HTTP server → SQLite state: shares state
README.md