How jplassnibatt/minicrm works
MiniCRM is a local-first book-of-business web app: users browse and update accounts in a browser, while a Go server exposes the REST API and persists data in SQLite. Account presentation applies renewal dates, contract overrides, active status, and ordered priority buckets; users also manage notes, activity, buckets, and API keys, and scripts can import or sync accounts. The README documents these additional capabilities, but excerpts do not show all their implementation links, so those relationships are not inferred. The UI is embedded and served by the server; no external data service is part of the documented workflow.
Main entry points: api.go REST API · store.go SQLite database · logic.go Account presentation · main.go HTTP server
Components 16
Local Runtime
- HTTP server
main.go - REST API
api.go
Account Workflows
- Account operations
api.go - Account imports
api.go - Contract updates
api.go - Notes and activity
store.go
Business Rules
- Bucket rules
buckets.go - Account presentation
logic.go - Filtering and sorting
api.go
Persistence and Access
- SQLite database
store.go - API key access
keys.go
Browser Interface
- CRM interface
public/app.js - Embedded web assets
public/index.html
Other components
- CRM user
- Web browser
- Scripts / Claude Code
Connections 21
- CRM user → Web browser: uses
README.md - Web browser → CRM interface: loads interface
README.md - CRM interface → REST API: requests data
public/app.js - Scripts / Claude Code → REST API: syncs accounts
README.md - HTTP server → REST API: routes API
main.go - HTTP server → Embedded web assets: serves assets
main.go - REST API → Account operations: dispatches requests
api.go - REST API → Account imports: dispatches imports
api.go - REST API → Contract updates: dispatches contract updates
api.go - REST API → Notes and activity: handles note routes
api.go - Account operations → SQLite database: reads and writes
store.go - Account imports → SQLite database: updates records
api.go - Contract updates → SQLite database: stores changes
api.go - Notes and activity → SQLite database: stores notes and history
store.go - REST API → Filtering and sorting: filters and sorts
api.go - Filtering and sorting → Account presentation: uses account values
api.go - Account presentation → Bucket rules: assigns bucket
logic.go - Bucket rules → SQLite database: loads and mutates
buckets.go - REST API → API key access: checks authorization
keys.go - API key access → SQLite database: loads key records
keys.go - Account operations → Account presentation: builds account view
logic.go