How dreminmx-tech/deeptracker works
DeepTracker is an offline-first browser habit tracker: users record daily habit progress, manage habits and schedules, write journal notes, review streaks, and maintain local settings or backups. The main route is App navigation into a screen, which updates shared state; the store persists that state in browser storage. Separate domain logic supports habit actions, date handling, streak/stat calculations, journal data, and urge timers. The README documents offline PWA support and the broader user-facing capabilities; several UI and integration links rely on its descriptions or the SOURCE INDEX rather than sampled implementations.
Main entry points: App.tsx App shell · actions.ts Habit actions · storage.ts Data storage · TodayView.tsx Today view
Components 23
App experience
- App shell
src/App.tsx - Today view
src/components/TodayView.tsx - Habits view
src/components/HabitsView.tsx - Habit editor
src/components/HabitForm.tsx - Habit row
src/components/HabitRow.tsx - Urge timer
src/components/UrgeTimer.tsx - Journal view
src/components/JournalView.tsx - Stats view
src/components/StatsView.tsx - Settings view
src/components/SettingsView.tsx - Translations
src/lib/i18n.ts
Habit tracking
- Habit actions
src/lib/actions.ts - Habit logic
src/lib/habits.ts - Date logic
src/lib/date.ts - Timer logic
src/lib/timer.ts
Personal data
- Shared state
src/store.tsx - Data storage
src/lib/storage.ts - Journal logic
src/lib/journal.ts
Browser platform
- Diagnostics
src/lib/diagnostics.ts - Back handling
src/lib/useBackButton.ts - Keyboard layout
src/lib/useKeyboardInset.ts - Install prompt
src/lib/useInstallPrompt.ts - Offline worker
public/sw.js
Other components
- User
Connections 36
- User → App shell: uses
README.md - App shell → Shared state: provides state
src/App.tsx - App shell → Today view: routes to
src/App.tsx - App shell → Habits view: routes to
src/App.tsx - App shell → Journal view: routes to
src/App.tsx - App shell → Stats view: routes to
src/App.tsx - App shell → Settings view: routes to
src/App.tsx - App shell → Translations: localizes shell
src/App.tsx - App shell → Back handling: handles back
src/App.tsx - Shared state → Data storage: loads and saves
src/store.tsx - Today view → Habit actions: updates progress
src/components/TodayView.tsx - Today view → Habit logic: checks progress
src/components/TodayView.tsx - Today view → Habit row: renders rows
src/components/TodayView.tsx - Today view → Urge timer: renders urges
src/components/TodayView.tsx - Habits view → Habit editor: opens editor
src/components/HabitsView.tsx - Habits view → Habit row: renders rows
src/components/HabitsView.tsx - Habits view → Habit actions: manages habits
src/components/HabitsView.tsx - Habits view → Habit logic: reads habit state
src/components/HabitsView.tsx - Habit editor → Habit actions: saves habit
src/components/HabitForm.tsx - Urge timer → Habit actions: records outcome
src/components/UrgeTimer.tsx - Urge timer → Timer logic: gets duration
src/components/UrgeTimer.tsx - Urge timer → Habit logic: reads entry
src/components/UrgeTimer.tsx - Journal view → Journal logic: reads notes
src/components/JournalView.tsx - Journal view → Keyboard layout: adapts to keyboard
src/components/JournalView.tsx - Stats view → Habit logic: calculates stats
src/components/StatsView.tsx - Settings view → Data storage: imports and exports
src/components/SettingsView.tsx - Settings view → Habit actions: updates settings
src/components/SettingsView.tsx - Settings view → Install prompt: offers installation
src/components/SettingsView.tsx - Settings view → Diagnostics: runs diagnostics
src/components/SettingsView.tsx - Habit actions → Habit logic: uses rules
src/lib/actions.ts - Habit actions → Timer logic: uses duration
src/lib/actions.ts - Data storage → Journal logic: normalizes notes
src/lib/storage.ts - Data storage → Date logic: validates dates
src/lib/storage.ts - Data storage → Translations: seeds habits
src/lib/storage.ts - Data storage → Timer logic: uses timer defaults
src/lib/storage.ts - App shell → Offline worker: supports offline use
README.md