How misted91/compteurdepas works
This is a browser-based step counter. The user starts sensor listening, motion events are evaluated against peak, rotation, and cooldown thresholds, and detected steps update the displayed count and trigger persistence. Google sign-in enables per-user Firestore sync; localStorage provides fallback. A service worker caches the app shell for offline access. The README is empty, so capabilities and relationships here are limited to the supplied source excerpts; the HTML and styles are present in the tree but were not sampled.
Main entry points: script.js Step counter · sw.js Service worker · index.html App shell
Components 8
Step tracking
- Step counter
script.js
Count persistence
- Local storage
Offline app
- Service worker
sw.js - App shell
index.html
Other components
- User
- Motion sensors
- Firebase Auth
- Firestore
Connections 6
- User → Step counter: starts tracking
script.js - Motion sensors → Step counter: sends sensor events
script.js - Step counter → Local storage: reads and writes
script.js - Step counter → Firebase Auth: authenticates with
script.js - Step counter → Firestore: loads and saves steps
script.js - Service worker → App shell: caches assets
sw.js