Skip to content
Zajkani
Menu
All projects

Cairn

My own LLM product, live and in daily production use: a learning app that turns photos, PDFs, Word and Excel files, CSV or text into spaced-repetition flashcards. The model returns only defined fields.

Diagram of Cairn's import pipeline: a photo, PDF, Word, Excel or CSV and text files go into a schema, and cards with only the defined fields come out.
Technologies
  • TypeScript
  • Anthropic SDK
  • Zod
  • Supabase
  • Row-level security
  • Deno Edge Functions
Links

Cairn is my own product, live at cairn-german.com and in daily production use. It is a multi-user learning app: an LLM turns photos, PDFs, Word and Excel files, CSV or pasted text into spaced-repetition flashcards.

How it is built

  • Import from photos, PDF, Word, Excel/CSV and text
  • Schema-bound extraction with Zod: the model returns only defined fields
  • Tenant isolation via row-level security, covered by 42 pgTAP assertions
  • Server-side model proxy, rate limits, token and cost logging

Stack

TypeScript (strict), Anthropic SDK, Zod, Supabase (Postgres, RLS), Deno Edge Functions and Vercel; React 19 / Expo for the web PWA and Android.