Architecture diagrams for the Clanker codebase. Two types:
High-level diagrams maintained by hand. Update when system boundaries or integrations change.
| File | Description |
|---|---|
c4/system-context.md |
Level 1: Clanker and its external dependencies |
c4/containers.md |
Level 2: Internal containers (app, functions, databases) |
For text chat architecture (edge agent, BYOI proxy, escalation paths), see Edge Agent. C4 diagrams also cover live voice routing on the Talk tab (/agent/live) and browser bridge routing (Desktop Bridge extension, browser_action, Firestore coordination).
File-level dependency graphs for each core source module. Show which files within a directory call into which other files across the codebase. Excludes utilities, types, and config from both source and target.
| File | Module |
|---|---|
COMPONENTS.md |
src/components/ |
DATABASE.md |
src/database/ |
HOOKS.md |
src/hooks/ |
MACHINES.md |
src/machines/ |
SERVICES.md |
src/services/ |
Regenerate with:
npm run docs:chartsRequires .codegraph/codegraph.db. If missing:
codegraph index- Files above are auto-generated — do not edit manually.
- C4 files in
c4/are manually maintained. - The script excludes
utilities/,types/, andconfig/from both source and target sides.