For AI agents: the complete documentation index is available at https://open-spaced-repetition.github.io/ts-fsrs/ja-JP/llms.txt, the full documentation bundle is available at https://open-spaced-repetition.github.io/ts-fsrs/ja-JP/llms-full.txt, and this page is available as Markdown at https://open-spaced-repetition.github.io/ts-fsrs/ja-JP/guide/index.md.

はじめに

ts-fsrs は、FSRS を使用した間隔反復システムを構築するための TypeScript ツールキットです。宣言的 API はモデル、時刻体系、任意の middleware を再利用可能なスケジューラー定義に組み合わせます。

構成要素

モデルは FSRS アルゴリズムとそのパラメーターです。FSRS7Model が現行版で、FSRS-3 から FSRS-6 もそれらで蓄積した復習履歴のために利用できます。

時刻体系は時間の表現方法を決めます。dateChrono は Date、numericChrono は日単位の数値、temporalInstantChrono は Temporal.Instant を使います。

Middleware はスケジューリングのポリシーを担います。例えば schedulerLearningStepsMiddleware、schedulerFuzzingMiddleware、schedulerMaximumIntervalMiddleware、schedulerLeechMiddleware があります。スケジューラーを作成する前に .use(...) で組み合わせます。

defineScheduler はこれらを 1 つの定義にまとめます。.create() は設定を検証して独立したスケジューラーを返すため、1 つの定義から複数のスケジューラーを作れます。

For your Agent
TypeScript アプリに ts-fsrs を組み込む

このプロンプトをコピーして AI Agent に送り、ts-fsrs のインストールと動作する FSRS-7 スケジューラーの作成を依頼できます。

次はクイックスタートで、package をインストールしてブラウザーでスケジューラーを実行します。