How davidamunga/mpesa2csv works
mpesa2csv is an offline M-PESA statement converter. The main workflow is selecting PDFs, extracting and parsing their ledger locally, previewing transactions, configuring options, and exporting a chosen format. The graph also includes documented spreadsheet analyses, webhook delivery, and update checks. Some connections rely on README workflow descriptions or import/reference evidence; unsampled implementation details are not inferred as definite calls.
Main entry points: App.tsx Workflow coordinator · exportService.ts Format dispatcher · export-options.tsx Export configuration · tabulaService.ts PDF extraction and parsing
Components 21
Statement workflow
- Workflow coordinator
src/App.tsx - PDF selection
src/components/file-uploader.tsx - PDF extraction and parsing
src/services/tabulaService.ts - Native PDF commands
src-tauri/src/lib.rs - Transaction filters
src/services/transactionFilters.ts
Export and analysis
- Export configuration
src/components/export-options.tsx - Format dispatcher
src/services/exportService.ts - CSV export
src/services/csvService.ts - Excel workbook
src/services/xlsxService.ts - JSON export
src/services/jsonService.ts - OFX and QFX export
src/services/ofxService.ts - QIF export
src/services/qifService.ts - Analysis sheets
src/services/exports - Date formatting
src/utils/dateFormatter.ts
App integrations
- Webhook delivery
src/services/webhookService.ts - Update checker
src/components/update-checker.tsx
User interface
- UI primitives
src/components/ui
Other components
- Statement user
- Tabula extractor
- User API endpoint
- Release service
Connections 23
- Statement user → PDF selection: selects PDFs
README.md - PDF selection → Workflow coordinator: provides files
src/App.tsx - Workflow coordinator → PDF extraction and parsing: processes statements
README.md - PDF extraction and parsing → Native PDF commands: invokes extraction
src/services/tabulaService.ts - Native PDF commands → Tabula extractor: extracts tables
- PDF extraction and parsing → Workflow coordinator: returns parsed ledger
README.md - Workflow coordinator → Transaction filters: previews transactions
- Statement user → Export configuration: chooses format
README.md - Workflow coordinator → Export configuration: shows options
src/App.tsx - Workflow coordinator → Format dispatcher: starts export
README.md - Format dispatcher → CSV export: dispatches CSV
src/services/exportService.ts - Format dispatcher → Excel workbook: dispatches XLSX
src/services/exportService.ts - Format dispatcher → JSON export: dispatches JSON
src/services/exportService.ts - Format dispatcher → OFX and QFX export: dispatches OFX/QFX
src/services/exportService.ts - Format dispatcher → QIF export: dispatches QIF
src/services/exportService.ts - Excel workbook → Analysis sheets: adds analysis sheets
src/services/xlsxService.ts - Excel workbook → Date formatting: formats dates
src/services/xlsxService.ts - Export configuration → Webhook delivery: sends extracted data
src/components/export-options.tsx - Webhook delivery → User API endpoint: posts JSON
README.md - Update checker → Release service: checks releases
- Workflow coordinator → Update checker: displays updates
src/App.tsx - Workflow coordinator → UI primitives: renders controls
src/App.tsx - Export configuration → UI primitives: renders controls
src/components/export-options.tsx