Plane runs and routes stateful WebSocket backends at scale. An HTTP API maps keys to process URLs, spawning workers when needed and stopping them after idle periods.
Overview
Plane is a distributed system for operating stateful WebSocket server backends. It is modeled after infrastructure that spawns a dedicated process for each active document in collaborative editing products.
Clients request the process associated with a key through an HTTP API. Plane returns a URL to an existing worker or starts a new one and then returns its URL. The worker stays up while connections remain open; after connections close and a timeout elapses, Plane shuts the process down.
Only one process runs per key at a time, so that process can hold authoritative document state for connected clients. The design is a distributed map whose values are running processes rather than stored records.
Typical uses include isolated code environments such as REPLs, notebooks, and agent sandboxes, and data-heavy sessions that need a dedicated high-memory process per user. Documentation covers architecture concepts, quickstart usage, local development, and production deployment.
Key features
- HTTP API to resolve or spawn processes by key
- Lifecycle tied to open WebSocket connections
- Single active process per key guarantee
- Stateful per-session backend processes
- Idle shutdown after connection drain
- Distributed process placement model
Use cases
- Per-document multiplayer backend processes
- REPL and notebook sandboxes
- LLM agent execution environments
- High-RAM dedicated user session workers