MeshWeaver.Aspire.Hosting.Memex
3.1.0
dotnet add package MeshWeaver.Aspire.Hosting.Memex --version 3.1.0
NuGet\Install-Package MeshWeaver.Aspire.Hosting.Memex -Version 3.1.0
<PackageReference Include="MeshWeaver.Aspire.Hosting.Memex" Version="3.1.0" />
<PackageVersion Include="MeshWeaver.Aspire.Hosting.Memex" Version="3.1.0" />
<PackageReference Include="MeshWeaver.Aspire.Hosting.Memex" />
paket add MeshWeaver.Aspire.Hosting.Memex --version 3.1.0
#r "nuget: MeshWeaver.Aspire.Hosting.Memex, 3.1.0"
#:package MeshWeaver.Aspire.Hosting.Memex@3.1.0
#addin nuget:?package=MeshWeaver.Aspire.Hosting.Memex&version=3.1.0
#tool nuget:?package=MeshWeaver.Aspire.Hosting.Memex&version=3.1.0
MeshWeaver.Aspire.Hosting.Memex
Aspire hosting integration for the MeshWeaver Memex portal. builder.AddMemex(...) composes a
complete portal deployment from published container images — no portal source tree needed — and
the instance is declared ONCE, as a Deployment record: the same DeploymentContent the Helm
chart renders from and the portal itself binds at boot. Every fluent call is a pure transform of
that record; the containers, volumes and environment are derived from it. The package bundles the
record assembly (MeshWeaver.Deployment.Contract), so one reference is all an AppHost needs.
Install
In your AppHost project, one line:
dotnet add package MeshWeaver.Aspire.Hosting.Memex
It is published to nuget.org from
this repository (.github/workflows/publish-packages.yml) and depends on no other MeshWeaver package.
Usage
var builder = DistributedApplication.CreateBuilder(args);
builder.AddMemex("memex") // image + tag from appsettings.json → Memex:Image (below)
.WithOrleansClustering("AdoNet")
.WithPluginRepo("plugins", "https://github.com/Systemorph/MeshWeaver.Plugins", gitRef: "main")
.PreInstall("MeshWeaver.Plugins/Hosting")
.WithRequiredModule("MeshWeaver.Hosting.PostgreSql")
.WithSignIn(microsoftClientId: "<client id>", microsoftTenantId: "<tenant>")
.WithSecret("Authentication__Microsoft__ClientSecret", builder.AddParameter("microsoft-client-secret", secret: true))
.PublishRecord("deployments/memex.json"); // the record, ready for the setup wizard or a Provision action
builder.Build().Run();
AddMemex(name, record) and AddMemexFromFile(name, path) start from an existing record instead
of the default one. Secrets are never on the record — WithSecret hands a value to the container
directly (an Aspire parameter, or a literal in development); on Kubernetes the same keys come from
Key Vault through the record's keyVaultSecrets map.
Choosing the image: configuration, not the package version
The image the portal and the migration run is declared in the AppHost's configuration. The
package never bakes in a tag and never derives one from its own version — the package and the image
are versioned independently. Put the section in the AppHost's appsettings.json (or any
configuration source: environment Memex__Image__Tag, user secrets, command line):
{
"Memex": {
"Image": {
"Repository": "cr.meshweaver.cloud/memex-portal-ai",
"Tag": "latest",
"MigrationRepository": "cr.meshweaver.cloud/memex-migration",
"PullSecret": "cr-pull"
}
}
}
| Key | Meaning | Default when unset |
|---|---|---|
Memex:Image:Repository |
portal image repository (registry host + path) | cr.meshweaver.cloud/memex-portal-ai |
Memex:Image:Tag |
tag for the portal AND the migration, verbatim as the registry carries it — a moving label or an exact version such as 3.1.11786 |
latest |
Memex:Image:MigrationRepository |
migration image repository; must be a memex-migration on the portal's registry host |
memex-migration beside the portal repository |
Memex:Image:PullSecret |
image pull secret name recorded on the Deployment record | none |
Precedence, per field: an explicit value in code wins — .WithImage(repository, tag),
.WithPinnedImageTag(tag), the AddMemex(name, r => …) callback, or a record file passed to
AddMemexFromFile — then the Memex:Image configuration, then the defaults above. A blank value
counts as unset. The portal/migration pair is validated once, on the FINAL record, when the
application starts (run and publish alike), so a configured migration repository and a later
.WithImage(…) combine freely. The configured tag is resolved when the containers are composed and is never
pinned onto the record (PublishRecord writes no tag unless code pinned one).
🚨 CD moves the latest label on mw-plugin-test only; memex-portal-ai and memex-migration
carry main and the line pointers (3-latest, 3.1-latest) but, as of this release, no latest.
Until CD writes it, set Memex:Image:Tag (for example 3-latest, or an exact version).
cr.meshweaver.cloud refuses anonymous pulls: log the local container runtime in first, with an
instance key as the password (docker login cr.meshweaver.cloud -u <any name>).
What it wires
- PostgreSQL (pgvector) with a persistent volume, plus the separate
orleansclustering database - The one-shot database migration container, ordered before the portal, at the SAME image tag
- The portal container from the record's image, with the record's volumes as named Docker volumes
- The record itself as configuration:
Deployment__Record(the whole record as JSON) beside the derived per-key surface the Helm chart also renders —Storage__*,Graph__Storage__*,PluginCatalog__*,Modules__Required__N,Authentication__*,Email__*, …
The parity table (fluent method → record field → Helm value → configuration key) is Configuring an instance from Aspire. Aspire emits a record, never a chart: the Kubernetes/Helm side renders from the same record on the control instance.
Links
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Aspire.Hosting (>= 13.6.5)
- Aspire.Hosting.PostgreSQL (>= 13.6.5)
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 |
|---|---|---|
| 3.1.0 | 107 | 11/16/2026 |
| 3.0.0-rc9 | 148 | 8/30/2026 |
| 3.0.0-rc8 | 132 | 8/29/2026 |
| 3.0.0-rc7 | 122 | 8/22/2026 |
| 3.0.0-rc6 | 129 | 8/20/2026 |
| 3.0.0-rc5 | 127 | 8/19/2026 |
| 3.0.0-rc3 | 131 | 8/16/2026 |
| 3.0.0-rc2 | 131 | 8/14/2026 |
| 3.0.0-rc13 | 121 | 8/31/2026 |
| 3.0.0-rc12 | 129 | 8/31/2026 |
| 3.0.0-rc11 | 131 | 8/30/2026 |
| 3.0.0-rc10 | 114 | 8/30/2026 |
| 3.0.0-rc1 | 125 | 8/13/2026 |