CommunityToolkit.Aspire.Hosting.Ngrok 13.0.0-beta.462

Prefix Reserved
This is a prerelease version of CommunityToolkit.Aspire.Hosting.Ngrok.
There is a newer version of this package available.
See the version list below for details.
dotnet add package CommunityToolkit.Aspire.Hosting.Ngrok --version 13.0.0-beta.462
                    
NuGet\Install-Package CommunityToolkit.Aspire.Hosting.Ngrok -Version 13.0.0-beta.462
                    
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-beta.462" />
                    
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-beta.462" />
                    
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-beta.462
                    
#r "nuget: CommunityToolkit.Aspire.Hosting.Ngrok, 13.0.0-beta.462"
                    
#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-beta.462
                    
#: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-beta.462&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=CommunityToolkit.Aspire.Hosting.Ngrok&version=13.0.0-beta.462&prerelease
                    
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 678 12/3/2025
13.0.1-beta.467 615 12/3/2025
13.0.0 1,629 11/25/2025
13.0.0-beta.462 134 11/25/2025
13.0.0-beta.456 136 11/23/2025
13.0.0-beta.454 87 11/23/2025
13.0.0-beta.453 114 11/22/2025
13.0.0-beta.450 112 11/22/2025
13.0.0-beta.448 108 11/22/2025
13.0.0-beta.444 395 11/17/2025
13.0.0-beta.443 272 11/17/2025
13.0.0-beta.440 94 11/15/2025
13.0.0-beta.439 354 11/12/2025
13.0.0-beta.438 224 11/12/2025
13.0.0-beta.436 231 11/12/2025
13.0.0-beta.435 231 11/11/2025
13.0.0-beta.433 153 11/10/2025
13.0.0-beta.432 151 11/10/2025
13.0.0-beta.431 138 11/6/2025
13.0.0-beta.430 143 11/6/2025
9.9.0 3,579 11/3/2025
9.9.0-beta.427 156 11/3/2025
9.8.1-beta.426 553 11/3/2025
9.8.1-beta.424 275 10/28/2025
9.8.1-beta.420 132 10/27/2025
9.8.1-beta.419 131 10/27/2025
9.8.1-beta.417 137 10/27/2025
9.8.1-beta.414 128 10/24/2025
9.8.1-beta.413 136 10/22/2025
9.8.1-beta.410 124 10/16/2025
9.8.1-beta.408 118 10/16/2025
9.8.1-beta.407 119 10/16/2025
9.8.1-beta.406 125 10/15/2025
9.8.0 2,060 9/26/2025
9.8.0-beta.405 131 10/15/2025
9.8.0-beta.404 127 10/13/2025
9.8.0-beta.402 133 9/29/2025
9.8.0-beta.401 129 9/29/2025
9.8.0-beta.399 127 9/26/2025
9.8.0-beta.398 129 9/25/2025
9.8.0-beta.397 136 9/25/2025
9.8.0-beta.395 135 9/24/2025
9.8.0-beta.394 132 9/23/2025
9.8.0-beta.393 129 9/23/2025
9.8.0-beta.392 134 9/23/2025
9.8.0-beta.389 259 9/18/2025
9.8.0-beta.388 273 9/16/2025
9.8.0-beta.386 212 9/15/2025
9.8.0-beta.385 214 9/15/2025
9.8.0-beta.384 62 9/13/2025
9.8.0-beta.376 143 9/8/2025
9.8.0-beta.375 70 9/6/2025
9.8.0-beta.373 149 9/5/2025
9.8.0-beta.372 147 9/4/2025
9.8.0-beta.370 136 9/2/2025
9.8.0-beta.364 132 9/1/2025
9.7.2 1,495 8/29/2025
9.7.2-beta.362 176 8/29/2025
9.7.2-beta.361 184 8/29/2025
9.7.2-beta.360 181 8/29/2025
9.7.2-beta.359 177 8/28/2025
9.7.2-beta.358 178 8/28/2025
9.7.2-beta.357 184 8/28/2025
9.7.1 450 8/27/2025
9.7.1-beta.355 184 8/27/2025
9.7.1-beta.354 178 8/27/2025
9.7.1-beta.353 176 8/27/2025
9.7.1-beta.352 177 8/27/2025
9.7.1-beta.351 178 8/27/2025
9.7.1-beta.348 174 8/14/2025
9.7.1-beta.344 89 8/10/2025
9.7.1-beta.343 206 8/8/2025
9.7.1-beta.342 214 8/7/2025
9.7.1-beta.341 210 8/6/2025
9.7.1-beta.340 193 8/5/2025
9.7.1-beta.339 194 8/5/2025
9.7.0 1,784 8/1/2025
9.7.0-beta.337 91 8/1/2025
9.7.0-beta.336 110 8/1/2025
9.7.0-beta.335 99 8/1/2025
9.7.0-beta.333 112 7/30/2025
9.6.1-beta.332 115 7/30/2025
9.6.1-beta.331 115 7/30/2025
9.6.1-beta.330 107 7/30/2025
9.6.1-beta.329 113 7/30/2025
9.6.1-beta.328 116 7/29/2025
9.6.1-beta.327 128 7/28/2025
9.6.1-beta.326 121 7/28/2025
9.6.0 725 7/10/2025
9.6.0-beta.324 132 7/10/2025
9.5.1-beta.323 137 7/10/2025
9.5.1-beta.322 125 7/10/2025
9.5.1-beta.321 135 7/10/2025
9.5.1-beta.320 135 7/9/2025
9.5.1-beta.319 136 7/8/2025
9.5.1-beta.318 149 7/2/2025
9.5.1-beta.317 133 6/30/2025
9.5.1-beta.315 135 6/26/2025
9.5.1-beta.314 140 6/23/2025
9.5.1-beta.313 118 6/20/2025
9.5.1-beta.312 127 6/20/2025
9.5.1-beta.311 166 6/18/2025
9.5.1-beta.310 147 6/17/2025
9.5.1-beta.309 156 6/17/2025
9.5.1-beta.308 134 6/17/2025
9.5.1-beta.307 152 6/16/2025
9.5.1-beta.306 303 6/11/2025
9.5.1-beta.305 108 6/7/2025
9.5.1-beta.304 121 6/6/2025
9.5.1-beta.303 130 6/4/2025
9.5.1-beta.302 153 6/4/2025
9.5.1-beta.301 162 6/2/2025
9.5.1-beta.300 137 5/28/2025
9.5.0 2,578 5/27/2025
9.5.0-beta.299 139 5/27/2025
9.5.0-beta.298 145 5/26/2025
9.5.0-beta.297 89 5/24/2025
9.5.0-beta.296 96 5/24/2025
9.5.0-beta.295 80 5/24/2025
9.4.1-beta.291 139 5/19/2025
9.4.1-beta.289 183 5/16/2025
9.4.1-beta.288 204 5/16/2025
9.4.1-beta.287 197 5/16/2025
9.4.1-beta.286 204 5/16/2025
9.4.1-beta.285 215 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 149 5/7/2025
9.4.1-beta.280 141 5/2/2025
9.4.1-beta.279 133 5/2/2025
9.4.1-beta.277 152 4/23/2025
9.4.1-beta.276 156 4/23/2025
9.4.1-beta.275 146 4/23/2025
9.4.1-beta.274 166 4/23/2025
9.4.1-beta.273 148 4/23/2025
9.4.1-beta.272 173 4/23/2025
9.4.1-beta.271 551 4/23/2025
9.4.1-beta.270 198 4/20/2025
9.4.0 938 4/20/2025
9.4.0-beta.269 154 4/20/2025
9.4.0-beta.268 164 4/20/2025
9.3.1-beta.267 174 4/20/2025
9.3.1-beta.266 87 4/19/2025
9.3.1-beta.265 178 4/15/2025
9.3.1-beta.264 176 4/15/2025
9.3.1-beta.263 182 4/15/2025
9.3.1-beta.262 182 4/15/2025
9.3.1-beta.260 148 4/10/2025
9.3.1-beta.259 148 4/8/2025
9.3.1-beta.258 174 4/8/2025
9.3.1-beta.257 154 4/8/2025
9.3.1-beta.256 155 4/8/2025
9.3.1-beta.255 151 4/8/2025
9.3.1-beta.254 170 4/8/2025
9.3.1-beta.253 147 4/1/2025
9.3.1-beta.252 130 3/27/2025
9.3.1-beta.250 150 3/27/2025
9.3.1-beta.249 131 3/27/2025
9.3.1-beta.248 128 3/27/2025
9.3.1-beta.247 128 3/27/2025
9.3.1-beta.244 473 3/25/2025
9.3.1-beta.242 476 3/24/2025
9.3.1-beta.241 146 3/19/2025
9.3.0 536 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 107 3/14/2025
9.2.2-beta.230 165 3/13/2025
9.2.2-beta.229 145 3/13/2025
9.2.2-beta.228 181 3/11/2025
9.2.2-beta.227 173 3/11/2025
9.2.2-beta.226 158 3/11/2025
9.2.2-beta.225 148 3/11/2025
9.2.2-beta.224 171 3/11/2025
9.2.2-beta.223 162 3/10/2025
9.2.2-beta.222 160 3/10/2025
9.2.2-beta.220 152 3/9/2025
9.2.2-beta.218 151 3/9/2025
9.2.2-beta.217 191 3/7/2025
9.2.2-beta.216 202 3/7/2025
9.2.2-beta.215 194 3/7/2025
9.2.2-beta.214 214 3/5/2025
9.2.2-beta.213 186 3/5/2025
9.2.2-beta.212 188 3/5/2025
9.2.2-beta.211 189 3/4/2025
9.2.2-beta.210 208 3/4/2025
9.2.2-beta.208 100 3/3/2025
9.2.1 308 3/3/2025
9.2.1-beta.207 113 3/2/2025
9.2.1-beta.206 88 3/1/2025
9.2.1-beta.205 95 2/27/2025
9.2.1-beta.204 99 2/26/2025
9.2.1-beta.203 77 2/26/2025
9.2.0 192 2/26/2025
9.2.0-beta.202 100 2/26/2025
9.2.0-beta.201 91 2/26/2025
9.2.0-beta.199 87 2/26/2025
9.2.0-beta.198 98 2/26/2025
9.1.1-beta.197 88 2/25/2025
9.1.1-beta.196 112 2/25/2025
9.1.1-beta.195 85 2/25/2025
9.1.1-beta.194 91 2/25/2025
9.1.1-beta.193 121 2/25/2025
9.1.1-beta.192 121 2/24/2025
9.1.1-beta.191 157 2/24/2025
9.1.1-beta.190 101 2/19/2025
9.1.1-beta.189 90 2/19/2025
9.1.1-beta.188 109 2/19/2025
9.1.1-beta.187 116 2/19/2025
9.1.1-beta.183 99 2/18/2025
9.1.1-beta.182 98 2/18/2025
9.1.1-beta.181 110 2/18/2025
9.1.1-beta.180 98 2/17/2025
9.1.1-beta.178 94 2/17/2025
9.1.1-beta.177 109 2/12/2025
9.1.1-beta.176 115 2/11/2025
9.1.1-beta.175 92 2/11/2025
9.1.1-beta.173 93 2/10/2025
9.1.1-beta.169 201 2/6/2025
9.1.1-beta.168 106 2/5/2025
9.1.1-beta.166 88 2/5/2025
9.1.1-beta.165 81 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 79 1/30/2025
9.1.1-beta.152 72 1/29/2025
9.1.1-beta.150 94 1/29/2025
9.1.1-beta.148 85 1/26/2025
9.1.1-beta.147 81 1/26/2025
9.1.1-beta.146 107 1/23/2025
9.1.1-beta.145 106 1/22/2025
9.1.1-beta.144 85 1/22/2025
9.1.1-beta.142 83 1/22/2025
9.1.1-beta.140 106 1/22/2025
9.1.1-beta.139 83 1/21/2025
9.1.1-beta.138 108 1/20/2025
9.1.1-beta.137 93 1/17/2025
9.1.1-beta.136 96 1/15/2025
9.1.1-beta.135 56 1/15/2025
9.1.1-beta.134 57 1/15/2025