How mafrix07/monexa works
MoneXa is a Django treasury platform for West African SMEs, with a mobile-oriented API and admin back office. The main workflow captures a Mobile Money receipt or SMS, extracts payment details, records and reconciles the payment, then exposes treasury reporting and alerts. The README also documents forecasting, anomaly detection, audit-chain verification, chatbot assistance, and SYSCOHADA/CSV exports. The mobile source and several service implementations are not present in the supplied tree, so their internal wiring is not inferred.
Main entry points: viewsets.py Finance API · ingest.py Payment ingestion · services.py KPI computation · ai_pipeline.py Receipt extraction
Components 22
Capture and ledger
- Finance API
backend/finance/viewsets.py - Receipt extraction
backend/finance/services/ai_pipeline.py - SMS parser
backend/finance/services/sms_parser.py - Transaction connectors
backend/finance/connectors/registry.py - Payment ingestion
backend/finance/services/ingest.py - Invoice matching
backend/finance/services/matcher.py
Finance intelligence
- Anomaly detection
backend/finance/services/anomalies.py - Cashflow forecast
backend/finance/services/forecast.py - LLM client
backend/finance/services/llm.py
Reporting and audit
- Reports API
backend/reporting/views.py - KPI computation
backend/reporting/services.py - Financial exports
backend/reporting/exports.py - TresorIA API
backend/assistant/views.py - TresorIA service
backend/assistant/services.py - Audit chain
backend/auditing/services.py
Identity and API
- Accounts API
backend/accounts/views.py - User and tenancy
backend/accounts/models.py
Other components
- SME staff
- Mobile client
- Django Admin
- LLM provider
- PostgreSQL
Connections 26
- SME staff → Mobile client: uses
- Mobile client → Finance API: submits evidence
- Django Admin → Finance API: manages finance
- Finance API → Receipt extraction: extracts receipt
- Finance API → SMS parser: parses SMS
- Finance API → Payment ingestion: records payment
- Receipt extraction → LLM client: requests extraction
- Receipt extraction → SMS parser: parses text
- LLM client → LLM provider: calls model
- Transaction connectors → Payment ingestion: supplies transactions
- Payment ingestion → Invoice matching: matches payment
- Payment ingestion → Anomaly detection: checks payment
- Reports API → KPI computation: computes report
- Reports API → Financial exports: serves exports
- KPI computation → Cashflow forecast: forecasts cashflow
- TresorIA API → TresorIA service: answers question
- TresorIA service → KPI computation: gets KPIs
- TresorIA service → LLM client: requests wording
- Finance API → PostgreSQL: reads and writes
- Payment ingestion → PostgreSQL: writes payment
- Invoice matching → PostgreSQL: reads and updates
- Anomaly detection → PostgreSQL: reads payment
- KPI computation → PostgreSQL: reads finance data
- Audit chain → PostgreSQL: writes and verifies
- Accounts API → User and tenancy: manages accounts
- User and tenancy → PostgreSQL: persists users