How kiy-codes/recall-flashcards works
Recall is a local-first flashcard product for desktop and web, with a separate React Native mobile client. The central user workflow is creating or importing decks, studying cards, and retaining progress locally; major branches add tests, a built-in deck catalog, sharing, optional AI evaluation, and manually controlled cloud snapshots. The tree and excerpts identify these domains, but do not show how the large desktop app dispatches to most of its helpers, so those internal edges are omitted. Supabase and mobile relationships are shown only where the excerpts establish them.
Main entry points: providers.ts AI provider adapter · index.ts Answer evaluation endpoint · MobileApp.js Mobile app · catalog-core.js Catalog validation
Components 25
Decks and study
- Desktop and web app
app.js - Review scheduler
scheduler.js - Deck metadata
metadata-utils.js - Local answer evaluation
ai-evaluator.js
Deck catalog
- Catalog browser
catalog-ui.js - Catalog service
catalog-service.js - Catalog validation
catalog-core.js - Library publishing
supabase/functions/admin-library/index.ts
Sharing and sync
- Account UI
account-ui.js - Share interface
share-ui.js - Share service
share-service.js - Share data handling
share-core.js - Cloud account UI
account-ui.js - Snapshot sync
sync-service.js - Snapshot validation and merge
sync-core.js - Cloud client entry
cloud-client-entry.js
AI services
- AI administration
supabase/functions/admin-ai/index.ts - Answer evaluation endpoint
supabase/functions/evaluate-answer/index.ts - Evaluation validation
supabase/functions/_shared/evaluator.ts - AI provider adapter
supabase/functions/_shared/providers.ts
Mobile client
- Mobile app
mobile/src/MobileApp.js - Mobile library and study logic
mobile/src/core.js - Mobile local storage
Other components
- Learner
- AI provider APIs
Connections 13
- Learner → Desktop and web app: uses
README.md - Catalog browser → Catalog validation: validates decks
README.md - Library publishing → Catalog validation: uses
supabase/functions/admin-library/index.ts - Share service → Share data handling: uses
share-service.js - Snapshot sync → Snapshot validation and merge: uses
sync-service.js - Cloud client entry → Snapshot validation and merge: imports
cloud-client-entry.js - AI administration → AI provider adapter: calls
supabase/functions/admin-ai/index.ts - Answer evaluation endpoint → Evaluation validation: validates input
supabase/functions/evaluate-answer/index.ts - Answer evaluation endpoint → AI provider adapter: calls
supabase/functions/evaluate-answer/index.ts - AI provider adapter → Evaluation validation: validates result
supabase/functions/_shared/providers.ts - AI provider adapter → AI provider APIs: requests
supabase/functions/_shared/providers.ts - Mobile app → Mobile library and study logic: uses
mobile/src/MobileApp.js - Mobile app → Mobile local storage: reads and writes
mobile/src/MobileApp.js