LoopKitBackend
Backend Overview
Overview of the @loopkit/nestjs package
The @loopkit/nestjs package provides a complete flashcard engine for NestJS applications.
What's Included
| Component | Description |
|---|---|
LoopKitModule | NestJS dynamic module for registration |
ReviewSessionService | Build study queues and grade cards |
DeckService | CRUD operations for decks with hierarchy support |
NoteService | Create and manage study notes |
NoteTypeService | Define note types with field schemas and templates |
ImportExportService | CSV and JSON import/export |
CardGenerator | Automatic card generation from notes |
SM2Algorithm | SM-2 spaced repetition implementation |
PrismaLoopKitAdapter | Prisma storage adapter |
| Content Pipeline | Template rendering with optional transforms |
| Statistics | Pure functions for analytics |
Peer Dependencies
{
"@nestjs/common": "^10.0.0 || ^11.0.0",
"@nestjs/core": "^10.0.0 || ^11.0.0",
"rxjs": "^7.0.0"
}Optional Peer Dependencies
| Package | Used For |
|---|---|
@prisma/client | Prisma storage adapter |
marked | Markdown content transform |
katex | Math rendering transform |
highlight.js | Code highlighting transform |
sanitize-html | XSS protection transform |
papaparse | CSV import/export (bundled) |