Any Nostr relay’s architected around a middleware pattern?
Basically new commands or extensions could just be new middleware that’s optionally enabled.
Useful for things like whitelists, spam filtering, relay memberships, new relay commands (like AUTH or POW), caching, etc.