How alehbarushka/captain-america works
This is a browser-based mortgage repayment scheduler. Users edit loan terms and monthly payment status or extras; the app recalculates the schedule and updates its table and card views, while saving schedule state to Firestore when configured. A service worker caches the application shell and serves cached resources when offline. The README is empty, and source excerpts are partial, so the graph omits unverified initialization and calculation details.
Main entry points: app.js Scheduler app · sw.js Service worker · index.html App shell files
Components 10
Loan scheduler
- Scheduler app
js/app.js - Schedule calculation
js/app.js - Schedule views
js/app.js - Payment tracking
js/app.js
Cloud persistence
- Firestore sync
js/app.js - Firestore
Offline support
- Service worker
sw.js - Browser cache
- App shell files
index.html
Other components
- User
Connections 9
- User → Scheduler app: edits inputs
js/app.js - Scheduler app → Schedule calculation: recalculates schedule
js/app.js - Scheduler app → Schedule views: renders schedule
js/app.js - Payment tracking → Scheduler app: triggers recalculation
js/app.js - Payment tracking → Firestore sync: saves changes
js/app.js - Firestore sync → Firestore: writes schedule
js/app.js - Service worker → Browser cache: stores responses
sw.js - Service worker → App shell files: precaches shell
sw.js - Service worker → Browser cache: serves cached files
sw.js