CommunityToolkit.Aspire.Hosting.Bun
13.5.0
Prefix Reserved
Aspire.Hosting.JavaScript 13.5.0
Additional DetailsAs of Aspire 13.5.0, Bun hosting is built into the Aspire.Hosting.JavaScript integration
See the version list below for details.
dotnet add package CommunityToolkit.Aspire.Hosting.Bun --version 13.5.0
NuGet\Install-Package CommunityToolkit.Aspire.Hosting.Bun -Version 13.5.0
<PackageReference Include="CommunityToolkit.Aspire.Hosting.Bun" Version="13.5.0" />
<PackageVersion Include="CommunityToolkit.Aspire.Hosting.Bun" Version="13.5.0" />
<PackageReference Include="CommunityToolkit.Aspire.Hosting.Bun" />
paket add CommunityToolkit.Aspire.Hosting.Bun --version 13.5.0
#r "nuget: CommunityToolkit.Aspire.Hosting.Bun, 13.5.0"
#:package CommunityToolkit.Aspire.Hosting.Bun@13.5.0
#addin nuget:?package=CommunityToolkit.Aspire.Hosting.Bun&version=13.5.0
#tool nuget:?package=CommunityToolkit.Aspire.Hosting.Bun&version=13.5.0
CommunityToolkit.Aspire.Hosting.Bun library
⚠️ DEPRECATION NOTICE
This package is deprecated. Bun support is now available in the coreAspire.Hosting.JavaScriptpackage viaAddBunApp(...).Migration Guide:
- Install
Aspire.Hosting.JavaScriptand removeCommunityToolkit.Aspire.Hosting.Bun.- Review existing
builder.AddBunApp(...)calls carefully: if you pass arguments positionally, you may need to reorder them or convert them to named arguments when moving to the core package implementation.- If you're using TypeScript AppHost bindings, continue using
builder.addBunApp(...)from the generated core bindings.This package will be removed in a future release. Please migrate to
Aspire.Hosting.JavaScript.
Provides extension methods and resource definitions for an 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();
Migration from Toolkit Bun to core Bun
Toolkit API:
builder.AddBunApp("api", "server.ts")
.WithHttpEndpoint(env: "PORT");
Core API (Aspire.Hosting.JavaScript):
builder.AddBunApp("api", "./api", "server.ts")
.WithHttpEndpoint(env: "PORT")
.WithExternalHttpEndpoints();
TypeScript AppHost (core bindings):
await builder
.addBunApp("api", "./api", "server.ts")
.withHttpEndpoint({ env: "PORT" })
.withExternalHttpEndpoints();
Additional Information
https://learn.microsoft.com/dotnet/aspire/community-toolkit/hosting-bun
Feedback & contributing
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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.0)
- MessagePack (>= 2.5.302)
-
net8.0
- Aspire.Hosting (>= 13.5.0)
- MessagePack (>= 2.5.302)
-
net9.0
- Aspire.Hosting (>= 13.5.0)
- MessagePack (>= 2.5.302)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on CommunityToolkit.Aspire.Hosting.Bun:
| Repository | Stars |
|---|---|
|
suxrobGM/logistics-app
AI-powered fleet management platform with an agentic dispatcher that matches loads to trucks, ensures HOS compliance, and optimizes routes. Built for trucking companies.
|
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 13.5.1-beta.754 | 71 | 9/14/2026 | |
| 13.5.1-beta.752 | 68 | 9/12/2026 | |
| 13.5.1-beta.751 | 73 | 9/12/2026 | |
| 13.5.1-beta.748 | 94 | 9/7/2026 | |
| 13.5.1-beta.744 | 91 | 9/7/2026 | |
| 13.5.1-beta.743 | 105 | 9/7/2026 | |
| 13.5.1-beta.736 | 95 | 9/1/2026 | |
| 13.5.0 | 4,189 | 8/25/2026 | |
| 13.5.0-beta.731 | 84 | 8/24/2026 | |
| 13.5.0-beta.730 | 83 | 8/21/2026 | |
| 13.4.1-beta.706 | 72 | 8/6/2026 | |
| 13.4.1-beta.704 | 82 | 8/5/2026 | |
| 13.4.1-beta.701 | 77 | 8/4/2026 | |
| 13.4.1-beta.700 | 82 | 8/2/2026 | |
| 13.4.1-beta.696 | 83 | 8/1/2026 | |
| 13.4.1-beta.687 | 78 | 7/27/2026 | |
| 13.4.1-beta.686 | 82 | 7/16/2026 | |
| 13.4.1-beta.685 | 84 | 7/9/2026 | |
| 13.4.1-beta.683 | 82 | 7/9/2026 | |
| 13.4.1-beta.680 | 77 | 7/7/2026 |