surrealdb

Installation
SKILL.md

SurrealDB

SurrealDB is a multi-model database that handles document, graph, relational, key-value, time-series, and vector search workloads in a single engine, queried via SurrealQL — a SQL-like language with graph traversal, record links, live queries, and schema enforcement built in.

Documentation

Key Capabilities

Multi-model in one engine — A single SurrealDB instance handles relational queries, graph traversal, document storage, key-value access, time-series, and vector similarity search. You do not need a separate graph DB, search engine, or cache alongside it.

SurrealQL — SQL with graph and document extensions — The query language looks like SQL but adds native graph traversal (->, <-), record links (fetch related records inline), SELECT VALUE for flat arrays, FETCH for eager loading of linked records, and LIVE SELECT for real-time streaming. Treating it as plain SQL will produce incorrect queries.

RELATE for graph edges — The RELATE statement creates a typed edge record between two nodes. Edges are stored in their own table with in and out fields, can carry arbitrary data, and support bidirectional traversal natively. This replaces JOIN tables and foreign keys for connected data.

Live queries over WebSocketLIVE SELECT and the SDK .live() method push change notifications (CREATE, UPDATE, DELETE) to subscribers in real time. The underlying transport must be WebSocket; HTTP connections do not support live queries.

Schemafull and schemaless tables — Tables can be defined as SCHEMAFULL (strict enforcement, undefined fields are rejected) or SCHEMALESS (any fields accepted). Both modes coexist in the same database. Schema is defined per-table using DEFINE TABLE and DEFINE FIELD.

Related skills

More from mikkelkrogsholm/dev-skills

Installs
1
GitHub Stars
2
First Seen
Mar 2, 2026