Hi HN,

I've worked with React Native for years, but I've never been fully satisfied with it. That's why I'm building Hozo, an open-source UI compiler written in Rust.

In short, Hozo is yet another cross-platform UI framework like React Native Web, Tamagui, React Strict DOM, and Lynx.

The idea is to share source code, not necessarily runtime abstractions. For example, a Heading compiles to an h2 on the web and a Text with the header role on iOS and Android.

* Web: Semantic HTML and CSS without react-native-web.

* Mobile: Standard React Native components and precomputed StyleSheets.

* Styling: Tailwind CSS and StyleX with CSS-like text inheritance on React Native.

* A11y: First-class support with platform-specific semantics and compile-time ARIA validation.

* Guardrails: Compile-time diagnostics for both humans and AI agents.

Hozo supports SVG, 2D Canvas, Three.js, and WebView. It works with Vite, Next.js, Astro (including zero-JS static components), Metro/Expo, TanStack Start, Tauri, and Storybook. There's also a component library with an optional shadcn mode, and migration tooling for existing RN projects.

It's still early, though. I'm curious what others think of Hozo.

Docs: https://iray-tno.github.io/hozo/docs/


Comments URL: https://news.ycombinator.com/item?id=50652661

Points: 1

# Comments: 0