Hacker News

MachinaLayout.JS

by @YuechenLi

I got tired of Codex/Claude not being able to write good UI reliably, so I made a TypeScript library toolbox to help with that. https://github.com/yuechen-li-dev/MachinaLayout.JS Pretty much just SwiftUI-like layout/style in TypeScript with a bunch of utility tools from other languages I like, like Rust's payload enums, table helpers, LINQ-like queries, state management, etc. It's framework neutral so it works with React, React Native, and Vue right now. Everything is just plain TypeScript that compiles to the DOM, so no HTML or CSS needed for most normal web apps, they can all be written in plain .ts or tsx files.

Discover more builders

Builderlust is an endless, joyful scroll of real projects people are shipping right now. Get the app to keep finding your next spark of inspiration.

📱 Coming soon to iOS & AndroidOpen in the app