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.
$ curl -fsSL https://origindb.org/install.sh | shRealtime 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.
// 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"] }));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 docsReal 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.
COLLABNIGHTBOARD
A shared realtime wall — live cursors, sticky notes, and chat. Every move syncs to everyone the moment it happens.
Open live board
GAMEcube.io
An agar-style arena whose entire game loop runs inside the database. Eat, grow, and outrun rivals in a shared world.
Play cube.io
PHYSICSMarble Clash
A 60 Hz physics sumo with lobbies and matchmaking — the whole match runs server-side and streams to every player.
Play Marble ClashOpen 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.