← All projects
Project record1 mention
Originally shared on Hacker News

MachinaLayout.JS

A framework-neutral TypeScript UI library providing SwiftUI-like layout and styling along with utility tools inspired by other languages, such as Rust-style payload enums, table helpers, LINQ-like queries, and state management. It works with React, React Native, and Vue, and compiles plain .ts/.tsx files directly to the DOM so most web apps need no HTML or CSS.

Last shared
01 / The problem

What it addresses

The author was frustrated that AI coding tools like Codex and Claude cannot reliably write good UI.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. MachinaLayout.JS

    A framework-neutral TypeScript UI library providing SwiftUI-like layout and styling along with utility tools inspired by other languages, such as Rust-style payload enums, table helpers, LINQ-like queries, and state management. It works with React, React Native, and Vue, and compiles plain .ts/.tsx files directly to the DOM so most web apps need no HTML or CSS.

    Problem: The author was frustrated that AI coding tools like Codex and Claude cannot reliably write good UI.

    Posted by @YuechenLi · Original source ↗

    Source text · @YuechenLi · · Source ↗

    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.