Show HN: A backend agnostic Ruby framework for building reactive desktop apps

codeberg.org

92 points by zero-st4rs 4 days ago


For a year or two I've been building a UI library with the aim of making desktop applications fun and easy to write.

It is currently written in C/Ruby and uses a custom tree sitter grammar to describe templates.

Features include: composable UI components, template directives, event and prop handling, slots, styles and automation capabilities baked in.

One of the goals of the project is privileging easy to write custom components via a drawing API over providing a fixed set of components.

At the time of this writing it should install on Windows, Mac, and Linux, but sometimes it is hard to test the install on all platforms.

I'd love to hear any feedback or suggestions on the project. It is still in an early stage, but it would be great to hear thoughts.

Docs are here: https://hokusai.skinnyjames.net/ Repo is here: https://codeberg.org/skinnyjames/hokusai

Licensed under the PPL

viraptor - 4 days ago

Could you add some information about licence? Currently I don't know what is it compatible with and it's not listed on OSI. So unless someone's up for reading lots of legalese, it's not easy to use/publish.

omneity - 4 days ago

This is reminding me a lot of shoes.rb (in a good way)

Awesome work!

- 4 days ago
[deleted]
xfalcox - 4 days ago

This looks super cool, exactly what I've been wanting to create some useful widgets! Thanks for sharing!

jenadine - 4 days ago

First time I hear about "copyfarleft license".

I wonder what that means in practice for such a library.

az09mugen - 4 days ago

Very cool project, and well thought with the choice of Raylib or SDL2. But since Raylib can compile to Android (https://github.com/raysan5/raylib/blob/master/examples/Makef...), do you think it could be difficult to add Android as a target platform ?

talljohnson1234 - a day ago

This looks really good.

whalesalad - 4 days ago

How would you compare this to RubyMotion?

zem - 4 days ago

looks neat, and definitely in the spiritual tradition of shoes! how does deployment work? can this be used to ship apps where the end user doesn't need to be aware of hokusai or ruby?

dismalaf - 4 days ago

Looks really cool. Just a curiosity though, why xmake instead of rake?

iraliaf - 4 days ago

this is really cool, thanks for contributing to the ruby ecosystem!! Do you have any example sites? I couldn't find a reference on your overview

samiv - 4 days ago

Cool.. I guess but I just wonder.. is writing the UIs in code an actual practice that people do these days?

I program (mostly) in C++ using Qt for my UIs and I just use the Qt Designer to visually drag and drop to build my UIs and the actual code gets generated by the tool.

Fast and simple.