This directory contains code shared between frontend and backend.
Code in this directory must work in both environments:
Deno.*)window, document)Deck - Flashcard deckCard - Individual flashcard with SR parametersStudySession - Completed study session recordUserStats - Calculated statisticsUserData - Complete user data structureRating - Enum for card difficulty ratings (1-4)ReviewResult - Result of SR calculationImplements the SM-2 algorithm to determine:
Checks if a card should be shown for review.
Creates unique IDs for new records.
The SM-2 (SuperMemo 2) algorithm is the foundation of Anki's spaced repetition:
See ARCHITECTURE.md for full algorithm documentation.