Skip to main content

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.

SSR

File-based routes, instant nav, image optimizer — Pylon replaces Next.js for full-stack apps.

Deploy

Self-host, Pylon Cloud, or Vercel + Pylon Cloud.

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 queriesdb.useQuery(...) subscribes to results and updates on write.
  • Auth — email magic links, OAuth, guest sessions. No third-party SDK.
  • SSR — file-based React routes with <Link>, <Image>, and built-in Tailwind — no Next.js required.
  • 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 — set DATABASE_URL=postgres://... and Pylon uses the Postgres adapter.

What it’s not

  • Only a BaaS you rent. Pylon is self-hostable infrastructure first. A managed cloud is also available at cloud.pylonsync.com if you’d rather not run it yourself — same binary, same APIs, hosted.
  • An analytics engine. Heavy OLAP / warehouse workloads belong in ClickHouse, DuckDB, or BigQuery — Pylon is for transactional, realtime application state.

How to read these docs

Start with the Quickstart to feel the shape of a Pylon app in five minutes. Then Core concepts walks through entities, policies, functions, and live queries in depth. SSR covers file-based routing, <Link>, <Image>, and the rest of the full-stack story. Deploy covers self-hosting, and Deploying to Vercel is the canonical Next.js + Pylon Cloud production stack. Browse examples on GitHub for end-to-end apps (CRM, ERP, chat, 3D world, SSR demos, ten+ total) you can clone.