alt.hn

3/3/2026 at 2:26:44 AM

Show HN: Giggles – A batteries-included React framework for TUIs

https://github.com/zion-off/giggles

by ajz317

3/3/2026 at 2:52:44 AM

A good toolkit for Ink is much needed, although Ink itself leaves something to be desired, especially compared to https://github.com/anomalyco/opentui (bun only, used by opencode)

I tried to build a Viewport component in Ink, but after scrolling to the bottom of a list of 150 rows, Ink started to render things strangely - the top line overflowed the box bounds, and a few blank lines appeared inside the viewport. I couldn't figure out where the bug was in Ink, I somewhat suspect floating point issues somewhere in the native Yoga<->JS layer?

by jitl

3/3/2026 at 3:10:34 AM

thank you !! : ) ive seen the opentui docs and it seems extremely feature rich. ill make something w it someday.

also, ive had the exact same issue w ink!! i forgot how i solved it though -- something with a Box prop (flexGrow?)

by ajz317

3/3/2026 at 4:04:28 AM

The fact that there are no tests is a non-starter for me. AI mostly writes them for you now, so there really is no excuse to not have them, especially for a library that people are going to depend on.

by latchkey

3/3/2026 at 4:40:11 AM

ive been running tests from a gitignored folder (see the play/record commands in the package.json) since setting up thoughtful testing infra thats not just mocking everything is going to take an evening or two. but it's on the roadmap and will be added soon !!

by ajz317

3/3/2026 at 5:11:16 PM

B-but, why?? Bubbletea, its inspiration, follows up on the philosophy of TUIs, fast, direct, lightweight in resources, bonus for being a small binary. I can't wrap my head around why one choose React to make a TUI, seems like making a dune buggy out of a Hummer.

I know the standard answer, "why not?", but I'm struggling to figure the expected use cases.

by ASalazarMX

3/3/2026 at 3:22:03 AM

A random arse thought, but I have never seen the phrase batteries-included a week ago, and now I've seen it like half a dozen times. Am I seriously out of date with the lingo of web dev, or did this word suddenly explode in popularity?

by Trannosaur

3/3/2026 at 4:23:48 AM

It's been popular for at least 20 years, as far as I know.

by stavros

3/3/2026 at 3:23:47 AM

https://python-basics-tutorial.readthedocs.io/en/latest/libs...

by tartoran

3/3/2026 at 5:05:35 PM

I think this is the intended reference, since Python made that common phrase popular in programming.

TBH, I haven't seen "batteries included" referencing actual batteries in the package for many years, I suspect because rechargeable batteries are usually expected these days. I've seen remotes with batteries included, but the packages don't botheer to mention that fact.

by ASalazarMX