How anuragdotdev/caly works
Caly is an offline Chrome new-tab planning dashboard. The user opens the dashboard, reviews a three-month calendar, upcoming events and todos, then edits events, tasks or settings; changes persist locally and completed tasks are cleared on the daily cycle. The graph separates dashboard orchestration, planning views, settings, and state services. README documents capabilities whose internal wiring was not sampled; those are represented without guessed implementation edges.
Main entry points: NewTab.tsx Dashboard orchestration · storage.ts Persistent storage · Header.tsx Countdown header · Celebration.tsx Deadline celebration
Components 23
Dashboard
- Dashboard orchestration
src/pages/NewTab.tsx - Countdown header
src/components/Header/Header.tsx - Deadline celebration
src/components/Celebration/Celebration.tsx
Planning Views
- Month calendar
src/components/Calendar/YearlyCalendar.tsx - Month grid
src/components/Calendar/MonthGrid.tsx - Date cells
src/components/Calendar/DateCell.tsx - Date event popover
src/components/DatePopover/DatePopover.tsx - Upcoming events
src/components/UpcomingEvents/UpcomingEvents.tsx - Event editor
src/components/EventModal/EventModal.tsx - Todo list
src/components/Todo/TodoList.tsx - Task editor
src/components/Todo/TaskModal.tsx
Settings
- Settings and data transfer
src/components/Settings/SettingsModal.tsx
State Services
- App data hook
src/hooks/useAppData.ts - Daily task reset
src/hooks/useDailyTaskReset.ts - Persistent storage
src/services/storage.ts - Data migration
src/services/migrate.ts - Task ordering and reset rules
src/services/tasks.ts
Shared Logic
- Event and day rules
src/services/calendar.ts - Countdown logic
src/services/countdown.ts - Local date utilities
src/utils/dates.ts - JSON import/export
src/utils/transfer.ts
Other components
- New-tab user
- Chrome local storage
Connections 26
- New-tab user → Dashboard orchestration: opens dashboard
README.md - Dashboard orchestration → Countdown header: renders
src/pages/NewTab.tsx - Dashboard orchestration → Month calendar: renders
src/pages/NewTab.tsx - Dashboard orchestration → Upcoming events: renders
src/pages/NewTab.tsx - Dashboard orchestration → Todo list: renders
src/pages/NewTab.tsx - Dashboard orchestration → Date event popover: renders
src/pages/NewTab.tsx - Dashboard orchestration → Event editor: renders
src/pages/NewTab.tsx - Dashboard orchestration → Task editor: renders
src/pages/NewTab.tsx - Dashboard orchestration → Settings and data transfer: renders
src/pages/NewTab.tsx - Dashboard orchestration → Deadline celebration: renders
src/pages/NewTab.tsx - Month calendar → Month grid: renders
src/components/Calendar/YearlyCalendar.tsx - Month grid → Date cells: renders
src/components/Calendar/MonthGrid.tsx - Dashboard orchestration → Event and day rules: gets upcoming events
src/pages/NewTab.tsx - Dashboard orchestration → App data hook: loads and updates
src/pages/NewTab.tsx - Dashboard orchestration → Daily task reset: schedules reset
src/pages/NewTab.tsx - App data hook → Persistent storage: loads and mutates
src/hooks/useAppData.ts - Persistent storage → Chrome local storage: reads and writes
src/services/storage.ts - Persistent storage → Data migration: normalizes data
src/services/storage.ts - Persistent storage → Task ordering and reset rules: clears stale tasks
src/services/storage.ts - Daily task reset → Task ordering and reset rules: gets reset boundary
src/hooks/useDailyTaskReset.ts - Countdown header → Countdown logic: uses countdown
src/components/Header/Header.tsx - Deadline celebration → Countdown logic: uses countdown
src/components/Celebration/Celebration.tsx - Event and day rules → Local date utilities: uses date utilities
- Settings and data transfer → JSON import/export: imports and exports
src/components/Settings/SettingsModal.tsx - JSON import/export → Data migration: validates imported data
src/utils/transfer.ts - Dashboard orchestration → Local date utilities: uses local dates
src/pages/NewTab.tsx