TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Nimwave – build TUIs for the terminal, web, and desktop

195 pointsby sekaoalmost 3 years ago

9 comments

elcritchalmost 3 years ago
This looks great for those small TUI’s that you think “gosh I’d like a simple CLI to automate this”! Being able to produce small binaries or self contained static ones with a few compile flags is really great.<p>As someone working on a Nim widget library (and funny enough currently stuck on fixing up the text editing story..) I find this doubly interesting. Now I kinda want to see if I could plug this into a widget for it for kicks. Hmmm…<p>@sekao you might find this macro I split out recently useful if you want to tryout a Kivy-like api (gui things inspired my need for it): <a href="https:&#x2F;&#x2F;github.com&#x2F;elcritch&#x2F;cdecl&#x2F;blob&#x2F;ee3b06f52e666b2a854eb79a47a50c62b5f2b1d7&#x2F;tests&#x2F;testApplies.nim#L64" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;elcritch&#x2F;cdecl&#x2F;blob&#x2F;ee3b06f52e666b2a854eb...</a><p>I also found that `useState` pattern from React with the variant library a handy pattern: <a href="https:&#x2F;&#x2F;github.com&#x2F;yglukhov&#x2F;variant" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;yglukhov&#x2F;variant</a> and it’s pretty simple to do if you already have a context object: <a href="https:&#x2F;&#x2F;github.com&#x2F;elcritch&#x2F;fidgetty&#x2F;blob&#x2F;f65876af34797f308b8d367124c76d8305daa158&#x2F;src&#x2F;fidgetty&#x2F;widgets.nim#L247" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;elcritch&#x2F;fidgetty&#x2F;blob&#x2F;f65876af34797f308b...</a><p>Sorry for the link spamming, I just find the overlap of UI state management without OO interesting!
mordechai9000almost 3 years ago
I&#x27;ve been toying with the idea of setting aside some time to learn Nim. I&#x27;m really excited about the goals and philosophy of Nim, but I&#x27;ll have to spend some time getting my hand dirty to even know enough to have an opinion on it. This looks like a fun project to play with once I get the basics down.
narimiranalmost 3 years ago
Make sure to check other projects by the same author, some real gems there IMO (and I&#x27;m not even including there his most popular project - Vim^3 [0] :D). This talk [1] from NimConf 2021 is a good place to start:<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;oakes&#x2F;vim_cubed" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;oakes&#x2F;vim_cubed</a><p>[1] <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=cBqBfPRWla8&amp;list=PLxLdEZg8DRwRXNrY7yyGU0-g_GRSyRGKo&amp;index=12" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=cBqBfPRWla8&amp;list=PLxLdEZg8DR...</a>
capablewebalmost 3 years ago
Maybe I&#x27;m blind, but since it mentions TUI for the &quot;web&quot;, I&#x27;d expect a web example where I can see it working for myself. Is there one of those deployed somewhere? If not, definitely should, would make any demo 100% cooler.
评论 #31795489 未加载
inawarministeralmost 3 years ago
Been playing around with Nim for a while. Awesome to see this! Might as well try to get some adventure games running as so can be played directly on the three platforms...<p>Does the web includes mobile browsers? Let me try...
haskellandchillalmost 3 years ago
I&#x27;m interested in building a good text UI for terminal, for a REPL language kind of system, but also showing interactive state, and being able to manipulate expressions, etc. Any cool tools?
评论 #31792448 未加载
malkiaalmost 3 years ago
Looks cool! Recently I&#x27;ve found this one too - <a href="https:&#x2F;&#x2F;github.com&#x2F;ArthurSonzogni&#x2F;FTXUI" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ArthurSonzogni&#x2F;FTXUI</a>
jiehongalmost 3 years ago
Pretty cool!<p>How is the accessibility of such TUIs on different display tech?
评论 #31790678 未加载
julianbusealmost 3 years ago
I&#x27;ve been trying to roll this myself, so it&#x27;s pretty cool that someone build this.
评论 #31791441 未加载