How emcdanie/chip works
CHIP is a localhost bridge and workbench for the BELLA design system. Its main workflow is: a user asks a question or runs a command; the server searches locally indexed BELLA and documentation sources, then answers with a local model and cited sources, or runs BELLA readiness checks. The app also supports component exploration, project work, review flows, and tool connections. The README documents the product capabilities; sampled server code confirms selected routes and calls. Some UI-to-server links are therefore shown as unverified rather than asserted.
Main entry points: server.js HTTP server · App.jsx App workspace · ask.mjs Question answering · checks.mjs Readiness checks
Components 32
CHIP interface
- App workspace
app/src/App.jsx - App entry
app/src/main.jsx - Component Atlas
app/src/Atlas.jsx - Health views
app/src/Health.jsx - Work panel
app/src/WorkPanel.jsx - Connectors UI
app/src/Connectors.jsx - Playground
app/src/Playground.jsx - History and docs
app/src/History.jsx - Review sheet
app/src/ReviewSheet.jsx - Run planning
app/src/templates/RunPlan.jsx - Workbench screen
app/src/templates/Screen.jsx
Server workflows
- HTTP server
server/server.js - Question answering
server/lib/ask.mjs - Project creation
server/lib/new-routes.mjs - Model selection
server/lib/model-router.mjs - Project lanes
server/lib/lanes.mjs - Project records
server/lib/projects.mjs - Usage tracking
server/lib/usage.mjs - Tool registry
server/host/registry.js
Sources and models
- Search index
server/lib/index.mjs - Documentation sources
server/lib/docs.mjs - Answer providers
server/providers/index.mjs - Local model client
server/lib/llm.js - Local configuration
server/lib/config.mjs
BELLA operations
- BELLA data sync
server/lib/chipdata.mjs - BELLA worktree
server/lib/bella-work.mjs - Readiness checks
server/lib/checks.mjs - Readiness gaps
server/lib/gaps.mjs - Review and fixes
server/lib/review.mjs
Other components
- CHIP user
- Ollama models
- BELLA repository
Connections 34
- CHIP user → App entry: opens app
- CHIP user → HTTP server: runs commands
- App entry → App workspace: renders workspace
app/src/main.jsx - App workspace → Component Atlas: opens components
app/src/App.jsx - App workspace → Health views: shows health
app/src/App.jsx - App workspace → Work panel: hosts work panel
app/src/App.jsx - App workspace → Connectors UI: opens connectors
app/src/App.jsx - App workspace → Playground: opens playground
app/src/App.jsx - App workspace → History and docs: shows history
app/src/App.jsx - Review sheet → HTTP server: submits review
- Review sheet → Run planning: starts run
app/src/ReviewSheet.jsx - App entry → Run planning: mounts plan host
app/src/main.jsx - CHIP user → Question answering: asks question
- HTTP server → Search index: searches docs
server/server.js - Search index → Documentation sources: loads sources
server/lib/index.mjs - HTTP server → Question answering: handles questions
server/server.js - Question answering → Search index: retrieves sources
server/lib/ask.mjs - Question answering → Answer providers: resolves provider
server/lib/ask.mjs - Question answering → Model selection: selects model
server/lib/ask.mjs - Answer providers → Local model client: uses local client
server/providers/index.mjs - Local model client → Ollama models: sends prompts
server/lib/llm.js - HTTP server → Readiness checks: runs checks
server/server.js - HTTP server → Project records: creates projects
server/server.js - Project creation → Project records: creates records
server/lib/new-routes.mjs - HTTP server → Tool registry: hosts integrations
server/server.js - BELLA data sync → BELLA repository: reads BELLA
- Readiness checks → BELLA worktree: inspects worktree
server/lib/checks.mjs - Readiness gaps → Readiness checks: uses check results
server/lib/gaps.mjs - Review and fixes → Readiness checks: reads check state
server/lib/review.mjs - Review and fixes → Readiness gaps: uses gap fixes
server/lib/review.mjs - Project lanes → Project records: reads projects
server/lib/lanes.mjs - HTTP server → Usage tracking: reports usage
server/server.js - Tool registry → Usage tracking: records tool use
server/host/registry.js - Local configuration → BELLA repository: locates repository
server/lib/config.mjs