OPEN SOURCEBUILT IN C++MIT LICENSE

The realtime backend that keeps everyone in sync.

OriginDB is an open-source database and server in one. Your app logic runs inside the database, and every change streams to connected clients the instant it happens — no polling, no cache to wire up. Built in C++ to be fast and to run anywhere from a single binary.

Install in seconds$ curl -fsSL https://origindb.org/install.sh | sh
C++
Native engine
Realtime
Live sync
1 binary
Self-hosted
MIT
Open source

Realtime by Default

Clients see changes the instant they happen — one live connection, no polling, no refresh.

Logic in the Database

Your backend code runs right next to your data, so a change and its update are one step.

Developer First

C# & AssemblyScript SDKs, a simple CLI, and updates you can ship live with no downtime.

Secure & Reliable

Sandboxed logic, ACID transactions, and a durable log so your data survives a crash.

Runs Anywhere

One small C++ binary. Self-host it on your own hardware — your infrastructure, your data.

subscribe.ts
// connect to OriginDB
const ws = new WebSocket("wss://your-app.origindb.org");

// subscribe — get an initial snapshot + live matching commits
ws.onopen = () => ws.send(JSON.stringify({
  type: "sql_subscribe",
  sql:  "SELECT * FROM todos WHERE done = false",
}));

// every change that matches your WHERE streams here, in order
ws.onmessage = (e) => render(JSON.parse(e.data));

// writes go over the same socket — one call, transactional
ws.send(JSON.stringify({ type: "call_reducer",
  module: "todos", reducer: "add", args: ["ship it"] }));
LIVE QUERIES

Realtime data,
one subscribe of code.

Ask for the data you want and get it right away — plus every future change the instant it happens. No polling loops, no caches to invalidate, no glue code.

Read the docs
SEE IT RUNNING

Real apps, running live on OriginDB.

Each demo runs its whole backend inside the database. The browser just connects and renders what streams back — click in and try one.

WHY ORIGINDB
C++ engine efficient live updates sandboxed logic durable storage zero-downtime updates MIT licensed

Open source. Built for the future.

Join developers building the next generation of realtime apps with OriginDB. No seats, no metered egress, no proprietary runtime between you and your data.