Noti Flashcards: from Notion notes to daily reviews

I built a subscription app that turns Notion databases into flashcards. I own the product from interface design to billing and production operations.

from first commit to live, January 2026
16 days
Playwright tests on every pull request
~110
billing reconciliation runs, 8 to 30 September 2026
6,211
Role
Solo developer: product design, frontend, backend, billing and operations
When
First commit 1 January 2026, live 17 January, payments since February
Stack
React 19, TanStack Query and Router, Tailwind, Vite · Hono on Cloudflare Workers, KV · Supabase (Postgres, Auth, pg_cron) · Lemon Squeezy · PostHog · Astro
Price
$2.90 a month or $24 a year, 15-day trial

Noti turns a Notion database into flashcards and schedules reviews with FSRS, the spaced-repetition algorithm Anki also uses. Users keep editing their cards in Notion and come to Noti for their daily reviews.

I put requests through a shared queue for each Notion connection, with retries and deadlines, to stay within its rate limit.

Checking the payment lifecycle

In September I ran a read-only audit of the whole product, with a coding agent doing the legwork against the code, the live deployment and the provider's records. I used the findings to rebuild billing and add automated tests in CI.

The audit traced renewal and cancellation failures to invoice ids being stored as subscription ids. It also exposed gaps in event ownership and account deletion. I rebuilt those paths around verified ownership, durable commands and reconciliation.

Rebuilding billing

  • Webhooks are verified with HMAC over the raw bytes, then checked for store, product, variant and live or test mode before anything changes.
  • Ownership comes from a signed checkout attempt. Later events map through known subscription and customer ids. An email address alone never decides who owns a subscription.
  • Every command to the provider writes a durable record first. If the provider accepts and the local write fails, the user sees "pending" with a link to the billing portal instead of a false success.
  • Account deletion checks every known subscription, verifies the cancellation, and only then deletes the user.
  • A reconciliation job runs every five minutes in small batches: due webhook events, unresolved commands, subscriptions due for a check, unfinished checkouts and pending deletions. It first ran in production on 8 September. By 30 September it had 6,211 recorded runs, and in the last week the longest gap between two runs was 6 minutes 10 seconds. Two alerts watch it hourly.

Saving study progress

A rating is written to localStorage before the next card appears, then sent to the server, with sendBeacon when the tab closes. The server applies it only on top of the revision the browser saw, so a stale tab cannot overwrite newer progress. Recovery runs from Supabase pg_cron, which calls the Worker once a minute with a short-lived HMAC-signed request, because Cloudflare's cron had dispatch failures at the time.

Tests

About 110 Playwright tests now cover billing, cards, the Notion integration, security, study sessions and analytics. Each run starts a stub of the payment provider, two Workers (one of them without KV), the Vite app and a fresh local Supabase. A core subset also runs on Firefox, WebKit and an emulated Pixel 7. GitHub Actions runs the suite on every pull request and every push to main.

Questions about this project: [email protected]