How nishant2005-cyber/subtrack works
SubTrack lets users authenticate, manage subscriptions and usage, review spending and renewal activity, and receive reminders or content nudges. The main interactive flow runs from subscription forms and account controls through server actions into Supabase; dashboard, calendar, detail, spending, settings, and notification screens present the resulting data. A separate daily cron workflow evaluates renewals and usage, enriches reminders with TMDB suggestions, and sends configured notifications. The graph reflects sampled calls and README-documented capabilities; unsampled route and component internals are not inferred.
Main entry points: actions.ts Server actions · data.ts App data loader · route.ts Daily job endpoint · admin.ts Admin database client
Components 25
User experience
- Dashboard
app/dashboard/page.tsx - Renewal calendar
app/calendar/page.tsx - Subscription detail
app/subscriptions/[id]/page.tsx - Spending view
app/spending/page.tsx - Notification inbox
components/notification-inbox.tsx - Profile settings
app/settings/page.tsx - App navigation
components/app-shell.tsx - Subscription form
components/subscription-form.tsx
Subscription operations
- Server actions
app/actions.ts - App data loader
lib/data.ts - Usage and insights
components/weekly-usage.tsx - Budget and export
components/budget-meter.tsx - Notification controls
components/notification-inbox.tsx
Data and integrations
- Authentication
app/login/page.tsx - Session database client
lib/supabase/server.ts - Admin database client
lib/supabase/admin.ts - Supabase data store
- Email delivery
lib/email.ts - Analytics events
lib/analytics.ts
Scheduled notifications
- Daily job endpoint
app/api/cron/daily/route.ts - Content suggestions
lib/tmdb.ts - Backup endpoint
app/api/cron/backup/route.ts
Other components
- User
- TMDB and messaging services
- Cron scheduler
Connections 26
- User → Authentication: signs in
app/login/page.tsx - User → Subscription form: manages plans
README.md - Subscription form → Server actions: saves subscription
components/subscription-form.tsx - Server actions → Session database client: uses session client
app/actions.ts - Server actions → Admin database client: uses admin client
app/actions.ts - Server actions → Email delivery: sends OTP
app/actions.ts - Server actions → Analytics events: tracks events
app/actions.ts - App data loader → Session database client: queries data
lib/data.ts - Session database client → Supabase data store: reads and writes
- Admin database client → Supabase data store: accesses data
- Dashboard → App data loader: loads dashboard data
app/dashboard/page.tsx - Renewal calendar → App data loader: loads calendar data
app/calendar/page.tsx - Spending view → App data loader: loads spending data
app/spending/page.tsx - Profile settings → App data loader: loads profile data
app/settings/page.tsx - Notification inbox → Notification controls: renders inbox
components/notification-inbox.tsx - Dashboard → Usage and insights: renders usage
app/dashboard/page.tsx - Spending view → Budget and export: uses budget tools
app/spending/page.tsx - Subscription detail → Server actions: updates plan
app/subscriptions/[id]/page.tsx - Cron scheduler → Daily job endpoint: invokes daily
README.md - Daily job endpoint → Admin database client: queries and updates
app/api/cron/daily/route.ts - Daily job endpoint → Content suggestions: fetches suggestions
app/api/cron/daily/route.ts - Daily job endpoint → Email delivery: sends reminders
app/api/cron/daily/route.ts - Content suggestions → TMDB and messaging services: requests titles
- Email delivery → TMDB and messaging services: delivers messages
- Cron scheduler → Backup endpoint: invokes backup
- Backup endpoint → Admin database client: uses admin client
app/api/cron/backup/route.ts