Traqeet
Visit WebsiteSTACK
Next JS, TypeScript, React, Express, MongoDB, Zod, Google Gemini AI, Cloudflare R2, Turborepo
TYPE
Subscription Tracking Platform
STATUS
Alpha Testing
GITHUB REPO
Traqeet is an offline-first tracker for everything you pay for and might forget to renew: streaming and music, phone and data plans, cloud storage, gym and insurance, and the servers, domains and software a freelancer or small business depends on. The phone is the source of truth — every core action (add, edit, renew, get reminded, export) works with no network at all — and this Turborepo monorepo is the web side of that: a Next.js marketing site (landing, pricing, a blog, free tools like an SSL/domain checker, and all the legal pages a US-incorporated product needs) plus the Express/MongoDB API that the mobile app talks to once a user goes online. The API's job is everything that genuinely needs a server: a sync endpoint for Pro accounts (push a device's changed records, pull everyone else's since a cursor), AI parsing of a typed or spoken sentence into a structured subscription via Google's Gemini API, a document vault backed by Cloudflare R2 for invoices and receipts, RevenueCat-mirrored entitlements so Pro status is never trusted from the client, PDF report bundling and email delivery through Resend, and a "Live Watch" job runner that polls a tracked domain, SSL certificate or server uptime and pushes an alert when something's about to lapse.
GOALS
Building the backend for a product whose client is designed to work without it reframed how I think about what actually belongs on a server: not business logic for its own sake, but the handful of things a phone genuinely can't do alone — multi-device sync, paid entitlements, outbound email, an LLM call, and server-side monitoring of someone else's domain or SSL certificate. Writing the sync endpoint also pushed me to think adversarially about my own API for the first time in this way: every incoming change is judged independently so one bad record in a batch can't fail the rest, and a client's clock is never trusted further than "clamped to five minutes in the future." It's also the project where I've had to be most disciplined about what ships behind a feature flag versus what's actually live — a lot of what's described in the spec is built but explicitly marked untested against real devices or live services until it's been run for real.


CHALLENGES
Designing the sync protocol to be correct, not just functional, was the deepest problem: an offline-first app means two phones can edit the same record while neither has a network connection, so conflict resolution (last-write-wins on a per-record timestamp, with future-dated clocks clamped and deletes beating same-moment edits) and a monotonically increasing per-user cursor — rather than a timestamp, so a pull can never skip a late write — both had to be airtight before any UI work mattered. The AI entry endpoint needed its own care for a different reason: it takes arbitrary user text and feeds it to an LLM, so the server treats that text as data rather than instructions (stripped of control characters, capped in length, escaped inside its own tags, checked against a leak canary) and refuses to let the model invent anything the input doesn't actually say, returning fields as explicitly "missing" or "assumed" rather than guessed.

