frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: CSS-in-JS Arena Bamboo, StyleX and Panda on Pixel-Identical Apps

https://github.com/gajus/css-in-js-arena
1•gajus•39m ago
A little context, I've been working on Contra for the last 6 years. It's a marketplace-network – an application that's comparable to the likes of LinkedIn, UpWork, and similar in terms of its surface area. That's hundreds of routes, thousands of components, and tens of thousands of styles.

Over the last year, we have been obsessed with performance. We have optimized every layer of our infrastructure to the point where profiling the application increasingly started to surface bottlenecks in client-side (bundle size, and metrics like TBT, LCP, and INP). That's where CSS-in-JS comes in.

6 years ago, we started with styled-components. Then zero-runtime alternatives emerged and we started to experiment with them, eventually landing on Panda CSS. Panda took us a long way, but... they aren't _actually_ zero-runtime. Panda extracts CSS at build time, but it uses ~15KB runtime to map those style objects at runtime. This overhead surfaced repeatedly when profiling pages with lots of components (server-side and client-side).

That's where I ended up writing Bamboo to solve this.

Bamboo folds styles at build-time achieving _near_ zero-runtime (0.5KB vs 15 KB). If you write:

<div className={css({ fontSize: 'lg', fontWeight: 'bold' })}>Title</div>

it becomes:

<div className="fs_lg fw_bold">Title</div>

at build time.

If the variant is dynamic, then bundle is inlined with pre-computed map of classes.

<span className={pick(status, { ok: "d_inline-flex px_8px bg_successSoft c_success", warn: "d_inline-flex px_8px bg_warningSoft c_warning", err: "d_inline-flex px_8px bg_dangerSoft c_danger", })} />

That's the main idea behind Bamboo.

Thanks to folding, we were able to improve our server-side and client-side performance.

I built CSS-in-JS Arena as a sanity benchmark to track how we compare to Panda, but also to any other emerging frameworks.

Comments

gajus•23m ago
A few other things to callout:

* Bamboo started as a fork of Panda. The vast majority of the codebase has been refactored. However, their test suite has been incredibly useful to identify all the edge cases.

* Bamboo's API is a subset of Panda. One of Bamboo goals has been to introduce more consistency to how we write styles (without introducing lint rules). Bamboo dropped JSX factories, template literals and style props.

* Strict API is also what allows us fold 100% of styles.

* Strict API is also what allows to prune unused styles.

* Bamboo resolution is _strict_. Missing tokens will produce build error.

What Guidance Do We Give Junior Colleagues and Peers on Use of AI?

https://hedgehoglibrarian.com/2026/05/04/what-guidance-do-we-give-junior-colleagues-peers-on-use-...
1•adrianhoward•12s ago•0 comments

PostLore changed my product stages distribution as a solo founder

https://postlore.com
1•rgyams•28s ago•1 comments

Show HN: Tabtwinsy – the same tabs in every browser window

https://tynktank.com/tabtwinsy.html
1•delbertty•1m ago•0 comments

Finger: A Protocol from 1977 Is Still Delivering Malware in 2026

https://artemissecurity.com/attack-stories/finger-protocol-python-rat-delivery/
2•jonathandeamer•3m ago•0 comments

Show HN: ArtifactSweep – free disk space from project artifacts(CLI and desktop)

https://kksrini89.github.io/artifactsweep/
1•SrinivasanKK•3m ago•0 comments

Star Citizen Official Livestream Goes Off the Rails

https://twistedvoxel.com/star-citizen-livestream-problematic-demo-tension-between-developers/
2•qsi•4m ago•0 comments

Show HN: TurnKeeper – Fair, explainable team rotations for Slack (no AI)

https://getturnkeeper.com/
1•adriankurz•5m ago•0 comments

Code-native generation of highly programmable 3D assets (2026)

https://arxiv.org/abs/2607.22738
1•baigy•6m ago•1 comments

I used to be excited about new tech, but I rarely am anymore

https://82mhz.net/posts/2026/08/i-used-to-be-excited-about-new-tech-but-i-rarely-am-anymore/
4•wrxd•6m ago•0 comments

Show HN: Termaxa – my agent gate passed its security rig, failed a two-user test

https://github.com/termaxa/termaxa
1•devdoc83•6m ago•1 comments

Ask HN: Science Fiction. Some AI as world leader. Would you vote it?

1•ewjloop•8m ago•0 comments

The National Park Service Is Using Flock. Rangers Are Pissed

https://www.404media.co/the-national-park-service-is-using-flock-rangers-are-pissed/
4•pavel_lishin•9m ago•0 comments

Show HN: Tracelint – a linter for AI agent traces, no LLM judge

https://github.com/AshwinUgale/tracelint
1•Ashwin1121•11m ago•0 comments

PgDog vs. RDS Proxy

https://pgdog.dev/blog/pgdog-vs-rds-proxy
1•levkk•11m ago•0 comments

The coolest anti-surveillance tools at Defcon [video]

https://www.youtube.com/watch?v=-2uAsJ5EPAw
3•neom•11m ago•0 comments

Show HN: I benchmarked LLMs on predicting knife steel properties

https://github.com/Steel-predictor-project/steel-llm-eval
1•p-s-v•11m ago•0 comments

The Wrong Kind of American

https://www.theatlantic.com/magazine/2026/10/trump-white-house-transgender-mike-pence/688284/
3•_tk_•11m ago•0 comments

How to code without AI [video]

https://www.youtube.com/watch?v=aFMVGx1Gsoc
1•indigodaddy•12m ago•0 comments

California's New Tire Rule Could Wipe Out 70% of What's on the Shelf

https://theautowire.com/2026/08/18/californias-new-tire-rule-could-wipe-out-70-of-whats-on-the-sh...
1•hnburnsy•13m ago•0 comments

A dashboard and UI for running and auto-fixing configs on the DGX Spark

https://enverge.substack.com/p/spark-studio-the-dashboard-that-fixes
1•tudorizer•13m ago•2 comments

JPEG XL converter and .jxl viewer

https://jpegxlconvert.com/en/
2•El-Necora•14m ago•0 comments

Theban tomb reveals how Egyptian burial trends evolved in time

https://arstechnica.com/science/2026/08/theban-tomb-reveals-how-egyptian-burial-trends-evolved-in...
2•Brajeshwar•14m ago•0 comments

Training Leaves Traces: Centered Residual Signatures for LM Lineage Verification

https://arxiv.org/abs/2608.14929
1•singh96aman•16m ago•0 comments

Today I realized you can't star an achived repo in GitHub anymore

2•dclavijo•17m ago•0 comments

OpenDesk Edu – Open-Source Digital Workplace for Universities

https://opendesk-edu.org/en
2•graphwi-ai•18m ago•0 comments

A VCR to test your backend – record/replay K8s env as deterministic sandboxes

https://github.com/keploy/keploy
1•keploy•18m ago•0 comments

Nature Is Healing

https://daringfireball.net/linked/2026/08/12/nature-is-healing
1•vintagedave•18m ago•0 comments

Gram – A code editor for humanoid apes and grumpy toads

https://gram-editor.com/
2•indigodaddy•19m ago•0 comments

Business is short on decisions, not dashboards

https://lordly.io
1•eduardosully•19m ago•0 comments

An Engineer's Old Cooking Trick Is Going Viral, Divides the Internet

https://pleated-jeans.com/2026/08/15/engineers-forgotten-recipe-hack-viral-divides-internet/
1•alexandrehtrb•20m ago•1 comments