CommunityToolkit.Aspire.Hosting.RedPanda 13.5.0

Prefix Reserved
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package CommunityToolkit.Aspire.Hosting.RedPanda --version 13.5.0
                    
NuGet\Install-Package CommunityToolkit.Aspire.Hosting.RedPanda -Version 13.5.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CommunityToolkit.Aspire.Hosting.RedPanda" Version="13.5.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CommunityToolkit.Aspire.Hosting.RedPanda" Version="13.5.0" />
                    
Directory.Packages.props
<PackageReference Include="CommunityToolkit.Aspire.Hosting.RedPanda" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CommunityToolkit.Aspire.Hosting.RedPanda --version 13.5.0
                    
#r "nuget: CommunityToolkit.Aspire.Hosting.RedPanda, 13.5.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CommunityToolkit.Aspire.Hosting.RedPanda@13.5.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CommunityToolkit.Aspire.Hosting.RedPanda&version=13.5.0
                    
Install as a Cake Addin
#tool nuget:?package=CommunityToolkit.Aspire.Hosting.RedPanda&version=13.5.0
                    
Install as a Cake Tool

CommunityToolkit.Aspire.Hosting.RedPanda

Overview

This Aspire hosting integration runs Redpanda in a container. Redpanda is a Kafka API compatible streaming platform, so the resource can be referenced by any Kafka client integration (for example the official Aspire.Confluent.Kafka client integration). The integration exposes the Kafka API, the Schema Registry, and the Admin API, and can optionally run the Redpanda Console web UI.

Usage

Example 1: Add a Redpanda broker

var builder = DistributedApplication.CreateBuilder(args);

var redpanda = builder.AddRedPanda("redpanda");

builder.AddProject<Projects.MyApp>("myapp")
       .WithReference(redpanda)
       .WaitFor(redpanda);

builder.Build().Run();

The connection string injected into the referencing resource is the Kafka bootstrap server address in the form host:port.

Example 2: Pin the Kafka host port

var redpanda = builder.AddRedPanda("redpanda", port: 9092);

Example 3: Tune the broker CPU and memory

var redpanda = builder.AddRedPanda("redpanda", options =>
{
    options.CpuCount = 2;     // Redpanda --smp, defaults to 1
    options.Memory = "2G";    // Redpanda --memory, defaults to "1G"
});

Example 4: Persist data with a volume or bind mount

var redpanda = builder.AddRedPanda("redpanda")
                      .WithDataVolume();

// or

var redpanda = builder.AddRedPanda("redpanda")
                      .WithDataBindMount("./redpanda-data");

Example 5: Add the Redpanda Console web UI

var redpanda = builder.AddRedPanda("redpanda")
                      .WithConsole(console => console.WithHostPort(8080));

The console is configured automatically to connect to the broker's Kafka API, Schema Registry, and Admin API.

Example 6: Add the Kafka UI web UI

var redpanda = builder.AddRedPanda("redpanda")
                      .WithKafkaUI(kafkaUi => kafkaUi.WithHostPort(9000));

WithKafkaUI runs the same Kafka management UI (the kafbat/kafka-ui image) used by the official Aspire Kafka integration. It is wired automatically to the broker's Kafka API and Schema Registry, and can be used as an alternative to the Redpanda Console.

Endpoints

Name Description
kafka Kafka API (host accessible)
internal Kafka API (container-to-container)
schemaregistry Schema Registry HTTP API
admin Admin API HTTP (used for the health check)

Upstream Image

This integration pins the redpandadata/redpanda image (from docker.redpanda.com) to a specific version tag (v26.1.10) rather than a floating tag, and the optional console uses redpandadata/console pinned to v3.7.4. Redpanda publishes immutable, fully-versioned tags (vYY.M.P); update the pinned tags to adopt newer releases. The optional Kafka UI uses kafbat/kafka-ui (from docker.io) pinned to v1.5.0.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
13.5.1-beta.748 37 9/7/2026
13.5.1-beta.744 44 9/7/2026
13.5.1-beta.743 54 9/7/2026
13.5.1-beta.736 45 9/1/2026
13.5.0 134 8/25/2026
13.5.0-beta.731 64 8/24/2026
13.5.0-beta.730 64 8/21/2026