How ysoseri1224/sub-recorder works
Sub Recorder is a personal subscription and billing tracker. Users sign in, manage subscriptions and billing records, organize them by category or scene, and review costs and upcoming bills; settings and notification channels support the workflow. The frontend API client and Actix routes establish the client/server boundary, with handlers owning backend operations and SQLite persistence. README capabilities also include JSON import/export, currency conversion, calendar views, and several notification providers. Some frontend component wiring is inferred from product features; those links are marked unverified because their source was not shown.
Main entry points: api.ts API client · page.tsx App shell · handlers.rs Request handlers · db.rs Database operations
Components 21
User interface
- App shell
frontend/src/app/page.tsx - Subscriptions
frontend/src/components/scene-page.tsx - Billing views
frontend/src/components/subscription-detail-sheet.tsx - Scenes
frontend/src/components/scene-page.tsx - Categories
frontend/src/components/category-panel.tsx - Bill calendar
frontend/src/components/subscription-calendar.tsx - Statistics
frontend/src/app/stats/page.tsx - Settings
frontend/src/components/settings-page.tsx - Notifications
frontend/src/components/notifications-page.tsx - Login
frontend/src/components/login-page.tsx - Translations
frontend/src/lib/i18n.ts
Application API
- API client
frontend/src/lib/api.ts - HTTP server
backend/src/main.rs - Request handlers
backend/src/handlers.rs - Authentication
backend/src/auth.rs
Subscription domain
- Domain models
backend/src/models.rs - Currency conversion
frontend/src/lib/currency.ts
Persistence
- Database operations
backend/src/db.rs - SQLite database
External services
- Notification providers
Other components
- User
Connections 25
- User → App shell: uses
README.md - App shell → Subscriptions: presents
- App shell → Statistics: presents
- App shell → Login: presents
- App shell → API client: requests
- Subscriptions → API client: manages subscriptions
- Billing views → API client: manages bills
- Scenes → API client: manages scenes
- Categories → API client: manages categories
- Bill calendar → API client: loads bills
- Statistics → API client: loads statistics
- Settings → API client: updates settings
- Notifications → API client: configures channels
- Login → API client: authenticates
- API client → HTTP server: sends HTTP requests
- HTTP server → Request handlers: routes requests
backend/src/main.rs - HTTP server → Authentication: uses middleware
backend/src/main.rs - Request handlers → Database operations: calls operations
backend/src/handlers.rs - Request handlers → Domain models: uses types
backend/src/handlers.rs - Authentication → Database operations: validates sessions
backend/src/auth.rs - Database operations → Domain models: maps records
backend/src/db.rs - Database operations → SQLite database: reads and writes
- Request handlers → Notification providers: sends notifications
README.md - Settings → Translations: uses translations
- Subscriptions → Currency conversion: formats costs