How braedonsaunders/codeflow works
CodeFlow turns a GitHub repository or local files into an interactive architecture view and codebase insights; its CLI serves the same browser UI. The separate GitHub Action analyzes a checked-out repository, records a health snapshot, renders an SVG card, and can post a merged-PR receipt. The browser product is represented by index.html because its implementation was not sampled; README-documented capabilities and workflows are shown, but their internal wiring is not asserted. Card edges follow the sampled action and analysis code.
Main entry points: index.html Browser UI · index.js Action entry · analysis.js Analysis pipeline · styles.js Card styles
Components 30
Browser analysis
- Browser UI
index.html - Repository access
index.html - Local scanning
index.html
Architecture insights
- Dependency graph
index.html - Code canvas
index.html - Code insights
index.html - Health and activity
index.html - Markdown graph
index.html - PR impact
index.html
Card analysis
- Action entry
card/index.js - Action inputs
card/lib/inputs.js - File collection
card/lib/collect.js - Exclude matching
card/lib/exclude.js - Analysis pipeline
card/lib/analysis.js - Analyzer loader
card/lib/analyzer.js - Health snapshot
card/lib/state.js
Card outputs
- Snapshot history
card/lib/state.js - SVG card renderer
card/render/card.js - Card styles
card/render/styles.js - Theme palette
card/render/theme.js - Sparkline
card/render/sparkline.js - PR receipt
card/render/receipt-md.js
GitHub integrations
- Git commit
card/lib/git.js - PR comment API
card/lib/pr.js
Other components
- Engineer
- Local CLI
cli/codeflow.mjs - GitHub repository
- Local files
- GitHub Actions
- GitHub PR
Connections 29
- Engineer → Browser UI: opens
README.md - Engineer → Local CLI: runs
README.md - Local CLI → Browser UI: serves UI
README.md - Browser UI → Repository access: analyzes URL
README.md - Repository access → GitHub repository: fetches from
README.md - Browser UI → Local scanning: analyzes files
README.md - Local scanning → Local files: reads locally
README.md - Browser UI → Dependency graph: shows graph
README.md - Browser UI → Code canvas: opens code view
README.md - Browser UI → Code insights: shows analysis
README.md - Browser UI → Health and activity: shows metrics
README.md - Browser UI → Markdown graph: graphs notes
README.md - Browser UI → PR impact: analyzes PR
README.md - GitHub Actions → Action entry: invokes
card/index.js - Action entry → Action inputs: loads inputs
card/index.js - Action entry → Analysis pipeline: analyzes repository
card/index.js - Analysis pipeline → Analyzer loader: loads analyzer
card/lib/analysis.js - Analysis pipeline → File collection: collects files
card/lib/analysis.js - File collection → Exclude matching: filters paths
card/lib/collect.js - Analysis pipeline → Health snapshot: derives snapshot
card/lib/analysis.js - Action entry → Snapshot history: reads and writes
card/index.js - Action entry → SVG card renderer: renders snapshot
card/index.js - SVG card renderer → Card styles: dispatches style
card/render/card.js - Card styles → Theme palette: selects palette
card/render/styles.js - Card styles → Sparkline: renders sparkline
card/render/styles.js - Action entry → PR receipt: renders receipt
card/index.js - Action entry → PR comment API: upserts comment
card/index.js - PR comment API → GitHub PR: posts comment
- Action entry → Git commit: commits outputs
card/index.js