net10.0net8.0net9.0
SurrealDB support for Aspire.
Published
May 14, 2026
5mo ago
Total Downloads
23.4K
23,392
Install
dotnet add package CommunityToolkit.Aspire.Hosting.SurrealDb --version 13.3.0
| Product | Versions |
|---|---|
| .NET |
README
CommunityToolkit.Aspire.Hosting.SurrealDb library
Provides extension methods and resource definitions for the Aspire AppHost to support running SurrealDB containers.
Getting started
Install the package
In your AppHost project, install the Aspire SurrealDB Hosting library with NuGet:
dotnet add package CommunityToolkit.Aspire.Hosting.SurrealDb
Usage example
Then, in the Program.cs file of AppHost, add a SurrealDB resource and consume the connection using the following methods:
var db = builder.AddSurrealServer("surreal")
.AddNamespace("ns")
.AddDatabase("db");
var myService = builder.AddProject<Projects.MyService>()
.WithReference(db);
Additional Information
https://aspire.dev/integrations/databases/surrealdb/
Feedback & contributing
Changes from Previous Version
No structural changes between v13.2.1-beta.604 and v13.3.0.
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Compatibility metadata lists 3 target frameworks; confirm the exact target used by your application.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.