smrt
Open the smrt source on GitHub Switch to dark color scheme
← All packages
Domain models v0.62.10 New

@happyvertical/smrt-education

Preview tenant-aware learning catalog models and services for courses, lessons, learners, submissions, authoring, and group sharing.

Source ↗

What it gives you

Preview tenant-aware learning catalog models and services for courses, lessons, learners, submissions, authoring, and group sharing.

  1. 01The package is a preview, so its models and services can still change
  2. 02Courses, ordered sections, lessons, and lesson-owned files in one catalog
  3. 03CatalogService authorizes each read through a decision the application supplies
  4. 04Services own learner planning, progress, submissions, course authoring, and course bundle import
  5. 05Private family material never reaches a learner-facing result

Catalog reads use the caller’s authorization

Catalog objects are scoped to an optional tenant. Applications call CatalogService with an actor-bound decision. The tenant catalog read scope widens only a list to the tenant, its ancestors, and global rows. It never authorizes a get, a write, or a raw query.

Private material stays private

Courses marked personal-use-copy and all answer keys and assessment guidance are private family material. A learner never sees guardian-audience material. A learner bundle never carries a key, and a missing key stays null.

Services own the writes

LearnerService, SubmissionService, LessonWorkService, CourseAuthoringService, and GroupSharingService perform authorization and transactions. Course revisions are append-only. Group tenants never become family ancestors or guardians.

Import and ingestion

CourseBundleImportService reads a bounded bundle and refuses hostile input instead of trimming it. Nothing imports as published. The ingestion entry supports the extract-questions handler for scanned worksheets. The node entry reads Class CrunchLabs downloads from disk.