logoalt Hacker News

nicoburnstoday at 2:51 PM5 repliesview on HN

I maintain Taffy: AMA.

I am currently in the process of building a wider browser engine / GUI toolkit on top of it (https://github.com/dioxuslabs/blitz). As part of that I am implementing a lot of the messier parts of CSS layout (floats, etc), and also grinding on fixing all the WPT tests which we track here: https://blitz.is/status/wpt/css/css-flexbox.

The vision is a complete standalone implementation of the web layout algorithms that can be easily embedded (with individual algorithms enabled/disabled on a pay what you use basis), and which can also be part of a modular ecosystem of browser engine components that make it easier for people to create new browser engines.

Beyond Blitz, some notable users are:

- Servo which uses it only for CSS Grid

- Zed which uses it via it's GPUI toolkit.


Replies

actsasbuffoontoday at 3:42 PM

I used this for an internal project I can’t talk about, but it was a lifesaver. It allowed me to drop a really powerful layout system into a project that wasn’t doing traditional UI at all.

The results have been fantastic. Thank you for this awesome library. I love it.

kkukshteltoday at 3:33 PM

Thanks for all this! I used Blitz a while ago for a product research spike around composing HTML to be rendered directly in a terminal with kitty or iterm's image protocol:

https://www.npmjs.com/package/kittyhtml

https://github.com/kkukshtel/kittyhtml

mrectoday at 4:00 PM

I think Bevy uses it too, right?

show 1 reply
timw4mailtoday at 4:00 PM

Floats? A fan of pain, are we?

show 1 reply
fschuetttoday at 3:04 PM

I used it in https://fschutt.github.io/printpdf for the HTML-to-PDF layout, just as a note. It is very useful, thanks for your work. Good luck on Blitz.