Note
SurrealDB's extension system, known as Surrealism, lets you add custom functionality to the database engine without modifying its core. Extensions are compiled to WebAssembly (WASM) and loaded at runtime, which means they run in a sandboxed environment with predictable performance characteristics.
This section covers:
Plugins — an overview of the plugin architecture, how plugins are discovered and loaded, and the types of extensions you can create.
Guides — step-by-step walkthroughs for creating custom modules, understanding the module architecture, and working with WASM plugins.
Attribute reference — options for the
#[surrealism]attribute used to mark functions as Surrealism functions, such aswriteable,comment,init, and namespaced exports.