net8.0net9.0
A .NET Aspire integration for hosting Bun apps.
Published
Aug 29, 2025
1y ago
Total Downloads
112.7K
112,693
Install
dotnet add package CommunityToolkit.Aspire.Hosting.Bun --version 9.7.2
| Product | Versions |
|---|---|
| .NET |
README
CommunityToolkit.Aspire.Hosting.Bun library
Provides extension methods and resource definitions for a .NET Aspire AppHost to configure a Bun project.
Getting Started
Install the package
In your AppHost project, install the package using the following command:
dotnet add package CommunityToolkit.Aspire.Hosting.Bun
Example usage
Then, in the Program.cs file of AppHost, define a Bun resource, then call AddBunApp:
builder.AddBunApp("bun-server", "main.ts")
.WithHttpEndpoint(env: "PORT")
.WithEndpoint();
Additional Information
https://learn.microsoft.com/dotnet/aspire/community-toolkit/bun
Feedback & contributing
Changes from Previous Version
No structural changes between v9.7.2-beta.362 and v9.7.2.
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Compatibility metadata lists 2 target frameworks; confirm the exact target used by your application.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.