Skip to content

feat: SubTrack, an offline-first PWA for tracking subscriptions - #1

Merged
lestolo merged 1 commit into
mainfrom
claude/brave-ride-ephvtr
Oct 4, 2026
Merged

lestolo merged 1 commit into
mainfrom
claude/brave-ride-ephvtr

Conversation

@lestolo

@lestolo lestolo commented Oct 4, 2026

Copy link
Copy Markdown
Owner

Description

First version of SubTrack, a static web app for tracking subscriptions. It stores everything in IndexedDB and runs entirely on the user's device, with no backend, no build step and no runtime dependencies.

  • Catalogue of ~120 popular services with logos (Simple Icons, CC0) bundled for offline use. Brands that Simple Icons doesn't carry (Disney+, Prime Video, Adobe, Microsoft, Canva…) show a coloured monogram instead. Custom subscriptions are also supported.
  • Billing frequencies: monthly, quarterly, yearly or any custom period. Renewals are always computed from the start date, so month-end dates stay correct (31 Jan → 28/29 Feb → 31 Mar).
  • Multi-currency: each subscription has its own currency. Totals are shown per currency, or as one total in the main currency when the user enters manual exchange rates. Rates are never fetched online.
  • Reminders without a push server:
    • local notifications checked when the app opens;
    • Periodic Background Sync, available only on Chromium for Android;
    • a .ics calendar export with alarms, which arrive reliably even with the app closed.
  • Installable PWA with an offline cache. A non-modal, animated "Add to Home Screen" guide uses the native install prompt on Chromium and shows step-by-step coaching on iOS.
  • Interface: Italian and English, light and dark themes, mobile-first bottom sheets with swipe-to-dismiss, undo on delete, JSON backup export and import.
  • Security:
    • strict CSP and security headers, in both index.html and vercel.json;
    • user text is only rendered through textContent;
    • imported backups are validated field by field;
    • no secrets or personal data anywhere in the repository.
  • Repo housekeeping:
    • README in English and Italian with screenshots and a Deploy with Vercel button;
    • CONTRIBUTING, Code of Conduct, SECURITY policy and CHANGELOG;
    • issue and PR templates, a CI workflow and Dependabot.

Logic that doesn't touch the DOM lives in js/core/. The page, the service worker (through importScripts) and the Node tests all share it.

Type of change

  • Bug fix
  • New feature
  • Catalogue / translations
  • Documentation
  • Refactoring / tooling

Checklist

  • npm test passes (17 tests: billing maths, DST, leap years, validation, reminders, ICS)
  • Tested on a phone-sized viewport, in light and dark mode (Chromium with Pixel 7 and iPhone 14 emulation: full flow, offline reload, ICS download, no console errors)
  • New UI strings are translated in every language in js/core/i18n.js
  • ST.VERSION bumped if cached assets changed (sw.js → ASSETS), initial version 1.0.0
  • No secrets, API keys or personal data added
  • No new runtime dependencies or third-party requests

🤖 Generated with Claude Code

https://claude.ai/code/session_0127iNTyhnYEypEm4cd97XPA


Generated by Claude Code

- IndexedDB storage with validated import/export backups
- Catalogue of ~120 popular services with Simple Icons logos (CC0)
  and custom subscriptions with monogram tiles
- Monthly/quarterly/yearly/custom billing with month-end handling
- Multi-currency totals with optional manual exchange rates
- Local reminders (on open + Periodic Background Sync) and .ics export
- Animated "Add to Home Screen" guide for iOS and Android
- IT/EN interface, light/dark theme, mobile-first bottom sheets
- Vercel config with strict CSP and security headers
- Unit tests, CI workflow, README (EN/IT) and community files

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0127iNTyhnYEypEm4cd97XPA
@lestolo
lestolo merged commit 64342dc into main Oct 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants