Foundations
Three sheets. Read in order — each one leans on the last.
- 01 Schemas and fields Declare the shape of a map once, at compile time, with a phantom tag the runtime never sees: a plain field, a handle to a nested map, or a handle to another channel entirely. Field · ChildField · ChannelField · FieldError
- 02 Documents and handles A watershed document is not one tree — it's a root map plus whatever channels its values point to, each one independently addressed, attached, and resolved. root_typed · handle_of · create_map · resolve
- 03 Starting a document Every client runs the same bootstrap: get a handle, wait for the catch-up, ensure the channels it needs exist, and only render once they've all reported in. got_document · connected · ensure_* · subscribe
Once a channel exists, the field atlas covers what it does when two clients touch it at once, and runtime covers what happens while it's live: optimistic edits, reconnect, and the rest. Ready to see it running? Start the build guide at step one.