CommunityToolkit.Aspire.Hosting.Ngrok 13.0.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.Ngrok --version 13.0.0
                    
NuGet\Install-Package CommunityToolkit.Aspire.Hosting.Ngrok -Version 13.0.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.Ngrok" Version="13.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CommunityToolkit.Aspire.Hosting.Ngrok" Version="13.0.0" />
                    
Directory.Packages.props
<PackageReference Include="CommunityToolkit.Aspire.Hosting.Ngrok" />
                    
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.Ngrok --version 13.0.0
                    
#r "nuget: CommunityToolkit.Aspire.Hosting.Ngrok, 13.0.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.Ngrok@13.0.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.Ngrok&version=13.0.0
                    
Install as a Cake Addin
#tool nuget:?package=CommunityToolkit.Aspire.Hosting.Ngrok&version=13.0.0
                    
Install as a Cake Tool

CommunityToolkit.Aspire.Hosting.Ngrok library

Provides extension methods and resource definitions for a .NET Aspire AppHost to configure a ngrok container.

Getting Started

Install the package

In your AppHost project, install the package using the following command:

dotnet add package CommunityToolkit.Aspire.Hosting.Ngrok

Example usage

Then, in the Program.cs file of app host, add a ngrok resource and add endpoints to be tunneled following methods:

var myService = builder.AddProject<Projects.MyService>();
var otherSevice = builder.AddProject<Projects.OtherService>();

var authToken = builder
    .AddParameter("ngrok-auth-token", "your-ngrok-auth-token", secret: true);

builder.AddNgrok("ngrok", endpointPort: 59600) // omit endpointPort to use random port
    .WithAuthToken(authToken)
    .WithTunnelEndpoint(myService, "http", "<your-ngrok-domain>")
    .WithTunnelEndpoint(otherSevice, "http"); // ngrok will generate a random domain for this service

Querying the ngrok tunneled endpoints

After the ngrok container has started, you can query the ngrok tunneled endpoints using api exposed by the ngrok container:

curl -H "Accept: application/json" -s http://localhost:59600/api/tunnels

This will return a JSON response with the ngrok tunneled endpoints.

{
  "tunnels": [
    {
      "name": "my-http",
      "ID": "5baa78f84cffb31a96cccf5bbe992451",
      "uri": "/api/tunnels/my-http",
      "public_url": "https://<your-ngrok-domain>",
      "proto": "https",
      "config": {
        "addr": "http://host.docker.internal:5165",
        "inspect": true
      },
      // ...
    }, {
      "name": "other-http",
      "ID": "f7f1351d1307e3615ca7de310bf6bb61",
      "uri": "/api/tunnels/other-http",
      "public_url": "https://0849-94-134-176-242.ngrok-free.app",
      "proto": "https",
      "config": {
          "addr": "http://host.docker.internal:3657",
          "inspect": true
      },
      // ...
    }
  ],
  "uri": "/api/tunnels"
}

Additional Information

Feedback & contributing

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.0.1-beta.468 611 12/3/2025
13.0.1-beta.467 610 12/3/2025
13.0.0 1,063 11/25/2025
13.0.0-beta.462 130 11/25/2025
13.0.0-beta.456 132 11/23/2025
13.0.0-beta.454 81 11/23/2025
13.0.0-beta.453 109 11/22/2025
13.0.0-beta.450 108 11/22/2025
13.0.0-beta.448 104 11/22/2025
13.0.0-beta.444 390 11/17/2025
13.0.0-beta.443 267 11/17/2025
13.0.0-beta.440 89 11/15/2025
13.0.0-beta.439 350 11/12/2025
13.0.0-beta.438 221 11/12/2025
13.0.0-beta.436 227 11/12/2025
13.0.0-beta.435 227 11/11/2025
13.0.0-beta.433 151 11/10/2025
13.0.0-beta.432 147 11/10/2025
13.0.0-beta.431 135 11/6/2025
13.0.0-beta.430 141 11/6/2025
9.9.0 3,223 11/3/2025
9.9.0-beta.427 152 11/3/2025
9.8.1-beta.426 551 11/3/2025
9.8.1-beta.424 273 10/28/2025
9.8.1-beta.420 131 10/27/2025
9.8.1-beta.419 129 10/27/2025
9.8.1-beta.417 133 10/27/2025
9.8.1-beta.414 127 10/24/2025
9.8.1-beta.413 132 10/22/2025
9.8.1-beta.410 123 10/16/2025
9.8.1-beta.408 115 10/16/2025
9.8.1-beta.407 117 10/16/2025
9.8.1-beta.406 122 10/15/2025
9.8.0 2,052 9/26/2025
9.8.0-beta.405 126 10/15/2025
9.8.0-beta.404 123 10/13/2025
9.8.0-beta.402 129 9/29/2025
9.8.0-beta.401 126 9/29/2025
9.8.0-beta.399 125 9/26/2025
9.8.0-beta.398 127 9/25/2025
9.8.0-beta.397 131 9/25/2025
9.8.0-beta.395 132 9/24/2025
9.8.0-beta.394 130 9/23/2025
9.8.0-beta.393 127 9/23/2025
9.8.0-beta.392 132 9/23/2025
9.8.0-beta.389 256 9/18/2025
9.8.0-beta.388 271 9/16/2025
9.8.0-beta.386 208 9/15/2025
9.8.0-beta.385 211 9/15/2025
9.8.0-beta.384 59 9/13/2025
9.8.0-beta.376 140 9/8/2025
9.8.0-beta.375 67 9/6/2025
9.8.0-beta.373 144 9/5/2025
9.8.0-beta.372 144 9/4/2025
9.8.0-beta.370 135 9/2/2025
9.8.0-beta.364 131 9/1/2025
9.7.2 1,487 8/29/2025
9.7.2-beta.362 173 8/29/2025
9.7.2-beta.361 181 8/29/2025
9.7.2-beta.360 178 8/29/2025
9.7.2-beta.359 174 8/28/2025
9.7.2-beta.358 176 8/28/2025
9.7.2-beta.357 181 8/28/2025
9.7.1 444 8/27/2025
9.7.1-beta.355 179 8/27/2025
9.7.1-beta.354 174 8/27/2025
9.7.1-beta.353 174 8/27/2025
9.7.1-beta.352 172 8/27/2025
9.7.1-beta.351 177 8/27/2025
9.7.1-beta.348 172 8/14/2025
9.7.1-beta.344 87 8/10/2025
9.7.1-beta.343 203 8/8/2025
9.7.1-beta.342 211 8/7/2025
9.7.1-beta.341 209 8/6/2025
9.7.1-beta.340 192 8/5/2025
9.7.1-beta.339 192 8/5/2025
9.7.0 1,777 8/1/2025
9.7.0-beta.337 89 8/1/2025
9.7.0-beta.336 107 8/1/2025
9.7.0-beta.335 98 8/1/2025
9.7.0-beta.333 111 7/30/2025
9.6.1-beta.332 112 7/30/2025
9.6.1-beta.331 112 7/30/2025
9.6.1-beta.330 105 7/30/2025
9.6.1-beta.329 113 7/30/2025
9.6.1-beta.328 115 7/29/2025
9.6.1-beta.327 126 7/28/2025
9.6.1-beta.326 119 7/28/2025
9.6.0 716 7/10/2025
9.6.0-beta.324 130 7/10/2025
9.5.1-beta.323 135 7/10/2025
9.5.1-beta.322 123 7/10/2025
9.5.1-beta.321 134 7/10/2025
9.5.1-beta.320 135 7/9/2025
9.5.1-beta.319 134 7/8/2025
9.5.1-beta.318 148 7/2/2025
9.5.1-beta.317 131 6/30/2025
9.5.1-beta.315 133 6/26/2025
9.5.1-beta.314 138 6/23/2025
9.5.1-beta.313 117 6/20/2025
9.5.1-beta.312 124 6/20/2025
9.5.1-beta.311 165 6/18/2025
9.5.1-beta.310 144 6/17/2025
9.5.1-beta.309 155 6/17/2025
9.5.1-beta.308 132 6/17/2025
9.5.1-beta.307 150 6/16/2025
9.5.1-beta.306 301 6/11/2025
9.5.1-beta.305 106 6/7/2025
9.5.1-beta.304 119 6/6/2025
9.5.1-beta.303 129 6/4/2025
9.5.1-beta.302 149 6/4/2025
9.5.1-beta.301 159 6/2/2025
9.5.1-beta.300 137 5/28/2025
9.5.0 2,575 5/27/2025
9.5.0-beta.299 137 5/27/2025
9.5.0-beta.298 142 5/26/2025
9.5.0-beta.297 88 5/24/2025
9.5.0-beta.296 94 5/24/2025
9.5.0-beta.295 79 5/24/2025
9.4.1-beta.291 137 5/19/2025
9.4.1-beta.289 182 5/16/2025
9.4.1-beta.288 203 5/16/2025
9.4.1-beta.287 196 5/16/2025
9.4.1-beta.286 202 5/16/2025
9.4.1-beta.285 214 5/14/2025
9.4.1-beta.284 216 5/13/2025
9.4.1-beta.283 222 5/12/2025
9.4.1-beta.282 144 5/7/2025
9.4.1-beta.280 138 5/2/2025
9.4.1-beta.279 129 5/2/2025
9.4.1-beta.277 148 4/23/2025
9.4.1-beta.276 154 4/23/2025
9.4.1-beta.275 145 4/23/2025
9.4.1-beta.274 163 4/23/2025
9.4.1-beta.273 147 4/23/2025
9.4.1-beta.272 171 4/23/2025
9.4.1-beta.271 478 4/23/2025
9.4.1-beta.270 194 4/20/2025
9.4.0 935 4/20/2025
9.4.0-beta.269 152 4/20/2025
9.4.0-beta.268 162 4/20/2025
9.3.1-beta.267 173 4/20/2025
9.3.1-beta.266 84 4/19/2025
9.3.1-beta.265 176 4/15/2025
9.3.1-beta.264 176 4/15/2025
9.3.1-beta.263 180 4/15/2025
9.3.1-beta.262 179 4/15/2025
9.3.1-beta.260 145 4/10/2025
9.3.1-beta.259 146 4/8/2025
9.3.1-beta.258 171 4/8/2025
9.3.1-beta.257 153 4/8/2025
9.3.1-beta.256 151 4/8/2025
9.3.1-beta.255 150 4/8/2025
9.3.1-beta.254 169 4/8/2025
9.3.1-beta.253 143 4/1/2025
9.3.1-beta.252 128 3/27/2025
9.3.1-beta.250 149 3/27/2025
9.3.1-beta.249 129 3/27/2025
9.3.1-beta.248 127 3/27/2025
9.3.1-beta.247 127 3/27/2025
9.3.1-beta.244 470 3/25/2025
9.3.1-beta.242 475 3/24/2025
9.3.1-beta.241 144 3/19/2025
9.3.0 533 3/19/2025
9.3.0-beta.239 140 3/19/2025
9.2.2-beta.237 145 3/19/2025
9.2.2-beta.236 106 3/14/2025
9.2.2-beta.230 163 3/13/2025
9.2.2-beta.229 143 3/13/2025
9.2.2-beta.228 180 3/11/2025
9.2.2-beta.227 169 3/11/2025
9.2.2-beta.226 156 3/11/2025
9.2.2-beta.225 146 3/11/2025
9.2.2-beta.224 169 3/11/2025
9.2.2-beta.223 158 3/10/2025
9.2.2-beta.222 159 3/10/2025
9.2.2-beta.220 150 3/9/2025
9.2.2-beta.218 149 3/9/2025
9.2.2-beta.217 190 3/7/2025
9.2.2-beta.216 199 3/7/2025
9.2.2-beta.215 192 3/7/2025
9.2.2-beta.214 214 3/5/2025
9.2.2-beta.213 184 3/5/2025
9.2.2-beta.212 187 3/5/2025
9.2.2-beta.211 188 3/4/2025
9.2.2-beta.210 208 3/4/2025
9.2.2-beta.208 96 3/3/2025
9.2.1 303 3/3/2025
9.2.1-beta.207 110 3/2/2025
9.2.1-beta.206 87 3/1/2025
9.2.1-beta.205 92 2/27/2025
9.2.1-beta.204 97 2/26/2025
9.2.1-beta.203 76 2/26/2025
9.2.0 191 2/26/2025
9.2.0-beta.202 99 2/26/2025
9.2.0-beta.201 88 2/26/2025
9.2.0-beta.199 85 2/26/2025
9.2.0-beta.198 97 2/26/2025
9.1.1-beta.197 86 2/25/2025
9.1.1-beta.196 109 2/25/2025
9.1.1-beta.195 84 2/25/2025
9.1.1-beta.194 89 2/25/2025
9.1.1-beta.193 118 2/25/2025
9.1.1-beta.192 120 2/24/2025
9.1.1-beta.191 153 2/24/2025
9.1.1-beta.190 100 2/19/2025
9.1.1-beta.189 88 2/19/2025
9.1.1-beta.188 109 2/19/2025
9.1.1-beta.187 112 2/19/2025
9.1.1-beta.183 97 2/18/2025
9.1.1-beta.182 96 2/18/2025
9.1.1-beta.181 106 2/18/2025
9.1.1-beta.180 97 2/17/2025
9.1.1-beta.178 93 2/17/2025
9.1.1-beta.177 107 2/12/2025
9.1.1-beta.176 112 2/11/2025
9.1.1-beta.175 91 2/11/2025
9.1.1-beta.173 92 2/10/2025
9.1.1-beta.169 200 2/6/2025
9.1.1-beta.168 104 2/5/2025
9.1.1-beta.166 86 2/5/2025
9.1.1-beta.165 78 2/5/2025
9.1.1-beta.164 94 2/3/2025
9.1.1-beta.162 88 2/3/2025
9.1.1-beta.155 85 1/30/2025
9.1.1-beta.154 81 1/30/2025
9.1.1-beta.153 78 1/30/2025
9.1.1-beta.152 71 1/29/2025
9.1.1-beta.150 90 1/29/2025
9.1.1-beta.148 84 1/26/2025
9.1.1-beta.147 79 1/26/2025
9.1.1-beta.146 106 1/23/2025
9.1.1-beta.145 105 1/22/2025
9.1.1-beta.144 85 1/22/2025
9.1.1-beta.142 82 1/22/2025
9.1.1-beta.140 106 1/22/2025
9.1.1-beta.139 81 1/21/2025
9.1.1-beta.138 106 1/20/2025
9.1.1-beta.137 92 1/17/2025
9.1.1-beta.136 95 1/15/2025
9.1.1-beta.135 54 1/15/2025
9.1.1-beta.134 54 1/15/2025