Out of all the apps and libraries I've built I'm probably most proud of the applesauce-relay package.
In ~1.5k lines of code I've managed to build the cleanest API for connecting to relays, and its all stream based so its super flexible.
Also did I mention it also supports client side negentrapy sync? ( although I haven't found a use for it yet 😥 )