How mmrtonmoybd/tohobil works
Tohobil is an offline-first personal-finance app: users sign in, organize books and money records locally, and use planning, debt, wealth, vault, and reporting features; the app can synchronize backups with a PHP API. An admin site operates accounts and app services separately from users’ ledgers. The graph keeps local finance, synchronization, API, and operations as distinct areas. Some feature and controller internals were not sampled, so only documented or indexed relationships are shown; dashed edges mark documented-but-unsampled or optional integration links.
Main entry points: App.tsx App routing · Routes.php PHP API · repository.ts Finance repository · QuickAdd.tsx Transaction entry
Components 34
Mobile finance app
- App routing
src/app/App.tsx - Identity and API client
src/app/identity.ts - Sign-in screens
src/app/IdentityScreens.tsx - Transaction entry
src/features/money/QuickAdd.tsx - Money screens
src/features/money - Bills budgets goals
src/features/planning - Debts and installments
src/features/debts - Assets and wealth
src/features/wealth/AssetsScreen.tsx - Document vault
src/features/vault - Reports and search
src/features/reports - Settings and backup UI
src/features/settings
Offline finance data
- Finance repository
src/db/repository.ts - Local database access
src/db/connection.ts - Finance state
src/features/money/store.ts - Currency and minor units
src/lib/money.ts - Display preferences
src/lib/displayPrefs.ts - Attachment storage
src/lib/fileStorage.ts
Sync and API
- Sync engine
src/sync/engine.ts - Attachment upload queue
src/sync/uploadQueue.ts - PHP API
api/app/Config/Routes.php - Server sync service
api/app/Services/SyncService.php - Server file service
api/app/Services/FileService.php - API identity endpoints
api/app/Controllers/Api/V1/Auth.php - Server database
api/app/Config/Database.php - Scheduled services
api/app/Commands - Stored exchange rates
api/app/Services/ExchangeRateService.php
Operations and administration
- Admin site routing
admin/src/App.tsx - Admin authentication
admin/src/lib/auth.tsx - Admin API client
admin/src/lib/api.ts - User device and service operations
admin/src/pages - Admin API endpoints
api/app/Controllers/Admin
Other components
- Finance user
- Operations staff
- Exchange-rate provider
Connections 37
- Finance user → App routing: uses
README.md - App routing → Sign-in screens: routes to
src/app/App.tsx - App routing → Transaction entry: routes to
src/app/App.tsx - App routing → Money screens: routes to
src/app/App.tsx - App routing → Bills budgets goals: routes to
src/app/App.tsx - App routing → Debts and installments: routes to
src/app/App.tsx - App routing → Assets and wealth: routes to
src/app/App.tsx - App routing → Document vault: routes to
src/app/App.tsx - App routing → Reports and search: routes to
src/app/App.tsx - App routing → Settings and backup UI: routes to
src/app/App.tsx - Sign-in screens → Identity and API client: uses
src/app/IdentityScreens.tsx - Identity and API client → PHP API: sends API requests
README.md - Transaction entry → Finance state: saves entries
src/features/money/QuickAdd.tsx - Transaction entry → Finance repository: uses repository
src/features/money/QuickAdd.tsx - Finance state → Finance repository: delegates writes
src/features/money/store.ts - Finance repository → Local database access: queries
src/db/repository.ts - Finance state → Currency and minor units: converts amounts
src/features/money/store.ts - Currency and minor units → Display preferences: reads preferences
src/lib/money.ts - Settings and backup UI → Attachment storage: manages cache
src/features/settings/StorageSettingsScreen.tsx - Settings and backup UI → Finance repository: reads storage usage
src/features/settings/StorageSettingsScreen.tsx - Sync engine → Local database access: reads local changes
src/sync/engine.ts - Sync engine → PHP API: synchronizes backup
README.md - Attachment upload queue → Attachment storage: uses attachments
src/sync/uploadQueue.ts - Attachment upload queue → Identity and API client: uses credentials
src/sync/uploadQueue.ts - PHP API → Server sync service: routes sync requests
api/app/Config/Routes.php - PHP API → API identity endpoints: routes sign-in
api/app/Config/Routes.php - Server sync service → Server database: persists synchronized data
api/app/Services/SyncService.php - PHP API → Server file service: routes file requests
- Operations staff → Admin site routing: operates
README.md - Admin site routing → Admin authentication: provides authentication
admin/src/App.tsx - Admin site routing → User device and service operations: routes operations
admin/src/App.tsx - Admin authentication → Admin API client: uses API client
admin/src/lib/auth.tsx - User device and service operations → Admin API client: calls API
admin/src/pages/StoragePage.tsx - Admin API client → Admin API endpoints: requests operations
- Scheduled services → Stored exchange rates: refreshes snapshot
README.md - Exchange-rate provider → Stored exchange rates: supplies rates
README.md - PHP API → Stored exchange rates: serves stored rates
README.md