Yes, I have cobbled together a very raw, but functional proxy here if you'd like to see/audit/play with: https://github.com/relaytools/interceptor https://github.com/relaytools/interceptor-proxy Decided that I don't mind pushing ugly code early and often as I work through what it means to have auth enabled.. (and the various other relay modes it will eventually be supporting, like just protecting DMs or etc).
Doesn't look too ugly to me
It's not too bad (yet) haha. Only 500 lines. 🦜🏴☠️
you can slim it down a lot... but it is a process in a week or so i will be confident to say "use my library" honestly i haven't even thought much about after i finish it, it's my pet project lol... my replicatr! my nostr library... it does all the things, it slices, it auths, it dices, it stores the files, it processes the filters