Skip to content

Add an interactive host protocol explainer - #19

Draft
manzt wants to merge 2 commits into
mainfrom
protocol/explainer
Draft

manzt wants to merge 2 commits into
mainfrom
protocol/explainer

Conversation

@manzt

@manzt manzt commented Nov 16, 2026

Copy link
Copy Markdown
Member

Adds a separate app for explaining the host protocol through its object model. The article introduces a cell’s source, identity, and configuration, then shows how cells and documents relate to notebooks and how a host owns those objects. The illustrations reveal each concept as the reader scrolls.

The connection example follows a client opening an event stream to a host that has not loaded the notebook yet. Loading creates the host’s notebook records together; snapshot events then carry them to the client one at a time. The host retains its objects, the client builds a replica, and ready ends the snapshot while leaving the connection open.

Readers can pause, scrub backward, change playback speed, and inspect records and event envelopes. This is a deterministic illustration of one host implementation, with React rendering the scene and Effect managing playback. It does not connect to a real host or require the launcher refactor.

Run it with bun run --cwd apps/@moku-protocol-explainer dev after repository setup.

@manzt
manzt force-pushed the protocol/explainer branch 2 times, most recently from 26df293 to 2bde165 Compare November 19, 2026 03:53
Introduce notebook objects, identity, and host ownership through a scroll-driven article, then let readers inspect a simulated connection, snapshot, and ready event. Objects remain on the host while transient events populate a client replica.

Keep the React and Effect app independent of the launcher, with reversible playback, adjustable speed, and inline inspection. Include its workspace dependencies so the example can be installed and built from a fresh checkout.
@manzt
manzt force-pushed the protocol/explainer branch from 2bde165 to 1b6b8cd Compare November 25, 2026 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant