Post ApBPYPK7kdcacPfhS4 by exerra@daedric.world
 (DIR) More posts by exerra@daedric.world
 (DIR) Post #ApBPEDtyVWNlP2oeVk by exerra@daedric.world
       2024-12-18T21:44:22.112Z
       
       0 likes, 0 repeats
       
       For the last couple of days I've been working on my own custom relay software to address some of the shortcomings of other relays. Shortcomings that I did not think of when hosting my own relay, but quickly realised once I started pitching it to other admins.Around a week or two ago I started hosting an whitelist-only relay aimed towards unifying the gaming instances and I quickly got asked whether the relay would relay everything or just certain hashtags, etc. The worry was that the content relayed, even though it comes from gaming instances, could be unfit for their instance (for example, political posts).That is why I started making a relay with module support. Modules can scan incoming messages and either reject them or allow them to go through. Also, I am experimenting with the ability to subscribe to other relays in order to, basically, proxy them but with module support built-in.Currently it does its job well in my testing. The module system works great, and as it is just a typescript file that is run with Bun.js, developing modules is quick and easy. Oh yeah, the relay is built with Elysia and Bun.js, so the performance should be great.This is more of a devlog, I need to finish up the built-in modules, make docs, etc. Then, I will drop a blog post and yada yada yada :)#devlog #buildinpublic #relay #activitypub
       
 (DIR) Post #ApBPYPK7kdcacPfhS4 by exerra@daedric.world
       2024-12-18T21:48:01.382Z
       
       0 likes, 0 repeats
       
       This is how modules look, just some simple exported variables and a function. Pretty simple!I toyed around with the modules a bit and made an OpenAI API compliant module which essentially asks the LLM model to determine if the message fits the rules & theme. Not very practical for big relays, but if you have a small relay and self host a model with ollama, could be useful!
       
 (DIR) Post #ApBPn7L2tyFlBN7JVQ by exerra@daedric.world
       2024-12-18T21:50:43.266Z
       
       0 likes, 0 repeats
       
       Oh and I plan to include a keyword checker module and a URL scanner module (that checks if a URL has been classified as malicious) in the relay by default for extra security.