---
title: "Embedded and Edge | Use Cases | SurrealDB"
description: "Run SurrealDB on edge devices, in browsers with WASM, or embedded in your application. Single binary, offline-ready, edge sync."
url: https://surrealdb.com/use-cases/embedded-edge
---

# Embedded and edge

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.

[Start free with SurrealDB](https://studio.surrealdb.com/current/instances/deploy) [Embedded docs](https://surrealdb.com/docs/what-is-surrealdb)

1. ![Babcock](https://surrealdb.com/assets/static/babcock.lo4rnVg1.svg)
2. ![ING](https://surrealdb.com/assets/static/ing.X3I6S3_V.svg)
3. ![British Airways](https://surrealdb.com/assets/static/british-airways.KEsZiwV-.svg)
4. ![Nvidia](https://surrealdb.com/assets/static/nvidia.DaIEuMil.svg)
5. ![Apple](https://surrealdb.com/assets/static/apple.D5pq4flY.svg)
6. ![SpaceX](https://surrealdb.com/assets/static/spacex.CQJEk-IL.svg)
7. ![Samsung](https://surrealdb.com/assets/static/samsung.CH-vQgnb.svg)
8. ![adidas](https://surrealdb.com/assets/static/adidas.DdTC5qhk.svg)
9. ![Tencent](https://surrealdb.com/assets/static/tencent.paQmLxyy.svg)
10. ![Alibaba](https://surrealdb.com/assets/static/alibaba.B16idgfM.svg)
11. ![PolyAI](https://surrealdb.com/assets/static/poly-ai.c3w_fAg6.svg)
12. ![Later](https://surrealdb.com/assets/static/later.Ds736jFO.svg)
13. ![Verizon](https://surrealdb.com/assets/static/verizon.BI7CajdX.svg)
14. ![Liberty Mutual](https://surrealdb.com/assets/static/liberty-mutual.B7qOU1pd.svg)
15. ![Walmart](https://surrealdb.com/assets/static/walmart.BjDg_Sr8.svg)
16. ![Carrier](https://surrealdb.com/assets/static/carrier.D21gC6NX.svg)
17. ![Saks Fifth Avenue](https://surrealdb.com/assets/static/saks-fifth-avenue.COIDpLSb.svg)
18. ![San Francisco Compute Company](https://surrealdb.com/assets/static/sfcc.B7jlImq4.svg)
19. ![Shield AI](https://surrealdb.com/assets/static/shield-ai.pINZ0KJr.svg)
20. ![Wix](https://surrealdb.com/assets/static/wix.DvHhmoBi.svg)

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.

### Scale from edge to cloud

Start embedded, grow to single-node, scale to distributed cluster - without rewriting application code.

AI AT THE EDGE

## Agent context at the edge

SurrealDB's single binary and WASM runtime mean the context layer can run on edge devices. Agents reason over locally stored context with full multi-model queries, synchronise memory when connectivity returns, and scale from an embedded WASM agent to a cloud-scale distributed cluster - no code changes.

FREQUENTLY ASKED QUESTIONS

## Common questions

What platforms does SurrealDB support for embedded/edge?

Can I use the same queries on edge and cloud?

GET STARTED

## Run SurrealDB at the edge

Single binary, WASM, edge sync - the same API from embedded to cloud.

![Samsung](https://surrealdb.com/assets/static/4c58b81e7b3c9466.C_Hv0eml.svg)![NVIDIA](https://surrealdb.com/assets/static/nvidia.DaIEuMil.svg)![Apple](https://surrealdb.com/assets/static/f7dc2519e0d212bc.Cn8MYAK7.svg)![Verizon](https://surrealdb.com/assets/static/18b99996c689000f.B5PQ-nI9.svg)![Tencent](https://surrealdb.com/assets/static/401d8346058682c8.DqM87mst.svg)

SOC 2 Type 2

GDPR

Cyber Essentials Plus

ISO 27001

[Start free with SurrealDB](https://studio.surrealdb.com/current/instances/deploy) [Embedded docs](https://surrealdb.com/docs/what-is-surrealdb)

```json
{"@context":"https://schema.org","@type":"Organization","name":"SurrealDB","url":"https://surrealdb.com","logo":"https://surrealdb.com/assets/static/logo.BG7_TG2b.svg","description":"SurrealDB is the unified data layer for AI. A multi-model database for documents, graphs, vectors, and time-series.","foundingDate":"2022","hasCertification":[{"@type":"Certification","name":"SOC 2 Type 2"},{"@type":"Certification","name":"GDPR"},{"@type":"Certification","name":"Cyber Essentials Plus"},{"@type":"Certification","name":"ISO 27001"}],"owns":[{"@type":"SoftwareApplication","name":"SurrealDB","url":"https://surrealdb.com/surrealdb"},{"@type":"SoftwareApplication","name":"Agent Memory","url":"https://surrealdb.com/agent-memory"}],"knowsAbout":["multi-model databases","document databases","graph databases","vector search","time-series databases","SurrealQL","Agent Memory","real-time databases","embedded databases","context layer","graph ontology","distributed database","knowledge graphs","distributed transaction protocols","highly-scalable databases"],"sameAs":["https://www.wikidata.org/wiki/Q124316308","https://github.com/surrealdb/surrealdb","https://twitter.com/surrealdb","https://www.youtube.com/@surrealdb","https://www.linkedin.com/company/surrealdb","https://discord.gg/surrealdb","https://www.reddit.com/r/surrealdb","https://www.instagram.com/surrealdb","https://medium.com/surrealdb","https://dev.to/surrealdb"]}
```

```json
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://surrealdb.com"},{"@type":"ListItem","position":2,"name":"Embedded edge","item":"https://surrealdb.com/use-cases/embedded-edge"}]}
```

```json
{"@context":"https://schema.org","@type":"FAQPage","mainEntity":[{"@type":"Question","name":"What platforms does SurrealDB support for embedded/edge?","acceptedAnswer":{"@type":"Answer","text":"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."}},{"@type":"Question","name":"Can I use the same queries on edge and cloud?","acceptedAnswer":{"@type":"Answer","text":"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."}}]}
```
