u/Spiritual-Slice-6150in r/Clojure • Recommends
Cross-rendering TUI to Web using charm.clj + Hyperlith
A TUI that cross-renders to the Web.
Two approaches:
1. "React approach": See fulcro-tui. Babashka is your browser.
2. "Haxy approach": See README in xit-vcs/haxy (uses Zig + WebAssembly). See this link to this video by Zach and thread on Clojurians slack.
I like the Haxy approach, but want a nice DSL to dynamically create apps. Haxy is tied to its particular use case, not sure if it will be a general purpose framework for app that have nothing to do with verson control. Charm.clj has a nice DSL based on Elm!
In this video, I replace some bits of charm.clj so that it cross-renders the same app to the Web with Hyperlith / Datastar. Biff2 \+…