How denomwoyo/lindaflow_v2 works
LindaFlow is a local-first M-Pesa transaction and risk-assessment service with a browser dashboard. Users assess and record transactions, review risk decisions, and initiate STK Push payments; offline submissions queue in the browser and sync when connectivity returns. The backend also exposes Daraja C2B registration and callbacks. Sampled Go code confirms routing, risk scoring, JSONL persistence, and provider calls; unsampled handler details and README capability descriptions were unavailable, so those relationships are not expanded.
Main entry points: main.go HTTP API server · app.js Browser workflow · index.html Dashboard UI · sw.js Offline app shell
Components 11
Browser experience
- Dashboard UI
LindaFlow/web/index.html - Browser workflow
LindaFlow/web/app.js - Offline queue
LindaFlow/web/app.js - Offline app shell
LindaFlow/web/sw.js
Transaction service
- HTTP API server
LindaFlow/cmd/lindaflow/main.go - Risk assessment
LindaFlow/cmd/lindaflow/main.go - Transaction handling
LindaFlow/cmd/lindaflow/main.go - JSONL transaction store
LindaFlow/cmd/lindaflow/main.go
M-Pesa integration
- Daraja API client
LindaFlow/cmd/lindaflow/main.go
Other components
- Merchant user
- Safaricom Daraja
Connections 14
- Merchant user → Dashboard UI: uses
- Dashboard UI → Browser workflow: submits forms
LindaFlow/web/app.js - Browser workflow → HTTP API server: requests API
LindaFlow/web/app.js - Browser workflow → Offline queue: queues offline
LindaFlow/web/app.js - Offline queue → HTTP API server: syncs transactions
LindaFlow/web/app.js - Browser workflow → Offline app shell: registers worker
LindaFlow/web/app.js - Offline app shell → Dashboard UI: caches assets
LindaFlow/web/sw.js - HTTP API server → Risk assessment: routes assessment
LindaFlow/cmd/lindaflow/main.go - HTTP API server → Transaction handling: routes transactions
LindaFlow/cmd/lindaflow/main.go - Transaction handling → Risk assessment: scores event
LindaFlow/cmd/lindaflow/main.go - Transaction handling → JSONL transaction store: persists records
LindaFlow/cmd/lindaflow/main.go - HTTP API server → Daraja API client: routes payment requests
LindaFlow/cmd/lindaflow/main.go - Daraja API client → Safaricom Daraja: requests OAuth and payments
LindaFlow/cmd/lindaflow/main.go - Safaricom Daraja → HTTP API server: sends callbacks