I remember reading somewhere about a self hosted application that would work like a proxy. But not http/https like NPM but all the network traffic.
I may be misremembering but what caught my attention at the time was the possibility to log communication packets. It was months ago and I ended up forgetting about it.
My use case would be monitoring communication with a device I’m developing an app for.
I use Yattee to connect to a Invidious instance.
Third party YouTube frontends will not be accepted in the App Store. Maybe with sideloading this can change.