Hey!
(PS. no idea if this is the right category for this, sorry in advance if it isn’t )
Last month I made a framework for making websocket servers easily (Tamnoon. I originally wanted to make a js library to integrate it easily with other frameworks, but three days ago I decided against it, and to instead make it a standalone framework.
Sooo I just made it. I still haven’t written good documentation or anything, but it’s usable (at least I hope lol). In essence, it allows you to write HTML components using HEEx and have them trigger events on the server and sync with variables dynamically. Don’t wanna make this too long so if you want to know more check out the docs.
However, currently it doesn’t really support https and wss and all that, and I don’t really want to get into that tbh. But I don’t want it to be just a “liveview alternative” or a “worse liveview” as it admittedly is now.
I have thought about two ideas for where I want to take it, but I’m not sure and figured I’ll ask on here. The options I thought about are:
-
Make it a Phoenix extension (if that is even allowed? not sure about that tbh). This will allow it to be actually usable in production and likely more stable, but the only reason to use it over Liveview would be for simplicity (aka it will stay a “worse liveview” for 90% of use cases).
-
Go the direction of making it specifically for usage with wx, and make it basically intended to be used for making local apps (like with Electronjs apps). This would basically solve the issue of not using https and wss (I think?) and pretty much give it a niche. I can see that being a good option for making tools that require a GUI (for example a package like pyplot) with Elixir, especially considering the simplicity of the framework.
What do you think? I would also love to hear some other ideas if you have any too
Have a nice day!