How mild7seven/dompet-pwa--mvp works
Dompet is a browser-based personal-finance PWA with salary-cycle, take-home-pay, and bank-transfer calculations. The main workflow is user input in the app, calculation by the financial engine, display of results, and persistence of salary calculations in IndexedDB. The app also registers a service worker, which caches the app shell and serves cached responses when available. The source excerpts support these runtime connections; the README is empty, and PRD.md and index.html were not excerpted, so their details are not inferred.
Main entry points: app.js App interactions · sw.js Service worker · index.html App shell · engine.js Pay cycle
Components 9
User application
- App interactions
js/app.js - App shell
index.html
Financial calculations
- Pay cycle
js/engine.js - Pay calculation
js/engine.js - Transfer calculation
js/engine.js
Local persistence
- IndexedDB
js/db.js
Offline support
- Service worker
sw.js - Asset cache
sw.js
Other components
- User
Connections 9
- User → App interactions: provides input
js/app.js - App interactions → Pay cycle: gets cycle
js/app.js - App interactions → Pay calculation: calculates pay
js/app.js - App interactions → Transfer calculation: calculates transfer
js/app.js - App interactions → IndexedDB: saves calculation
js/app.js - App interactions → Service worker: registers
js/app.js - Service worker → Asset cache: caches assets
sw.js - Service worker → Asset cache: checks cached response
sw.js - Service worker → App shell: caches app shell
sw.js