How nishanth6153/summer-internship-2026 works
HabitFit is a browser-based habit tracker. Its main workflow is user interaction with the app, which updates the habit model, saves state locally, and renders refreshed views. The model also derives check-in, streak, chart, and badge data; the app can export a CSV summary. The README is empty, so capabilities are inferred from the sampled source and data definitions. No external authentication or reminder-delivery service is shown: sign-in is simulated and reminders are managed in-app.
Main entry points: app.js Event controller · model.js Habit state model · views.js View rendering · storage.js State persistence
Components 17
Browser interface
- App shell
index.html - View rendering
js/views.js
App and state
- Event controller
js/app.js - Starter data
js/data.js - Shared utilities
js/utils.js - Habit state model
js/model.js - State persistence
js/storage.js
Habit tracking
- Profile and session
js/model.js - Habit management
js/model.js - Daily check-ins
js/model.js - Reminder management
js/model.js
Progress and rewards
- Progress metrics
js/model.js - Charts and streaks
js/views.js - Badges
js/model.js - CSV summary
js/model.js
Other components
- User
- Browser local storage
Connections 26
- User → App shell: uses
- App shell → Event controller: hosts
- Event controller → State persistence: loads and saves
js/app.js - State persistence → Browser local storage: reads and writes
js/storage.js - State persistence → Starter data: loads defaults
js/storage.js - State persistence → Shared utilities: builds starter state
js/storage.js - Event controller → Habit state model: updates state
js/app.js - Event controller → View rendering: renders
js/app.js - Event controller → Shared utilities: selects DOM elements
js/app.js - View rendering → Habit state model: reads metrics and state
js/views.js - View rendering → Starter data: renders module and category data
js/views.js - View rendering → Shared utilities: formats and escapes content
js/views.js - Habit state model → Shared utilities: uses date and ID helpers
js/model.js - Habit state model → Profile and session: updates
js/model.js - Habit state model → Habit management: manages
js/model.js - Habit state model → Daily check-ins: records
js/model.js - Habit state model → Reminder management: manages
js/model.js - Habit state model → Progress metrics: computes
js/model.js - Habit state model → Badges: evaluates
js/model.js - Habit state model → CSV summary: creates
js/model.js - View rendering → Charts and streaks: renders
js/views.js - Event controller → CSV summary: requests summary
js/app.js - Event controller → Profile and session: handles profile actions
js/app.js - Event controller → Habit management: handles habit actions
js/app.js - Event controller → Daily check-ins: handles check-in actions
js/app.js - Event controller → Reminder management: handles reminder actions
js/app.js