ChromaDotNet.Aspire.Hosting
Aspire hosting integration for Chroma: a Chroma container in the AppHost. Built from the Chroma integration merged into the Aspire Community Toolkit, until the toolkit publishes its packages. Community project, not affiliated with Chroma.
Install
| Product | Versions |
|---|---|
| .NET |
README
ChromaDotNet.Aspire.Hosting
Adds a Chroma container to an Aspire AppHost: the chromadb/chroma:1.5.9 image, with a health check on /api/v2/heartbeat.
Website: chromadotnet.org
dotnet add package ChromaDotNet.Aspire.Hosting
var chroma = builder.AddChroma("chroma")
.WithDataVolume();
builder.AddProject<Projects.ApiService>("api")
.WithReference(chroma)
.WaitFor(chroma);
WithDataVolume and WithDataBindMount mount /data, where Chroma keeps its database.
AddChroma takes an optional port, the host port of the container; without it the port is assigned at run time. The resource gives the connection string Endpoint=http://{host}:{port} and the connection properties Host, Port and Uri. The methods are exported to TypeScript AppHosts too (addChroma, withDataVolume, withDataBindMount), as in the example.
This is the Chroma hosting integration accepted in the Aspire Community Toolkit (CommunityToolkit/Aspire#2219), published by ChromaDotNet until the toolkit ships it as CommunityToolkit.Aspire.Hosting.Chroma. The API and namespaces are the same, so moving to that package only changes the package reference. Community project, not affiliated with Chroma.
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.
