surrealism

Compile Rust functions into WASM modules for SurrealDB.

34|2|Updated Feb 20, 2026
One-click install
npx skills add https://github.com/24601/surreal-skills --skill surrealism
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: surrealism
Source: https://github.com/24601/surreal-skills/tree/main/skills/surrealism
Command: npx skills add https://github.com/24601/surreal-skills --skill surrealism

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill streamlines the development of SurrealDB WASM extensions using Rust, enabling users to write custom functions and deploy them as database modules.

Core Features & Use Cases

  • Rust Function Development: Facilitates writing and compiling Rust functions into WASM for integration with SurrealDB.
  • Custom Module Deployment: Deploy compiled WASM modules as native database modules callable from SurrealQL.
  • Use Case: For developers who need to extend SurrealDB's functionality with custom logic, such as proprietary algorithms or data processing.

Quick Start

Write a Rust function for a custom operation and compile it to WASM using the SurrealDB CLI.

Frequently Asked Questions about surrealism

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I develop custom SurrealDB WASM extensions using Rust?

You develop custom SurrealDB WASM extensions using Rust by writing custom functions, compiling them to WebAssembly, and deploying them as native database modules callable directly from SurrealQL.

When do I need to write custom database modules for SurrealDB?

You need to write custom database modules for SurrealDB when you require niche Rust functionality or domain-specific logic, such as implementing proprietary algorithms or specialized data processing within the database.

Can I call custom Rust functions from SurrealQL in SurrealDB?

Yes, you can call custom Rust functions from SurrealQL by compiling the Rust code to WASM and deploying it as a custom database module, which integrates the functions directly into SurrealDB.

What is the best way to extend SurrealDB with proprietary algorithms?

The best way to extend SurrealDB with proprietary algorithms is to write the logic in Rust, compile it to WASM, and deploy it as a custom database module, ensuring the logic runs natively within the database environment.

Does SurrealDB support compiling Rust code to WASM for database extensions?

Yes, SurrealDB supports compiling Rust code to WASM for database extensions, allowing developers to write custom functions in Rust and deploy them as WASM modules callable from SurrealQL.

How do I deploy a WASM module as a custom extension in SurrealDB?

To deploy a WASM module as a custom extension in SurrealDB, compile your Rust functions to WebAssembly and use the SurrealDB CLI to load the module, making it callable from SurrealQL.