NEW

The wait is over. SurrealDB 3.0 is here!

Learn more
SurrealDB 3.0 hero illustration

Surrealism

Surrealism is an open-source extension framework for SurrealDB. Run WebAssembly plugins for AI, business logic, and access control using SurrealQL.

Run extensions inside SurrealDB

Surrealism extensions turn SurrealDB into a programmable data and logic layer - perfect for agentic and AI-heavy workloads

WebAssembly (WASM) plug-ins

WASM modules execute in a sandboxed, deterministic environment and can be loaded or upgraded without taking the database offline. The result is a database that doubles as an application runtime, so data and logic live in one place.

AI-ready by design

Call LLMs, embedding models, or GPU inference next to the data and write results back in the same statement. Surrealism plugins form the perfect execution layer for AI agent workflows.

Near-native performance

WebAssembly runs close to the data with strong isolation, ensuring low latency and real-time performance with strong security guarantees - each invocation runs in fully isolated context.

Shared ACID transactions

Plugins participate in the same transaction as the query that invokes them. Avoid eventual-consistency bugs.

Fine-grained governance

Secure multi-tenant clusters; least-privilege execution. Control who can load, upgrade, or invoke plug-ins with SurrealDB’s built-in permission clauses.

Hot-load, no downtime

Deploy, upgrade, or roll back logic without restarting your instance, aligning with CI/CD practices.

How Surrealism works

Write your functions, compile into WebAssembly, load them into SurrealDB, and call them from SurrealQL

Start exploring Surrealism

Start exploring Surrealism

Run AI and application logic inside SurrealDB