Just out of curiosity: why deno and not good old nodejs?
Okay Nostrbros, I created a really good system for strfry policy management. See updated readme here: https://gitlab.com/soapbox-pub/strfry-policies
I have IP rate limiting and anti-duplication running on relay.mostr.pub now and it’s working to stop the spammers.
Discussion
Deno is superior. It implements web standard APIs like SubtleCrypto and Fetch, making your code compatible with web browsers. It's also significantly faster than Node.js. It's a rewrite in Rust created by the author of Node.js to fix all the problems he sees with Node. Oh also, you can import stuff by URL. It's decentralized coding! The only reason to use Node.js is if you're relying on legacy code.
For anyone running Node.js who wants to use the strfry-policies code directly (as a library), I'm also transpiling it to a npm package with polyfills: https://www.npmjs.com/package/strfry-policies