Static web app, vanilla JavaScript, zero dependencies and no build step. You need:
- Python 3 (or any static file server) for local serving
- A Chromium-based browser for full testing (
requestVideoFrameCallback) - Docker only if you touch the backend
git clone https://github.com/digiflowhelp-stack/Kiddometer
cd Kiddometer/docs
python -m http.server 8000
# http://localhost:8000Edit files under docs/, refresh the browser. Test with short videos —
analysis takes roughly ¼ of the video duration and the tab must stay visible.
Backend:
cd backend
pip install -r requirements.txt
uvicorn main:app --port 8000 # quick loop
docker build -t kiddometer-backend . # what HF Spaces actually runs- Vanilla ES modules. No frameworks, no bundlers, no new dependencies without strong justification (the zero-dependency frontend is a feature).
- Design tokens live in
docs/css/styles.cssand mirrordesign/desgin.pen. - UI copy, code, comments and commits in English.
- Age thresholds in
docs/js/scoring.jsmust cite a source or be explicitly flaggedevidence: false— the UI tells users which thresholds are heuristic. Calibration data and studies to back them are very welcome.
Conventional Commits. Subject <= 50 chars. Body explains why, not what.
feat: add per-zone flash detection
fix: merge degenerate tail interval into previous segment
docs: add HF Spaces deploy guide
No references to AI tools in commit messages.
main— stable; GitHub Pages deploys from/docson every push- Feature branches → PR → squash merge to main
- Describe what and why in the PR body
- One logical change per PR
- For analyzer changes, include before/after measurements on a known video (synthetic ffmpeg clips are fine — see the test patterns in git history)