Sekiban.Dcb.WasmRuntime.Aspire 1.0.0-preview.6

This is a prerelease version of Sekiban.Dcb.WasmRuntime.Aspire.
dotnet add package Sekiban.Dcb.WasmRuntime.Aspire --version 1.0.0-preview.6
                    
NuGet\Install-Package Sekiban.Dcb.WasmRuntime.Aspire -Version 1.0.0-preview.6
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Sekiban.Dcb.WasmRuntime.Aspire" Version="1.0.0-preview.6" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sekiban.Dcb.WasmRuntime.Aspire" Version="1.0.0-preview.6" />
                    
Directory.Packages.props
<PackageReference Include="Sekiban.Dcb.WasmRuntime.Aspire" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Sekiban.Dcb.WasmRuntime.Aspire --version 1.0.0-preview.6
                    
#r "nuget: Sekiban.Dcb.WasmRuntime.Aspire, 1.0.0-preview.6"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Sekiban.Dcb.WasmRuntime.Aspire@1.0.0-preview.6
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Sekiban.Dcb.WasmRuntime.Aspire&version=1.0.0-preview.6&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Sekiban.Dcb.WasmRuntime.Aspire&version=1.0.0-preview.6&prerelease
                    
Install as a Cake Tool

Sekiban.Dcb.WasmRuntime.Aspire

Aspire AppHost hosting extension for the public Sekiban WASM Runtime container. One AddSekibanWasmRuntime call wires the GHCR image, the runtime manifest and wasm-module bind mounts, Postgres references, the environment contract, an HTTP endpoint, and an optional health check — the same wiring the public-container samples assemble by hand.

Install

Install into your Aspire AppHost project with prerelease resolution enabled:

dotnet add package Sekiban.Dcb.WasmRuntime.Aspire --prerelease

The package targets Aspire AppHost projects only (it depends on Aspire.Hosting); service and client projects use the runtime packages instead — Sekiban.Dcb.WasmRuntime, .Remote, or .Wasmtime (see Related packages).

The current published package line is 1.0.0-preview.6. The current Sekiban.Dcb baseline is 10.16.0.

Usage

var builder = DistributedApplication.CreateBuilder(args);

var postgres = builder.AddPostgres("pg");
// These database names become ConnectionStrings__SekibanDcb (event store) and
// ConnectionStrings__DcbMaterializedViewPostgres (materialized views) inside
// the runtime container — keep them exactly as shown.
var sekibanDb = postgres.AddDatabase("SekibanDcb");
var materializedViewDb = postgres.AddDatabase("DcbMaterializedViewPostgres");

builder.AddSekibanWasmRuntime("runtime", new SekibanWasmRuntimeOptions
{
    // Image defaults to ghcr.io/j-tech-japan/sekiban-wasm-runtime-host:1.0.0-preview.3.
    ConfigDirectory = "/path/to/config",   // mounted read-only at /app/config
    ModulesDirectory = "/path/to/modules", // mounted read-only at /app/modules
    WasmModulePath = "/app/modules/my-projector.wasm",
    EventStoreDatabase = sekibanDb,
    MaterializedViewDatabase = materializedViewDb,
});

builder.Build().Run();

The registry-verified default runtime-host tag is 1.0.0-preview.3.

Options

The options surface is intentionally minimal and mirrors the runtime container contract:

Option Default Maps to
Image / Tag public GHCR image, 1.0.0-preview.3 container image
ConfigDirectory read-only bind mount at /app/config
ModulesDirectory read-only bind mount at /app/modules
ManifestPath /app/config/sekiban-manifest.json SEKIBAN_MANIFEST_PATH
WasmModulePath (required) WASM_MODULE_PATH
ProjectionMode dual SEKIBAN_PROJECTION_MODE
EventStoreDatabase WithReferenceConnectionStrings__SekibanDcb
MaterializedViewDatabase WithReferenceConnectionStrings__DcbMaterializedViewPostgres
EnvironmentVariables empty extra/overriding env vars (win over the contract)
EndpointName / TargetPort / HostPort http / 8080 / auto HTTP endpoint (fixed HostPort publishes unproxied)
ExternalHttpEndpoints true dashboard-visible endpoint
HealthCheckPath none WithHttpHealthCheck (e.g. /ready strict readiness, /health liveness)

The runtime connects to Postgres lazily and retries, so no WaitFor gate is added on the databases — gating on Postgres health can stall headless runs and is unnecessary.

A complete AppHost built on this package lives in the repository: PublicContainer.CsDecider sample.

  • Sekiban.Dcb.WasmRuntime — core abstractions and common types.
  • Sekiban.Dcb.WasmRuntime.Remote — serialized HTTP client for the runtime.
  • Sekiban.Dcb.WasmRuntime.Wasmtime — in-process Wasmtime execution.

License

Elastic License 2.0 — see the packaged LICENSE file.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0-preview.6 91 8/18/2026
1.0.0-preview.5 76 8/14/2026
1.0.0-preview.4 78 8/12/2026
1.0.0-preview.3 67 7/30/2026
1.0.0-preview.2 65 7/20/2026

Initial preview package baseline for Sekiban DCB WASM runtime packages.