Sekiban.Dcb.WasmRuntime.Aspire
1.0.0-preview.6
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
<PackageReference Include="Sekiban.Dcb.WasmRuntime.Aspire" Version="1.0.0-preview.6" />
<PackageVersion Include="Sekiban.Dcb.WasmRuntime.Aspire" Version="1.0.0-preview.6" />
<PackageReference Include="Sekiban.Dcb.WasmRuntime.Aspire" />
paket add Sekiban.Dcb.WasmRuntime.Aspire --version 1.0.0-preview.6
#r "nuget: Sekiban.Dcb.WasmRuntime.Aspire, 1.0.0-preview.6"
#:package Sekiban.Dcb.WasmRuntime.Aspire@1.0.0-preview.6
#addin nuget:?package=Sekiban.Dcb.WasmRuntime.Aspire&version=1.0.0-preview.6&prerelease
#tool nuget:?package=Sekiban.Dcb.WasmRuntime.Aspire&version=1.0.0-preview.6&prerelease
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 |
– | WithReference → ConnectionStrings__SekibanDcb |
MaterializedViewDatabase |
– | WithReference → ConnectionStrings__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.
Related packages
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 | Versions 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. |
-
net10.0
- Aspire.Hosting (>= 13.2.2)
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.