5 ms·
It just so happens that I’ve built one already: TUI4J (Terminal User Interface for Java). https://github.com/WilliamAGH/tui4j https://github.com/WilliamAGH/tui
by wcallahan 9mo ago
It just so happens that I’ve built one already: TUI4J (Terminal User Interface for Java).
https://github.com/WilliamAGH/tui4j https://github.com/WilliamAGH/tui4j
It combines a port of BubbleTea from Go, and Textual and other inspired rewrites of other functionality.
It’s a fork of someone’s earlier work that I sought to expand/stabilize.
I built a beautifully simple LLM chat interface with full dialog windows, animations, and full support for keyboard and mouse interactivity parity, showing what this Java library is capable of.
Example chat app: https://github.com/WilliamAGH/brief https://github.com/WilliamAGH/brief
Would love to see others build similar things with it!
- dundarious 9mo agoI had no idea what brief was until I read the env var api key docs in the subdirectory. I think you should not lead with "it's a tui4j app!" and "it's terminal chat!". It's a terminal OpenAI ChatGPT interface. Screenshot wouldn't hurt either, given it's an advertisement for the presentation library.
- wcallahan 9mo agoGreat ideas for both :) I wasn’t expecting the main topic of what I’ve been building to appear on the cover of hacker news today, so I was caught a bit unprepared, but they were definitely on the todo list next!
- maxandersen 9mo agocool - you've hidden that well as I spent a lot of time searching for these. Will definitely check it out. ...where is the jar for brief? :)
- maxandersen 9mo agoah - tui4j is continuation of latte. Cool - now I grok why it looked similar. cool!
- wcallahan 9mo agoHope you enjoy tui4j and brief!
- wcallahan 9mo agoI made some tweaks to the Github releases config, you should be able to do this now as well: curl -L -o brief.zip https://github.com/WilliamAGH/brief/releases/latest/download/brief.zip https://github.com/WilliamAGH/brief/releases/latest/download... unzip brief.zip cd brief-*/ ./bin/brief
- maxandersen 9mo agoCool - but I really was hoping for a maven coordinate or a .jar since then I could run it directly with jbang :)