Run SurrealDB on edge devices, in browsers with WASM, or embedded in your application binary. Single binary, offline-ready, and the same API from edge to cloud.
SINGLE BINARY
One binary, any device
SurrealDB ships as a single binary with zero external dependencies. Embed it in your application, run it on a Raspberry Pi, or deploy it in a container. The same API, the same query language, the same data model - everywhere.
Embedded mode
Import SurrealDB as a library and run it in-process. Zero network hops, zero latency overhead, zero separate services to manage.
WASM runtime
Run SurrealDB in the browser with WebAssembly. Full query engine, offline-capable, with the same SurrealQL you use server-side.
Edge devices
Deploy on IoT devices, mobile applications, and edge nodes. Collect, process, and serve data where it is generated.
EDGE SYNC
Offline-first, sync when connected
Edge instances operate independently when disconnected and synchronise when connectivity returns. The same API from prototype to production - from in-memory local development to fully managed cloud.
Offline-first
Applications continue working without connectivity. Reads and writes happen locally with full ACID guarantees.
Sync on connect
When connectivity returns, edge instances synchronise with the central database. Conflict resolution is built in.
Same API everywhere
The same SurrealQL, the same SDKs, the same data model from a WASM browser instance to a cloud cluster.
SurrealDB's single binary and WASM runtime mean the context layer can run on edge devices. Agents operate with local context when disconnected and synchronise memory when connectivity returns.
Local agent memory
Agents reason over locally stored context with full multi-model queries. No network dependency for the read-think-write loop.
Memory sync
When connected, edge instances synchronise agent memory with the central database. Context converges, not diverges.
SurrealDB runs on Linux, macOS, Windows, and in the browser via WebAssembly. The Rust SDK provides embedded mode for in-process usage. The JavaScript SDK includes a WASM engine for browser deployment.
Yes. SurrealDB uses the same query language (SurrealQL), the same data model, and the same API regardless of deployment mode. Code written for an embedded instance works identically on a cloud cluster.
GET STARTED
Run SurrealDB at the edge
Single binary, WASM, edge sync - the same API from embedded to cloud.