What is Pylon?
Pylon is a realtime backend framework for applications that need shared, synchronized state — multiplayer tools, dashboards, CRMs, collaborative editors, chat, games. You define your schema, policies, and server functions in TypeScript; Pylon gives you a typed client, live queries, auth, and a single binary to run. No separate realtime layer. No glue between your database, your API, and your WebSocket server. Everything is one system.Quickstart
Build a live app in five minutes.
Core concepts
Entities, policies, functions, live queries.
Deploy
Ship to Fly, Cloudflare, or your own box.
Examples
CRM, ERP, chat, 3D — ten ready-to-run apps.
What you get
- Typed schema — declare entities in TypeScript, get types everywhere.
- Row-level policies — access rules next to your data, not in middleware.
- Server functions — queries, mutations, actions, all RPC-callable from the client.
- Live queries —
db.useQuery(...)subscribes to results and updates on write. - Auth — email magic links, OAuth, guest sessions. No third-party SDK.
- One binary — the runtime is a single Rust executable. Deploy anywhere.
Why another backend framework?
Most realtime backends are three systems glued together: a database, an API server, and a realtime pub/sub layer. Keeping them in sync is a full-time job. Pylon collapses the stack. Writes go through the same runtime that serves reads and pushes updates. Live queries re-execute on the server when dependent rows change and stream diffs to subscribers. There’s no denormalization, no cache invalidation, no manual fan-out.What it’s good for
- SaaS apps with live dashboards
- Internal tools, CRMs, ERPs
- Collaborative editors
- Multiplayer games and worlds
- Anything where two browsers need to see the same thing, now
Storage
Pylon runs on SQLite or Postgres. SQLite is the default — a single file, zero setup, great for local dev and many production workloads (single-node, up to tens of GB). Switch to Postgres for horizontal scale, existing Postgres infra, or shared-nothing deployments. The schema, policies, functions, and client APIs are identical across both — setPYLON_DB_URL=postgres://... and Pylon uses the Postgres adapter.
What it’s not
- A BaaS you rent. Pylon is self-hostable infrastructure. A managed cloud is planned but not yet shipped.
- A full-stack framework. Pylon is the backend; pair it with Next.js, Vite, or any client.
- An analytics engine. Heavy OLAP / warehouse workloads belong in ClickHouse, DuckDB, or BigQuery — Pylon is for transactional, realtime application state.