How zayothmane33-cpu/habit-flow works
HabitFlow is a local-first habit tracker. The main workflow is to set up the app, create habits, record progress, and review history and rewards; the README also highlights XP, levels, badges, challenges, and a calendar. The runtime is concentrated in one large JavaScript file, so these nodes represent responsibilities within that file rather than separate services. The source excerpt is partial, and the README contains no implementation detail, so some feature connections are not shown.
Main entry points: script.js Habit management · index.html App interface
Components 13
Setup and access
- App interface
index.html - Onboarding
script.js - Session and access
script.js
Habit tracking
- Habit management
script.js - Habit scheduling
script.js - Local app state
script.js - Device storage
Progress and rewards
- Calendar history
script.js - XP and badges
script.js - Challenges
script.js - Rewards
script.js
Assistant
- Habit assistant
script.js
Other components
- User
Connections 15
- User → App interface: uses
README.md - App interface → Onboarding: starts
- Onboarding → Session and access: checks session
script.js - Session and access → Device storage: reads legacy data
script.js - User → Habit management: creates and tracks
- Habit management → Habit scheduling: checks frequency
script.js - Habit management → Local app state: updates
script.js - Local app state → Device storage: persists locally
README.md - User → Calendar history: reviews history
- User → XP and badges: earns progress
- User → Challenges: uses
- User → Rewards: claims
- User → Habit assistant: asks
- Habit assistant → Habit management: opens add form
script.js - Habit assistant → App interface: gives reset guidance
script.js