@lazuli-ai/sdk
v0.4.0
Published
The course-side SDK for Lazuli studio courses: the wire protocol and React surface a sandboxed course uses to reach its host (checks, grading, goals/mastery, durable state, tutor).
Readme
@lazuli-ai/sdk
The course-side SDK for Lazuli studio courses — the wire protocol and React surface a sandboxed course uses to reach its host: checks and AI grading, learning goals and mastery, durable and shared state, chat/tutor/voice, tracking.
A course built from the Lazuli scaffold imports this as @lazuli-ai/sdk (hooks from
@lazuli-ai/sdk/react). Run outside a host — e.g. a local vite dev of an exported course — the SDK
detects the missing host (__LAZULI_NO_HOST__) and degrades cleanly: rendering and deterministic
checks work; AI methods and persistence no-op until the course runs on the platform.
The postMessage wire protocol (@lazuli-ai/sdk/protocol, SDK_PROTOCOL_VERSION) is a versioned
public contract: breaking protocol or API changes only in majors; hosts stay compatible with the
protocol versions published bundles carry.
