If you're already running weechat, you might be interested in checking out Glowing Bear which accomplishes a very similar goal, but without reinventing the weel - it simply connects to you existing weechat (probably running on a server somewhere).
https://github.com/glowing-bear/glowing-bear
https://latest.glowing-bear.org
One of the biggest advantages of this approach is that you get the whole functionality of a mature IRC client. You also don't have to trust a third party with your data, as you're connecting to your own client, no middleman involved. It's just a bunch of static files.