Introducing Surrealism
Blog post from SurrealDB
SurrealDB 3.0 introduces Surrealism, an open-source extension framework that allows developers to write modular, programmable logic in Rust, with plans to support JavaScript and Python, directly within the database at runtime. This framework compiles functions to WebAssembly, providing a secure, deterministic, and high-performance execution environment ideal for both single-tenant systems and multi-tenant clusters. Surrealism enables seamless integration with AI models and supports dynamic API behaviors, policy enforcement, and auditing, all within SurrealDB. With built-in AI support, plugins can interact with external APIs for various tasks such as text generation and sentiment analysis, transforming SurrealDB into a programmable data and logic layer suitable for intelligent applications. This integration allows developers to create sophisticated applications entirely within the database, leveraging SurrealDB's query engine and its ability to handle structured and unstructured data. As an open-source tool, Surrealism provides a new frontier in database development, enabling developers to integrate their own code and ideas directly into the data layer.