How rohittrv7/streakly works
Streakly is a local-first mobile app for habit streaks, planning, focus sessions, and progress review. Users enter through the app’s screens, record activity in those domain features, and retain data locally; statistics turn tracked activity into visual summaries. Other documented capabilities include YouTube study playlists, notifications, backups, themes, and English/Roman Hinglish localization. Relationships beyond the sampled plan-month and notification-handler code rely on README documentation; the supplied excerpts do not show every feature’s runtime wiring.
Main entry points: app App screens · aggregate-tasks.ts Progress statistics · handlers.ts Notification handling · streak.ts Habit tracking
Components 18
App experience
- App screens
src/app - Today view
src/features/today/components/TodayBentoGrid.tsx - UI components
src/components/ui/Screen.tsx
Activity tracking
- Habit tracking
src/features/habits/streak.ts - Planner tasks
src/features/planner/repo.ts - Focus timer
src/features/focus/timer.ts - Progress statistics
src/features/stats/aggregate-tasks.ts - YouTube study
src/features/youtube/components/YouTubeSection.tsx
Local services
- Local database
src/lib/db/client.ts - Notification planning
src/lib/notifications/plan.ts - Notification handling
src/lib/notifications/handlers.ts
App support
- Backup and restore
src/features/settings/backup/export.ts - Settings
src/features/settings/repo.ts - Accent themes
src/lib/theme/store.ts - Localization
src/core/i18n/t.ts
Other components
- User
- Device notifications
- YouTube API
Connections 26
- User → App screens: uses
README.md - App screens → Today view: shows
README.md - App screens → Habit tracking: supports
README.md - App screens → Planner tasks: supports
README.md - App screens → Focus timer: supports
README.md - App screens → Progress statistics: shows
README.md - App screens → YouTube study: supports
README.md - App screens → UI components: uses
README.md - Planner tasks → Local database: persists tasks
README.md - Habit tracking → Local database: stores activity
README.md - Focus timer → Local database: logs sessions
README.md - Progress statistics → Habit tracking: summarizes
README.md - Progress statistics → Planner tasks: summarizes
README.md - Progress statistics → Focus timer: summarizes
src/features/stats/aggregate-tasks.ts - YouTube study → YouTube API: imports playlists
README.md - App screens → Notification planning: configures
README.md - Notification planning → Device notifications: schedules
README.md - Device notifications → Notification handling: delivers responses
src/lib/notifications/handlers.ts - Notification handling → Planner tasks: checks tasks
src/lib/notifications/handlers.ts - Notification handling → Habit tracking: checks completions
src/lib/notifications/handlers.ts - Notification handling → Focus timer: updates focus
src/lib/notifications/handlers.ts - App screens → Backup and restore: exports or restores
README.md - App screens → Settings: configures
README.md - Settings → Local database: stores preferences
README.md - App screens → Accent themes: selects accents
README.md - App screens → Localization: displays translations
README.md