Use the SDK while authoring lessons. (npm publish comes later.)
<script src="https://cdn.noodlet.local/sdk/noodlet-sdk.js"></script>
<script>
window.Noodlet.createLesson({ onStart(ctx) { /* … */ } })
</script>
This same tag works once published — publish rewrites it to the bundled same-origin copy (or omit it entirely and the platform injects it for you).
NODE_OPTIONS=--use-system-ca \ npm install https://cdn.noodlet.local/sdk/noodlet-sdk.tgz
Then import { createLesson } from '@noodlet/sdk'.
Open the dev host-shell to run a lesson with simulated sandbox constraints (it warns about network calls, external scripts, and inline handlers that the real sandbox blocks).
Files: noodlet-sdk.js · index.js · host.js · index.d.ts