DEV Community

amr swalha
amr swalha

Posted on

YA-RP-UI A .NET Package to help you visualize and see incoming traffic into YARP

TL;DR

Go and test the tool as a Docker image; use this Docker Compose and see it in live action. You will have Yarp as the proxy and YA-RP-UI as the management ui. Also, you can embed it into an existing application as a NuGet package. See the docs at yarp ui repo

Let's see this traffic!

I used Yarp a lot, and I have it in multiple production applications. But one thing that always felt missing is that I have to juggle through the JSON appsettings file and make sure not to mess anything up. And you have routes that you even forgot about at all! And you can not see the incoming traffic directly, so you have to add Serilog or a log txt file [Ugh!] to see what is actually happening.

So, I said, why don't we work this out and have our loyal friend GLM 5.2 [Note: I bought the first subscription at $180/year while it was cheap!] and have it help me create a little dashboard + editor that will help me with using Yarp and make it an easy life.

YA-RP-UI

Is a nice little NuGet package that you can add to your existing project or totally use it as a standalone version of the package. It will allow you to do the following:

See Route Map

Cool route map

This allows you to see a visual representation of the routes you defined in the appsettings. You can see which cluster the route goes to.

CRUD Routes and Clusters
Easy edits of clusters and routes
So long as you RDP into the server and edit the appsettings and hope everything works. You will have a nice editor that will allow you to edit and see all the routes and clusters in one place.

Logs of Traffic

ISee what happens and who is calling

You will be able to visualize and see the endpoints and their performance, and to keep the logs, we added a nice feature for auto-cleanup.

Notes

This project is still under active development and has not been tested for production, so please use it with caution. Happy to receive feedback and contributions.

Top comments (0)