Back to Projects

Medicardo

CreatorTestFlightJul 2026 – Present

AI flashcard app for Japanese medical students: lecture PDFs in, spaced-repetition cards out.

~1,600
Automated Tests
30
API Endpoints
iOS · iPad · Web
Platforms
EN / JA
Languages

The Problem

Medical students in Japan study from huge stacks of lecture PDFs and handwritten notes. Turning them into good flashcards by hand takes hours, and general-purpose flashcard apps don't handle Japanese medical content or image-heavy slides well.

How It Works

A student shares PDFs or photos straight from any app via a native iOS Share Extension. Uploads continue in the background, and a push notification arrives when the cards are ready.

On the server, an AI writer turns each page into Japanese cards (Q&A, cloze and image occlusion) in three passes: draft, verify, name. Jobs run on a queue with claim/heartbeat/release, so a crash resumes from the last finished page and finishing a job is idempotent.

The app works fully offline on a local SQLite database (drift). It pushes an append-only event log to the API and pulls changes with a cursor, using tombstones for deletes. The phone is the scheduling authority, using FSRS; the server derives streaks and daily stats in each user's own time zone.

Version 1, a React PWA, has been in daily use since July 2026. Version 2 adds the native Flutter app (iPhone, iPad, web) and a multi-user API, and is now in TestFlight.

Key Challenges

Keeping scheduling identical on the phone and the server

The FSRS scheduling and streak rules exist in both TypeScript and Dart. Shared test-vector files run in both test suites, so the two implementations can't drift apart.

Sync that survives flaky mobile networks

Pushes are append-only events with duplicate detection, so retries are always safe. Pulls are cursor-paged, and deletes travel as tombstones so every device converges.

Secure sign-in without passwords

Sign in with Apple and Google ID tokens, verified server-side against JWKS. Refresh tokens rotate, and reusing an old one revokes every session for that user. Sign-up is invite-only.

Japanese typography and localization

Full English/Japanese localization via ARB files, plus fixes for Noto Sans JP variable-font weights that rendered wrong in Flutter.

Tech Stack

Mobile

Flutter + Riverpod + go_routerOne codebase for iPhone, iPad and web with testable state management
drift (SQLite)Offline-first local database with type-safe queries and a web backend
Swift Share Extension + APNsNative sharing from any app, background uploads and push notifications

Backend

Node.js + TypeScript + ExpressMulti-user sync API and the worker job API
SQLite (better-sqlite3) + zodSimple, fast storage with validated request schemas
ts-fsrsModern spaced-repetition scheduling

AI & Infrastructure

ClaudeWrites and verifies the Japanese cards from page images and text
Docker Compose + nginx on HetznerSeparate production and v2 containers, deploys from a pinned tag