Skip to content
NEW

Introducing SurrealDB Studio, the new official app of SurrealDB

Learn more

1/4

Digital twins, on one substrate

Entities, relationships, telemetry, and the agents that reason over them, all in one transactional engine.

RELATIONSHIPS + TELEMETRY

One graph for assets, dependencies, and the world they live in

A digital twin is a graph of entities - machines, suppliers, sites, people, vehicles - connected by typed relationships such as depends_on, supplies, operated_by, located_at. Around those entities sits telemetry, configuration, documents, and embeddings. In SurrealDB, all of these are first-class. A single SurrealQL query can walk the graph, filter by attribute, fetch the most recent sensor readings, and apply a geospatial predicate.

1-- Find turbines within 50km of a depot, with their upstream dependencies
2-- and last five temperature readings, in one statement.
3SELECT
4 id, name, location,
5 ->depends_on->asset.{ id, name, status } AS upstream,
6 (SELECT value, recorded_at FROM sensor_reading
7 WHERE asset_id = $parent.id AND metric = "temperature"
8 ORDER BY recorded_at DESC LIMIT 5) AS recent_temps
9FROM asset
10WHERE kind = "turbine"
11 AND geo::distance(location, (-1.6, 53.8)) < 50000;

REWIND, REPLAY, FORK

Versioned state and non-destructive history

Twins evolve. Equipment is replaced, configurations change, beliefs about a fault mode are revised when better evidence arrives. SurrealDB's VERSION clause lets you query a record as it existed at a given moment, so past state is reconstructed from the substrate itself rather than from bolt-on audit tables. Combine that with application-defined valid_from and valid_until fields to track when a fact held in the world - independent of when the database learnt about it - and scenario branching, what-if simulation, and forensic review of past decisions become queries rather than orchestration.

AGENTS INSIDE THE TWIN

Agent Memory on the same engine

When AI agents operate inside a digital twin, they accumulate their own memory: what they have been told, what they have decided, what they now believe about the assets they reason over. That memory needs the same properties as the twin itself: typed relationships, temporal state, provenance, calibrated trust. Agent Memory provides this as a stateless application tier on the same SurrealDB substrate, with every fact carrying its source, every retrieval and decision recorded as a graph-resident trace, and contradictions surfaced as explicit uncertainty rather than silently overwriting. The agent's view of the twin, and the twin itself, share a transaction boundary. Learn more about Agent Memory at /agent-memory.

FREQUENTLY ASKED QUESTIONS

Digital twins

GET STARTED

Build your digital twin on a unified backbone

One engine for entities, relationships, telemetry, vectors, and the AI agents that reason over them.

SamsungNVIDIAAppleVerizonTencent

SOC 2 Type 2

GDPR

Cyber Essentials Plus

ISO 27001

SurrealDB

The unified data layer for AI

Graph, vector, document, and relational in one engine.
Agent Memory that connects and retrieves context wherever your data lives.

Explore with AI

Stay in the loop

Tutorials, AI agent recipes, and product updates, every two weeks.

Independently verified

SOC 2 Type 2

GDPR

Cyber Essentials Plus

ISO 27001

Trust Centre

Copyright © 2026 SurrealDB Ltd. Registered in England and Wales. Company no. 13615201

Registered address: 3rd Floor 1 Ashley Road, Altrincham, Cheshire, WA14 2DT, United Kingdom

Trading address: Huckletree Oxford Circus, 213 Oxford Street, London, W1D 2LG, United Kingdom