aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/server/anki/index.ts
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-12-15 22:34:33 +0900
committernsfisis <nsfisis@gmail.com>2025-12-15 22:34:33 +0900
commitadc30217b6fa5773f9fb96c6fb106102cd865a89 (patch)
tree7c105c9c77b1bb85112a108f55d381b29f18497f /src/server/anki/index.ts
parentced08d592e3d277044eb9bbfea1bef0e4e4285e3 (diff)
downloadkioku-adc30217b6fa5773f9fb96c6fb106102cd865a89.tar.gz
kioku-adc30217b6fa5773f9fb96c6fb106102cd865a89.tar.zst
kioku-adc30217b6fa5773f9fb96c6fb106102cd865a89.zip
feat(anki): add Note/Card mapping to Kioku format
Add mapAnkiToKioku function that converts parsed Anki packages to Kioku's internal data format. Includes: - HTML stripping and entity decoding for card fields - Anki factor to FSRS difficulty conversion - Anki interval to FSRS stability estimation - Due date conversion for different card types - Option to skip default Anki deck 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'src/server/anki/index.ts')
-rw-r--r--src/server/anki/index.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/anki/index.ts b/src/server/anki/index.ts
index 67e81de..13e6aa0 100644
--- a/src/server/anki/index.ts
+++ b/src/server/anki/index.ts
@@ -4,6 +4,10 @@ export {
type AnkiModel,
type AnkiNote,
type AnkiPackage,
+ type KiokuCard,
+ type KiokuDeck,
+ type KiokuImportData,
listAnkiPackageContents,
+ mapAnkiToKioku,
parseAnkiPackage,
} from "./parser.js";