Oddbean new post about | logout
 GM

A standard API for spinning up relays (and blossom media server, even ecash mints) is sorely needed. I'd like for new groups in chachi to be their own relay by default, optionally being hosted on a public relay.

My skillset is more on the frontend side and I have a huge backlog so I'll need help here. Who can help me make it happen?

cc nostr:nprofile1qqs8eseg5zxak2hal8umuaa7laxgxjyll9uhyxp86c522shn9gj8crspz9mhxue69uhkummnw3ezuamfdejj7qgjwaehxw309ahx7um5wgerztnrdakj7qgwwaehxw309ahx7uewd3hkctc58hv2s nostr:nprofile1qqsw9n8heusyq0el9f99tveg7r0rhcu9tznatuekxt764m78ymqu36cpr9mhxue69uhhyetvv9ujuat50phjummwv5hkx6rpwsq32amnwvaz7tmxwfjkuueww468smewdahx2tcpz4mhxue69uhhyetvv9ujuat50phjummwv5hs9smu6e 
 I built this before but nobody was willing to pay 😭 
 :Sadge:  
 new api for relay mgmt.

its in queue for 'very next thing' to work on.  i already have an api, but, i think its auth is probably too hard, so im working on using nip98 auth for a new api endpoint modeled after https://github.com/nostr-protocol/nips/pull/1325

obviously this nip, doesnt include the inception of creating a relay, but you get the idea..  thoughts?

also if u want to use rt api *now (and then get more standard later), i can show you how to do so. 
 so many of those API calls are things you can do with a reverse proxy instead and not clutter up your relay 
 also, there is this API transport called "SSH" and it works with an api called Unix Shell. 
 the acl mgmt?  i was curious if youd seen this nip or were thinking of implementing.. 
 yeah i just bumped into it yesterday for the first time and most of it is really muddling domains, and not using existing data

i already have an access whitelist control that simply uses protocol follow and mute events to construct the list for access control, for example, there is no need to have a second database for this, you see what i mean?

IP blocking is a different thing but again it would be simpler to just make a shim that filters this access and configure it through its own interface, this is another API call i see in there, again, it doesn't honestly belong in the API of a relay because it can be more efficiently done at the network layer, same as access control can be done using nostr's event types 
 regarding the IP access control list, you may have heard of a little thing called "fail2ban" which is the kind of IP address rate limit/access control system i would recommend, if a relay really is getting that much unwanted traffic there are dedicated tools and ratelimiters for this that shield the relay 
 yeah the OP was wanting create relay api.  which a relay itself, cant really have.

thanks for the explanation of this list updater/etc, gives me some stuff to think about.  i have always been running essentially two apis.  one over nostr events, and one http.  so i think about it a lot 😅 
 Yes, I want to use it! Would be cool if ppl can create relays from chachi.