fsrs
2.0.1, released a year ago by an unverified publisher
Dart implementation of the Free Spaced Repetition Scheduler algorithm
WASM-ready
What it does
Provides a Scheduler, Card, and ReviewLog classes to manage spaced repetition. It calculates review intervals, retrievability, and handles learning, review, and relearning states.
AI-written summary of version 2.0.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a custom spaced repetition system in a Dart/Flutter app
- You want fine‑grained control over review intervals and retention targets
- You prefer a pure Dart solution without external dependencies
Skip it when
- You only need a simple flashcard app with default scheduling
- You are already using a higher‑level learning library that includes scheduling
Strengths
- Pure Dart, no native platform code
- Fully configurable parameters and learning/relearning steps
- JSON serializable for persistence
- Supports all platforms (web, mobile, desktop)
Weaknesses
- No UI components, only algorithm
- Requires manual integration into app logic
- Limited community examples
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Add dependency and import fsrs.fsrs; no build_runner or permissions needed
import 'package:fsrs/fsrs.dart';
final scheduler = Scheduler();
final card = Card(cardId: 1);
final rating = Rating.good;
final result = scheduler.reviewCard(card, rating);
print('Next due: ${result.card.due}');Alternatives
Packages that do the same job and could replace fsrs.