# jsflow > jsflow connects browsers (and other clients) in rooms so they can exchange messages directly, over WebRTC data channels. A signalling service introduces them; messages do not pass through it. This is the documentation, as Markdown. ## Start here: an account for an agent Run `npx jsflow-cli signup` (Node 20 or newer; nothing to install). It opens a page where the person creates a jsflow account (GitHub, Google or an email link), checks the code and approves the login: that is the only human step. Then run `npx jsflow-cli whoami`, and `jsflow apps create`. jsflow is in early access, by invitation: an address that is not invited ends with a link to https://jsflow.com/waitlist/. Details: https://jsflow.com/docs/agents/setup.md. No invitation yet? Build and run on http://localhost or 127.0.0.1 with the shared demo app (up to 16 peers a room); its key is in the quick start: https://jsflow.com/docs/start/quick-start.md. The demo app is shared, so use a random room name. Your own app key, for your own domain, comes with an invitation: join the waitlist at https://jsflow.com/waitlist/. Every page below is a Markdown copy of a page on https://jsflow.com/docs/. All of it in one file: https://jsflow.com/llms-full.txt. Error codes as data: https://jsflow.com/docs/errors.json. Which credential does which job, and what only a person can do: https://jsflow.com/auth.md. ## Docs - [jsflow documentation](https://jsflow.com/docs/index.md): Rooms of browsers that talk to each other directly. What jsflow is, and where to start. ## Start - [Is jsflow right for your app?](https://jsflow.com/docs/start/is-it-right.md): What jsflow is good for, and what it is not. - [Quick start](https://jsflow.com/docs/start/quick-start.md): Join a room from a plain HTML page and send your first messages. ## Concepts - [Rooms, peers and keys](https://jsflow.com/docs/concepts/rooms-peers-keys.md): The vocabulary: app, key, room and peer id. - [How messages travel](https://jsflow.com/docs/concepts/how-messages-travel.md): The mesh, the relay, and what each can see. - [Choosing how to send](https://jsflow.com/docs/concepts/choosing-how-to-send.md): broadcast, send or sendReliable, and how to design for lost messages. - [Lifecycle](https://jsflow.com/docs/concepts/lifecycle.md): Joining, reloads, phones, leaving, and what to do when join fails. - [Choosing a state model](https://jsflow.com/docs/concepts/choosing-a-state-model.md): Who decides, what travels fast and what must arrive, and who gives a late joiner the state: chat, a host-authoritative game and collaborative drawing side by side. ## Guides - [Loading the SDK](https://jsflow.com/docs/guides/loading-the-sdk.md): npm, the CDN with an integrity hash, bundlers, TypeScript and Content-Security-Policy. - [Bundlers and CSP](https://jsflow.com/docs/guides/bundlers-and-csp.md): Vite, webpack, Next and esbuild: how the SDK's worker gets to the page, what a Content-Security-Policy needs, and what the integrity hash covers. - [React](https://jsflow.com/docs/guides/react.md): A hook around join and leave: the room's state and peers as React state, and the cleanup that StrictMode needs. - [Join tickets](https://jsflow.com/docs/guides/join-tickets.md): Let your server decide who may join which room, and tell jsflow who each peer is. - [Join tickets in Node](https://jsflow.com/docs/guides/join-tickets-in-node.md): A ticket endpoint for your Node backend, with no dependencies: sign a ticket for one user and one room, and hand it to the page. - [Keeping state in sync](https://jsflow.com/docs/guides/keeping-state-in-sync.md): Broadcasts can be lost and peers arrive late. Three techniques that keep every peer's copy of shared state the same. - [Presence](https://jsflow.com/docs/guides/presence.md): Show who is in the room and what each peer is doing, with heartbeats and a snapshot for late joiners. - [Collaborative documents with Yjs](https://jsflow.com/docs/guides/yjs.md): Sync a Yjs document and its cursors between the peers in a room with y-jsflow, and keep the document when the last peer leaves. - [For games](https://jsflow.com/docs/guides/for-games.md): A short guide to building a multiplayer game on jsflow: what to send fast, what must arrive, who decides, and what to keep on your own server. - [A shared whiteboard](https://jsflow.com/docs/guides/whiteboard.md): A whiteboard for phones and computers with no server of your own: Yjs keeps the board, y-jsflow syncs it over a room, y-indexeddb keeps it in each browser, and edits made offline merge on return. - [Limits and measured performance](https://jsflow.com/docs/guides/limits.md): What an app, an IP and a message may do, and how the service performed in tests. - [Security and privacy](https://jsflow.com/docs/guides/security-and-privacy.md): Who can join, what is protected, what is not, and what peers and the service can see. - [Troubleshooting](https://jsflow.com/docs/guides/troubleshooting.md): From the symptom you see to the cause and the fix. ## Agents and automation - [Agents and automation](https://jsflow.com/docs/agents/index.md): Let a coding agent or a script manage your jsflow account safely: the CLI, access tokens, and what only a person can do. - [Set up an agent](https://jsflow.com/docs/agents/setup.md): Sign up and log in with one command and a code a person approves, install the CLI, or hand an agent a token. - [Which credential for which job](https://jsflow.com/docs/agents/credentials.md): The five credentials jsflow uses, who holds each, and what only a person can do. - [CLI reference](https://jsflow.com/docs/agents/cli.md): Every jsflow command, the output and exit-code contract, and the environment variables. - [Token scopes](https://jsflow.com/docs/agents/scopes.md): What each access-token scope grants, which ones reach personal data, and the presets. - [An AGENTS.md for your repository](https://jsflow.com/docs/agents/agents-md.md): Rules to paste into your repository's AGENTS.md so a coding agent uses jsflow safely. ## Support - [Getting help](https://jsflow.com/docs/support/getting-help.md): Where to ask, what to include so we can answer in one go, how fast to expect an answer, and where to see whether jsflow is up. ## Security - [Reporting a security problem](https://jsflow.com/docs/security/reporting.md): How to tell us about a vulnerability, what we do with it, and what testing is welcome. ## Reference - [SDK reference](https://jsflow.com/docs/reference/sdk.md): Every export of the jsflow SDK 1.0, generated from jsflow.d.ts. - [Error codes](https://jsflow.com/docs/reference/errors.md): Every error code the account API, the signalling service and the CLI use, with its status and meaning. - [Server API](https://jsflow.com/docs/reference/server-api.md): The /v1 API for your backend and your tools: every route, its authorisation, parameters, fields and errors, generated from the OpenAPI file. - [Changelog](https://jsflow.com/docs/reference/changelog.md): SDK versions. ## Optional - [Status](https://status.jsflow.com): whether jsflow is up - [Community](https://github.com/precisit/jsflow-community): questions, bug reports and runnable examples