Lgd.Yarp.Studio 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Lgd.Yarp.Studio --version 1.0.0
                    
NuGet\Install-Package Lgd.Yarp.Studio -Version 1.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="Lgd.Yarp.Studio" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Lgd.Yarp.Studio" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Lgd.Yarp.Studio" />
                    
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 Lgd.Yarp.Studio --version 1.0.0
                    
#r "nuget: Lgd.Yarp.Studio, 1.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 Lgd.Yarp.Studio@1.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=Lgd.Yarp.Studio&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Lgd.Yarp.Studio&version=1.0.0
                    
Install as a Cake Tool

YARP Studio

NuGet Version License

A modern, visual administrative dashboard and designer for YARP (Yet Another Reverse Proxy). YARP Studio allows developers and administrators to design, manage, and monitor reverse proxy configurations (routes, clusters, destinations) dynamically through a web interface, persisting changes to a lightweight embedded database with zero-downtime hot-reloads.


๐Ÿ—๏ธ Architecture Overview

YARP Studio is comprised of a backend engine library (Yarp.Studio.Core), an example host/gateway application (Playground.Gateway), and a frontend dashboard UI (yarp-studio-ui).

graph TD
    User([Administrator]) <--> |Manages UI| UI[yarp-studio-ui React SPA]
    
    subgraph Playground.Gateway [Your Gateway Host App]
        UI <--> |HTTP API /yarp-designer/api| API[VisualDesignerApplicationExtensions Middleware]
        API <--> |Reads/Writes Config| Provider[VisualProxyConfigProvider]
        Provider <--> |Signals Hot-Reload| MemoryConfig[VisualMemoryConfig]
        Provider <--> |Reads/Writes DB| LiteDB[(LiteDB: yarp-studio.db)]
        MemoryConfig <--> |Injects Live Config| YARP[YARP Reverse Proxy Engine]
    end
    
    YARP <--> |Proxies Traffic| Downstream[Downstream Services]

Core Architecture Components

  1. Backend Engine (Yarp.Studio.Core):
    • VisualProxyConfigProvider: Custom implementation of YARP's IProxyConfigProvider. Loads proxy state from LiteDB on startup and signals change tokens to swap configuration dynamically at runtime.
    • VisualMemoryConfig: Represents the live in-memory IProxyConfig being actively evaluated by YARP.
    • UseYarpVisualDashboard Middleware: Exposes configuration, validation, and status APIs, serving the React UI directly from embedded assets in production or forwarding requests to Vite in development.
  2. Frontend UI (yarp-studio-ui):
    • Built with React 19, Vite, TypeScript, shadcn/ui, and Tailwind CSS.
    • Accessible, high-fidelity dashboard for visual proxy engineering.
  3. Storage Engine (LiteDB):
    • Uses a serverless, embedded NoSQL database (yarp-studio.db) for lightweight, single-file persistence of proxy configurations across restarts.

โœจ Features

  • ๐ŸŒ Live Topology Visualizer: A complete visual representation of your proxy routing pathways. Instantly trace traffic flow from public endpoints (routes) through authentication, CORS, and request/path transforms, to the target backend clusters. Hover over a route to inspect its active pipeline stages in real-time.
  • ๐Ÿ›ฃ๏ธ Route Builder & Editor: Define routing matchers (paths, methods, host headers), configure policies (Authorization, CORS), add powerful path/header transforms, and map routes to backend clusters.
  • ๐Ÿ–ฅ๏ธ Cluster & Destination Manager: Configure target destination server pools, load-balancing policies (RoundRobin, PowerOfTwoChoices, LeastRequests, Random, First), active/passive health checks, and manage destination addresses. Real-time active status reporting updates the visual dashboard when destinations go online/offline.
  • ๐Ÿงช Routing Playground: Test and dry-run routes directly in the web UI. Enter simulated request parameters (HTTP Method, Path, Host Header) to run routing traces, verifying which route is matched, which transformations are executed, and which backend destinations receive the traffic.
  • โšก Hot-Reload Integration: Config saves run built-in YARP validation checks first. Once validated, configuration changes apply immediately to live traffic pipelines without requiring application restarts.

๐Ÿš€ Getting Started

1. Installation

Install the NuGet package to your ASP.NET Core gateway host project:

dotnet add package Yarp.Studio.Core

2. Configure Services & Middleware

Register YARP Studio in your Program.cs file:

using Yarp.Studio.Core.Extensions;

var builder = WebApplication.CreateBuilder(args);

// Add YARP and integrate YARP Studio configuration provider
builder.Services.AddReverseProxy()
                .AddYarpStudio();

var app = builder.Build();

app.UseHttpsRedirection();

// Map visual designer dashboard REST APIs and UI files
// By default, the UI is served at `/yarp-designer`
app.UseYarpVisualDashboard();

// Map active proxy routes
app.MapReverseProxy();

app.Run();

3. Run and Access Dashboard

Start your gateway application and navigate to:

http://localhost:<port>/yarp-designer

The application will automatically create the embedded yarp-studio.db database in your runtime directory and launch the dashboard.


๐Ÿ› ๏ธ Local Development

To run, inspect, or build YARP Studio from source code:

Prerequisites

  • .NET 10.0 SDK or higher
  • Node.js (v18+) and npm

Step-by-Step Running Guide

1. Start the React Frontend Dev Server

Navigate to the UI project directory, install packages, and boot Vite's dev server:

cd yarp-studio-ui/yarp-studio-ui
npm install
npm run dev

By default, the Vite dev server spins up at http://localhost:5173.

2. Run the Gateway Host (Backend)

Open a new terminal session, navigate to the gateway host app, and run it:

cd Playground.Gateway
dotnet run

Open https://localhost:<port>/yarp-designer in your browser.

In Development Mode, the ASP.NET Core middleware detects that the Vite dev server is running on port 5173 and automatically forwards all UI static resource requests to it. API requests are routed straight into the local .NET backend.


Product Compatible and additional computed target framework versions.
.NET 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
1.0.1 185 6/23/2026
1.0.0 140 6/16/2026