Rebasely Beta: data may be purged

examples/live-notes Public

Markdown · 40 lines · 1.1 KiB · at d21dfdd

---id: local-devtype: guideowner: justinreviewed: 2026-10-13---# Running it locallyYou need Node 24.```bashnpm installnpm test            # the transform, the room and simulated editorsnpm run typecheck   # the Worker and the page's scriptnpm run dev         # builds the page script, then runs wrangler dev````npm run dev` fetches wrangler through npx the first time. It serves the page and the Workeron http://localhost:8787 with a local Durable Object and SQLite under `.wrangler/`.## Two editorsOpen `http://localhost:8787/#groceries` in two windows side by side and type in both. Thestatus line shows the room's version, or "Saving" while an edit waits for its ack.To see the note without the page:```bashcurl http://localhost:8787/notes/groceries```## Watching the protocolThe browser's developer tools show the frames on the socket under the Network tab, on the`ws` request. You will see one `op` frame per send, an `ack` for each, and the other window'sops arriving as `op` frames with a version. [[wire-protocol]] lists them.## Starting overDelete `.wrangler/state` to forget every note.