feat: Anki deck import/export and Quizlet CSV import#60
Open
nymulinfoinlet wants to merge 2 commits intomainfrom
Open
feat: Anki deck import/export and Quizlet CSV import#60nymulinfoinlet wants to merge 2 commits intomainfrom
nymulinfoinlet wants to merge 2 commits intomainfrom
Conversation
Expand the quiz system from 4 to 8 question types to support deeper assessments. New types include partial credit scoring (matching, ordering), auto-graded code execution via code-sandbox service (coding), and AI-evaluated long-form answers with rubric-based feedback (essay). Closes #46 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add a new import-export module that enables students to bring in their existing flashcard collections and export study sets for use in other tools. - AnkiImportService: parses .apkg files (ZIP + SQLite), extracts notes with field separator parsing, strips HTML/media references, creates flashcards via existing FlashcardsService.createBulk - AnkiExportService: generates minimal .apkg files with proper Anki schema (col, notes, cards tables), Basic model template, and media stub - CsvImportService: handles CSV/TSV with auto-detected delimiters, quoted field parsing, header detection (Quizlet compatible) - CsvExportService: exports study set as CSV with front, back, tags columns - ImportExportController: four endpoints mounted on study-sets/:id (POST import/anki, POST import/csv, GET export/anki, GET export/csv) Dependencies: adm-zip, better-sqlite3 (+ @types) Closes #47 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
import-exportmodule with full Anki.apkgimport/export and CSV/TSV import/export (Quizlet compatible)notestable, parses\x1f-separated fields, strips HTML/media, creates flashcards viaFlashcardsService.createBulk.apkgwith proper Anki schema (col, notes, cards tables, Basic model template)Endpoints
/study-sets/:id/import/anki/study-sets/:id/import/csv/study-sets/:id/export/anki/study-sets/:id/export/csvDependencies added
adm-zip+@types/adm-zip(ZIP extraction/creation)better-sqlite3+@types/better-sqlite3(read/write Anki SQLite DB)Closes #47
Test plan
npx tsc --noEmitpasses with 0 errors🤖 Generated with Claude Code