Statly
A dashboard that turns TickTick to-do and focus-timer history into searchable records, stats, goals and rewards.
No TickTick account needed: try guest mode with demo data.
React · TypeScript · Redux Toolkit · Node.js · Express · MongoDB · FastAPI · Hugging Face
13s → <1s
Slowest page load, before and after a database redesign
45,000+
Focus records and tasks synced and searchable
12,000+
Focus records tagged by an AI emotion model
01. Overview
Statly is a full-stack analytics app for TickTick, the to-do and focus-timer app I use every day. After years of logging, I had 12,000+ focus records and 30,000+ tasks, and TickTick made it hard to filter or search them, so I built Statly to see and search my whole work history. Anyone can sign up and connect their TickTick account, or try guest mode with demo data.
02. Key features






03. How it's built
Making every page load in under a second
- Problem
- All records lived in one large JSON document per type (the tasks one was 8.7 MB), so every page loaded everything.
- What I did
- Redesigned the data so each record is its own MongoDB document, indexed by user and date, with filtering, pagination and totals done in the database.
- Result
- The slowest page went from 13 seconds to under 1 second.
Making the totals right, not just fast
- Problem
- While rebuilding every page, I checked the new totals against the old ones and found the old ones were wrong. One day showed 17 hours because pauses weren't subtracted (it was really 6h46m), and time after midnight went to the wrong day.
- What I did
- Subtracted pause time from every focus record, split focus records that cross midnight at the day boundary in the user's time zone, and fixed date filtering in every service.
- Result
- Daily totals, medals and streaks now match the time actually spent.
Keeping each account's data separate
- Problem
- When one account imported its TickTick data, it took over records that belonged to another account.
- What I did
- Made every record unique per user (record ID + user ID), and added a rule that throws an error if any query is missing a user ID.
- Result
- An import can only ever touch its own account's records.
04. My role
I built Statly on my own, end to end: the product and its 8 pages, the MongoDB data model, an Express API with 60+ endpoints, a Python (FastAPI) service for the emotion model, and the Vercel deployment. I wrote the first version by hand. For the database redesign and later features, I wrote the plans, used Claude Code to help build them, and reviewed and tested the results, checking every page by hand on desktop, iPhone and iPad.