YARP is deliberately not a finished proxy appliance. It is a toolkit for building high-performance HTTP reverse-proxy applications on ASP.NET Core.
That is its strength.
You can use dependency injection, insert middleware into the request pipeline, implement custom transforms, choose where configuration comes from, and combine proxy behavior with the rest of your application.
It also means that a real gateway usually needs more than this:
builder.Services .AddReverseProxy() .LoadFromConfig(builder.Configuration.GetSection("ReverseProxy")); Once routes multiply and other people need to operate the proxy, someone has to build the surrounding system: configuration storage, an editor, authentication, validation, runtime updates, and a safe way to move a change into production.
YARPad adds that operational layer to an existing YARP application as a NuGet package.
The important part is what it does not take away: the proxy remains your ASP.NET Core application.
The gap between a library and an operable gateway
A small YARP application often starts with configuration like this:
{ "ReverseProxy": { "Routes": { "catalog-route": { "ClusterId": "catalog", "Match": { "Path": "/api/catalog/{**catch-all}" }, "Transforms": [ { "PathRemovePrefix": "/api/catalog" } ] } }, "Clusters": { "catalog": { "Destinations": { "catalog-a": { "Address": "https://catalog-a.internal/" }, "catalog-b": { "Address": "https://catalog-b.internal/" } } } } } } There is nothing wrong with JSON configuration. It works well with source control and deployment pipelines. But it is not always the right operational interface.
Consider what happens when a team needs to:
- Change a destination without redeploying the host application.
- Let an operator manage routes without editing a deployment artifact.
- Discover which load-balancing or session-affinity options YARP supports.
- Validate a large configuration before replacing the working one.
- Prepare several related changes and activate them together.
- Keep multiple candidate configurations for testing or rollback.
Those concerns sit above the forwarding engine. YARPad addresses them while using YARP underneath.
Add YARPad to an ASP.NET Core application
YARPad currently targets .NET 10 and expects the host to use Yarp.ReverseProxy.
Install the package:
dotnet add package CodingCell.YARPad Then register YARPad and YARP in Program.cs:
using CodingCell.YARPad; var builder = WebApplication.CreateBuilder(args); builder.Services.AddYARPad(builder.Configuration); builder.Services.AddReverseProxy(); var app = builder.Build(); app.MapYARPad(); app.MapReverseProxy(); app.Run(); Notice that AddReverseProxy() does not call LoadFromConfig(). YARPad registers its own implementation of YARP’s IProxyConfigProvider, so the active YARPad profile becomes the source of routes and clusters.
Add a minimal configuration section:
{ "YARPad": { "PathPrefix": "/yarpad", "ConnectionString": "DataSource=yarpad.db" } } Run the application and open:
https://localhost:<port>/yarpad On the first start, YARPad creates its SQLite database, applies migrations, and initializes the Identity and configuration tables. Register the first administrator, create a configuration profile, and add routes and clusters.
Registration closes after the first user unless multi-user mode is explicitly enabled.
What happens when a profile is activated?
YARP supports dynamic configuration through IProxyConfigProvider. A provider returns the current routes and clusters together with a change token. When the provider signals a change, YARP retrieves the new configuration and updates the proxy without restarting the host.
YARPad builds its runtime behavior on that standard extension point:
- The selected YARPad profile is mapped to YARP
RouteConfigandClusterConfigobjects. - The resulting routes and clusters are checked using YARP’s
IConfigValidator. - If validation succeeds, YARPad replaces its current configuration and signals YARP’s change token.
- YARP reloads the changed configuration for new requests.
- If validation fails, the attempted profile is marked invalid—or reverted to the previous configuration during a later activation—and the working configuration remains in use.
There are two useful layers of validation here. FluentValidation provides feedback while editing models in the UI, while YARP’s validator checks the final configuration understood by the forwarding engine.
This is more robust than saving arbitrary JSON and hoping the next reload works.
Profiles turn live editing into change management
The unit of work in YARPad is a configuration profile, not an individual text-file edit.
Profiles can be:
- Created from scratch
- Cloned from an existing profile
- Edited without immediately affecting traffic
- Validated and explicitly activated
- Exported for backup or transfer
- Imported into another YARPad installation
The import and export format deserves one clarification: a .yrpd file is a versioned YARPad profile serialized as JSON. It is not the same schema as the standard ReverseProxy section in appsettings.json, so importing an existing YARP JSON configuration is a separate migration concern.
A practical workflow is to clone the active profile, make related changes, inspect validation feedback, and activate the new profile only when it is ready. The running host does not have to restart, and saving an edit does not silently make it live.
The UI exposes YARP rather than hiding it
YARPad’s editors cover the major YARP configuration areas:
- Route matches: paths, hosts, methods, headers, and query parameters
- Route order and cluster assignment
- Destinations and load balancing
- Active and passive health checks
- Session affinity
- HTTP client and forwarding settings
- Request, response, path, query, header, and certificate transforms
- Route and cluster metadata
- Authorization, CORS, timeout, rate-limiting, and output-cache policies
The goal is not to invent friendlier names for a reduced proxy model. The goal is to make YARP’s actual model manageable.
That distinction matters as a deployment grows. A simple host-to-upstream form is approachable, but it often creates an escape hatch for advanced configuration. YARPad keeps advanced features in the same model and provides contextual help beside non-trivial settings.
For example, a health-check policy or forwarded-header option includes an explanation of what it controls, its accepted values, and its effect on proxy behavior. The UI becomes a guided way to learn YARP instead of an abstraction that has to be abandoned later.
Your code can still define the behavior
Embedding an admin console should not force every routing feature into database-driven configuration.
YARPad continues to run inside the host application, so the application can register custom YARP components in the usual way. For example:
var proxyBuilder = builder.Services.AddReverseProxy(); proxyBuilder.AddTransforms<TenantTransformProvider>(); An ITransformProvider implementation remains ordinary application code: it can use dependency injection, validate route or cluster data, and add request or response transforms. YARPad can define custom transform types and their parameters so instances can be configured through the UI, while the implementation stays in the host.
The same principle applies to host-specific policies and middleware. YARPad provides the management surface; ASP.NET Core and YARP provide the execution environment.
This makes the library especially useful when a gateway has two groups of users:
- Developers own code-level behavior and deployment.
- Operators own destinations, matching rules, policies, and other runtime choices.
Both groups work with the same proxy without requiring operators to modify or redeploy the host application.
Security is part of the package
A routing console is a privileged administration tool. Changing one destination can redirect credentials and traffic, so putting a login page in front of it is not sufficient by itself.
YARPad combines ASP.NET Core Identity with a network-level access guard:
- The management UI is restricted to loopback and private network ranges by default.
- LAN filtering runs before authentication.
- Only the first account can register by default.
- Passkeys, TOTP two-factor authentication, recovery codes, password rules, and lockout are supported.
- Trusted proxy IP addresses and networks can be configured for correct
X-Forwarded-*handling. - The UI path can be changed from
/yarpad.
When the application runs behind another edge proxy, an ingress controller, or a cloud gateway, configure trusted proxies narrowly. Otherwise the application cannot reliably distinguish the original client address from an untrusted forwarded header.
For production, keep the console private, require HTTPS, use strong authentication, monitor access logs, and back up the SQLite database or exported profiles.
When should you use the library instead of YARPad Proxy?
Use the YARPad library when the proxy is part of an application you own and you need any of the following:
- Custom middleware in the proxy pipeline
- Application services through dependency injection
- Custom transforms or policies
- Host-specific authentication or authorization behavior
- Additional endpoints alongside the proxy
- Integration with an existing ASP.NET Core system
Use the standalone YARPad Proxy container when you want YARP and the same management experience but do not need a custom host application.
Current boundaries
YARPad is intentionally not a replacement for every configuration or deployment model.
The current version:
- Requires .NET 10 for library integration.
- Uses SQLite for its management database.
- Supports single-instance deployments rather than a clustered management plane.
- Uses YARPad’s own profile format for import and export, not standard YARP
appsettings.jsonconfiguration. - Expects the management UI to be kept off the public internet.
If your primary requirements are Kubernetes service discovery, GitOps-only configuration, or a highly available distributed control plane, a different tool may be a better fit.
If your requirement is “keep the flexibility of an ASP.NET Core YARP application, but make it operable by humans,” YARPad is designed for exactly that gap.
Try it
YARPad is open source under the Apache 2.0 license:
The quickest experiment is a new ASP.NET Core project, the CodingCell.YARPad and Yarp.ReverseProxy packages, and the short Program.cs shown above. From there, create two profiles and try the workflow that matters most: clone, edit, validate, and activate—without restarting the proxy.


