Mango.Aspire.Hosting
0.6.3
dotnet add package Mango.Aspire.Hosting --version 0.6.3
NuGet\Install-Package Mango.Aspire.Hosting -Version 0.6.3
<PackageReference Include="Mango.Aspire.Hosting" Version="0.6.3" />
<PackageVersion Include="Mango.Aspire.Hosting" Version="0.6.3" />
<PackageReference Include="Mango.Aspire.Hosting" />
paket add Mango.Aspire.Hosting --version 0.6.3
#r "nuget: Mango.Aspire.Hosting, 0.6.3"
#:package Mango.Aspire.Hosting@0.6.3
#addin nuget:?package=Mango.Aspire.Hosting&version=0.6.3
#tool nuget:?package=Mango.Aspire.Hosting&version=0.6.3
Mango.Aspire.Hosting
Aspire integration for Mango — a friendly MongoDB workbench. Adds the Mango UI alongside your MongoDB resource.
dotnet add package Mango.Aspire.Hosting
Usage
var builder = DistributedApplication.CreateBuilder(args);
var mongo = builder.AddMongoDB("mongo")
.WithLifetime(ContainerLifetime.Persistent);
mongo.WithMango(); // ← drops in the Mango UI
builder.Build().Run();
WithMango() runs the published container image (ghcr.io/philbir/mango:latest) on port 5180 and wires MONGO_URL from the Mongo resource's connection string. Defaults to standalone mode (single connection, connection-manager UI hidden) since Aspire always provides the Mongo container — pass standalone: false for the full multi-connection workbench.
Options
| Parameter | Default | |
|---|---|---|
databaseName |
(URI path) | Default database to open. |
port |
5180 |
Host port for the UI. |
name |
"mango" |
Aspire resource name. |
image |
"ghcr.io/philbir/mango" |
Override to pin a build or use a private registry. |
tag |
"latest" |
Image tag. |
standalone |
true |
Set false to expose the multi-connection manager. |
Configuration via user-secrets
dotnet user-secrets set "Mango:Ai:Provider" "copilot"
dotnet user-secrets set "Mango:Ai:Model" "claude-sonnet-4.5"
dotnet user-secrets set "Mango:MasterKey" "$(openssl rand -base64 32)"
Forwarded keys: Mango:Ai:Provider, Mango:Ai:ApiKey, Mango:Ai:BaseUrl, Mango:Ai:Model, Mango:Ai:GitHubToken, Mango:MasterKey.
License
MIT
| 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.5.4)
- Aspire.Hosting.MongoDB (>= 13.5.4)
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 |
|---|---|---|
| 0.6.3 | 41 | 10/3/2026 |
| 0.6.2 | 79 | 9/29/2026 |
| 0.6.1 | 91 | 9/28/2026 |
| 0.6.0 | 84 | 9/28/2026 |
| 0.5.1 | 83 | 9/28/2026 |
| 0.5.0 | 80 | 9/28/2026 |
| 0.5.0-beta.6 | 80 | 7/10/2026 |
| 0.5.0-beta.5 | 77 | 7/10/2026 |
| 0.5.0-beta.4 | 71 | 7/10/2026 |
| 0.5.0-beta.3 | 70 | 7/10/2026 |
| 0.5.0-beta.2 | 75 | 7/10/2026 |
| 0.5.0-beta.1 | 76 | 7/10/2026 |
| 0.4.1 | 143 | 5/26/2026 |
| 0.4.0 | 114 | 5/26/2026 |
| 0.4.0-p.1 | 73 | 5/14/2026 |
| 0.3.6 | 124 | 5/11/2026 |
| 0.3.5 | 121 | 5/11/2026 |
| 0.3.4 | 120 | 5/11/2026 |
| 0.3.3 | 119 | 5/5/2026 |
| 0.3.2 | 108 | 5/4/2026 |