every dot is a phone. your cursor is a tunnel with no signal. move it.

Apps lose signal. They shouldn’t lose data.

KineDB is one database inside your app and on your servers. Writes made offline wait on the device, sync when the signal is back, and the server checks every one. If one is refused, the app sees it. Nothing disappears silently.

0 writes saved offline 0 synced when the signal came back 0 refused, and the app is told 0 lost

Two people. One list. No signal.

Going offline is the easy half. Coming back is where apps lose data. Take Alice offline, tick stop 7 on both phones, then bring her back.

Alice

In step with the server

Bob

In step with the server

The server

Both phones are online and in step.

A simulation in this page of how KineDB sync behaves. Tables can also use last writer wins per column, or a merge function of your own that runs on the server. The real engine runs in the demos →

What it replaces

A local database on the device, another on the server, and the code between them: a sync API, an offline queue, schema translation and conflict handling, usually written twice and drifting apart.

Today

SQLite on the device+your glue code+Postgres on the server
  • Two SQL engines and two schemas to keep in step.
  • Mutation queues, retry endpoints and conflict handlers in app code.
  • Permission checks written on both sides.

With KineDB

KineDB in the app⇄ sync ⇄KineDB on the server
  • The same SQL on the device and on the server.
  • After the first sync, only changed rows travel.
  • Each device gets only the rows its user may see; the server checks every write.

How it works

One engine that runs the same way inside your app, in the browser and as a sharded cluster. Click a step to see what happens there.

In your app

KineDB runs inside the app as a local database: a Rust library, @kinedb/embedded for JavaScript, kinedb-embedded for Python, and in the browser on WebAssembly.

In the browser it keeps its data in OPFS, so it survives a reload.

Reads and writes go to the local copy, so they work with no network.

How we know it works

  • Commits are durable by default in the embedded engine
  • The embedded library has the same API as the network client
  • The browser build has a real-browser test target
Today’s stops Stop 6 Stop 7 Stop 8 KineDB local database No signal the app keeps working waiting to sync reads and writes hit the local copy: no spinner

What it looks like in code

the same afternoon, one engine

JavaScript in the browser. The same package works in Node and Bun.

import { KineDB } from '@kinedb/embedded';

const db = await KineDB.open('route');
await db.sync('stops', { url, token });

// no signal: the write is saved on the device
await db.sql("UPDATE stops SET state = 'done' WHERE id = 7");

What’s live, and what isn’t yet

We’d rather you hear it from us than find it in an evaluation.

Live today

  • Local database with offline reads and writes
  • Sync of changed rows, live after the first copy
  • Row permissions applied to sync
  • Four conflict rules per table
  • Files that sync with their rows and resume
  • Server, cluster, branches and time travel

On the roadmap, no dates

  • A Swift SDK for iOS and macOS
  • A hosted KineDB service
  • Servers that start from S3 and scale from zero
  • More language SDKs

Not available today

  • Sync on top of your existing Postgres
  • Encryption of the copy on the device
  • A React Native SDK

Engineering FAQ

The questions engineers ask us first. Missing yours? Ask the people who build it.

How does prolly-tree sync differ from CRDTs or WAL replication?

The storage engine is content-addressed (prolly trees), so identical data and file chunks are stored once. Sync works per table: the device keeps a live copy, records each local write in an op-log in the same commit, and pushes it when it can. Unlike a CRDT, nothing merges silently unless you pick a merge policy. Unlike WAL replication, each device gets only the rows its user may see, not the whole log.

How are conflicts resolved when two offline devices edit the same row?

You choose per table: REJECT refuses a write to a row that changed on the server, LWW lets the last writer win, LPW merges per column, and FUNCTION runs your own merge function on the server. Counter columns add up instead of overwriting. A refused write is never dropped silently: the app gets it back with the reason.

Does every device get the whole database?

No. Each device only receives the rows its user is allowed to see; the server does the filtering. A device can also sync only the rows its screens need and ask the server for the rest.

What runs where today?

In the app: JavaScript and TypeScript (browser, Node, Bun), Python and Rust. On the server: Linux and macOS binaries and a Docker image. Native iOS and Android: a WebView demo today; a Swift SDK is on the roadmap.

What are the browser requirements, OPFS use and memory limits?

In the browser KineDB runs on WebAssembly in a Web Worker and keeps its data in OPFS, so it survives a reload. It loads with or without a bundler. The engine runs inside a memory budget you can set: 32 MiB by default for a named database, 4 MiB at least.

How does KineDB run transactions across shards?

Transactions are ordered before they run, Calvin-style, with one Raft group per shard. A transaction across shards is atomic on every shard it touches, and the cluster is strictly serializable. Joins across shards and nodes work for INNER, LEFT and RIGHT equality joins; anything else is refused loudly, never answered wrong.

How do schema changes work when an offline client reconnects days later?

If the server adds, drops or renames a column, the next sync applies the same change on the device in place, and local rows and unsent offline writes stay. The local table is rebuilt only if the server dropped and re-created the table or changed its primary key or a column type.

How does KineDB enforce row-level permissions when syncing to untrusted browsers?

The server filters what each client pulls by the user’s grants, with MATCH or WHERE row rules, so a device only ever receives rows its user may see. Every pushed write is checked against the same rules on the server. The device itself holds no rights to check.

Can I keep my existing Postgres backend?

Not today. KineDB is the server side too: one engine on the device and on the server.

Is the data on the device encrypted?

KineDB does not encrypt the local copy today. If you need it, encrypt below KineDB, for example with the operating system’s or browser’s storage protection.

How do S3 and local disk work together?

Each server writes to its own disk. Backups and restores go to S3, and a stateless server can start from S3. One memory budget sizes every cache, so the same binary runs on a small box and a large server.

Can we evaluate and self-host KineDB on our own infrastructure?

Yes. KineDB is a single binary with no outside services, for Linux or macOS, or as a Docker image on your own machines. Talk to us and we will set up a test on your data.

Talk to the people building it

Four of us, no sales team in between. Bring the sync problem that keeps coming back.

got an email from Axel? just reply to it

  • Allan
    Co-founder, builds the engine
  • Axel
    Co-founder, talks to customers
  • Kenneth
    Engineering
  • Nabeel
    Engineering