How xernosz/dashcalc works
DashCalc is a browser-only delivery-earnings calculator and tracker. Drivers configure vehicle and tax inputs, enter an offer, review estimated costs and a grade, then optionally record the offer for later summaries and editing. The journal also supports backup and restore. The README documents privacy-focused local data and optional visit tracking; sampled code shows local storage and a GoatCounter image request. Page wiring is not shown, so links between page scripts and HTML entry points are not inferred.
Main entry points: offers.js Offer records · calculator.js Offer calculator · shared.js Settings persistence · setup.js Vehicle setup
Components 13
Offer workflow
- Vehicle setup
setup.js - Offer calculator
calculator.js
Journal and records
- Offer records
offers.js - Journal and summaries
journal.js - Backup and restore
journal.js
Shared app services
- Cost and grade engine
shared.js - Settings persistence
shared.js - Browser local storage
- Theme and version display
theme.js
Landing and measurement
- Interactive landing page
front.js - Privacy-aware visit counter
counter.js
Other components
- Driver
- GoatCounter
Connections 20
- Driver → Vehicle setup: sets vehicle
README.md - Vehicle setup → Settings persistence: saves settings
setup.js - Vehicle setup → Settings persistence: loads settings
setup.js - Settings persistence → Browser local storage: reads and writes
shared.js - Driver → Offer calculator: enters offer
README.md - Offer calculator → Settings persistence: loads settings
calculator.js - Offer calculator → Cost and grade engine: evaluates offer
calculator.js - Offer calculator → Offer records: records decision
calculator.js - Offer records → Cost and grade engine: recalculates edits
offers.js - Offer records → Settings persistence: loads settings
offers.js - Offer records → Browser local storage: reads and writes
offers.js - Journal and summaries → Offer records: lists and edits
journal.js - Journal and summaries → Backup and restore: opens backup tools
journal.js - Backup and restore → Offer records: imports records
journal.js - Driver → Interactive landing page: views example
README.md - Interactive landing page → Cost and grade engine: evaluates example
front.js - Offer calculator → Privacy-aware visit counter: dispatches offer changes
calculator.js - Privacy-aware visit counter → GoatCounter: sends counts
counter.js - Privacy-aware visit counter → Browser local storage: stores opt-out state
counter.js - Driver → Theme and version display: switches theme