datastar · commands

playgroundreal types, real dispatcher

The editor is loaded with the actual commands.d.ts, and the actual dispatcher runs in this tab. Clicking a button in the preview posts to /command/…, a fetch shim hands it to dispatch(), and the SSE stream that comes back is the real thing. ← the tour · docs

The playground is a code editor — it needs a keyboard and a wide screen. Open this page on a desktop. In the meantime, the tour and the docs read fine here.

playground.ts
diagnostics

typing…

preview

press run

requests0

clicks in the preview show up here