chishiki
v0.7.1
Published
Chishiki platform-agnostic core - LRS, scheduler, content management, activities
Maintainers
Readme
chishiki
Platform-agnostic LRS (Learning Record Store) runtime with xAPI statement storage, FSRS/SM-2 spaced repetition scheduling, content management, and activity generation.
Install
npm install chishikiUsage
import {
createLRS,
createScheduler,
createContentManager,
} from 'chishiki';
// Create an LRS instance with your storage adapter
const lrs = createLRS({ storage: myStorageAdapter });
// Store xAPI statements
await lrs.putStatement({
actor: { mbox: 'mailto:[email protected]' },
verb: { id: 'http://adlnet.gov/expapi/verbs/completed' },
object: { id: 'https://example.com/activity/lesson-1' },
});
// Schedule reviews with FSRS
const scheduler = createScheduler();
const nextReview = scheduler.schedule(card, rating);License
MIT
