@contractspec/module.learning-journey
v3.7.16
Published
Comprehensive learning journey engine - onboarding, LMS, flashcards, gamification, and AI personalization
Maintainers
Readme
@contractspec/module.learning-journey
Website: https://contractspec.io
Comprehensive learning journey engine - onboarding, LMS, flashcards, gamification, and AI personalization.
What It Provides
- Layer: module.
- Consumers: bundles (library, contractspec-studio), apps (web-landing).
src/contracts/contains contract specs, operations, entities, and registry exports.src/docs/contains docblocks and documentation-facing exports.src/contracts/contains contract specs, operations, entities, and registry exports.src/docs/contains docblocks and documentation-facing exports.
Installation
npm install @contractspec/module.learning-journey
or
bun add @contractspec/module.learning-journey
Usage
Import the root entrypoint from @contractspec/module.learning-journey, or choose a documented subpath when you only need one part of the package surface.
Architecture
src/contracts/contains contract specs, operations, entities, and registry exports.src/docs/contains docblocks and documentation-facing exports.src/enginesis part of the package's public or composition surface.src/entities/contains domain entities and value objects.src/events.tsis package-level event definitions.src/i18nis part of the package's public or composition surface.src/index.tsis the root public barrel and package entrypoint.
Public Entry Points
- Export
.resolves through./src/index.ts. - Export
./contractsresolves through./src/contracts/index.ts. - Export
./contracts/modelsresolves through./src/contracts/models.ts. - Export
./contracts/onboardingresolves through./src/contracts/onboarding.ts. - Export
./contracts/operationsresolves through./src/contracts/operations.ts. - Export
./contracts/sharedresolves through./src/contracts/shared.ts. - Export
./docsresolves through./src/docs/index.ts. - Export
./docs/learning-journey.docblockresolves through./src/docs/learning-journey.docblock.ts. - Export
./enginesresolves through./src/engines/index.ts. - Export
./engines/srsresolves through./src/engines/srs.ts. - The package publishes 32 total export subpaths; keep docs aligned with
package.json.
Local Commands
bun run dev— contractspec-bun-build devbun run build— bun run prebuild && bun run build:bundle && bun run build:typesbun run test— bun testbun run lint— bun lint:fixbun run lint:check— biome check .bun run lint:fix— biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .bun run typecheck— tsc --noEmitbun run publish:pkg— bun publish --tolerate-republish --ignore-scripts --verbosebun run publish:pkg:canary— bun publish:pkg --tag canarybun run clean— rimraf dist .turbobun run build:bundle— contractspec-bun-build transpilebun run build:types— contractspec-bun-build typesbun run prebuild— contractspec-bun-build prebuild
Recent Updates
- Replace eslint+prettier by biomejs to optimize speed.
- Add full i18n support across all 10 packages (en/fr/es, 460 keys).
Notes
- SRS/streak/XP engines are pure functions -- keep them side-effect-free.
- i18n catalogs must stay in sync across all supported locales (en, es, fr).
- Entity schemas are shared with the UI; breaking changes propagate to all learning surfaces.
