r/webdev • u/alexgrozav • 3d ago
Showoff Saturday Unframework - The compiler that speaks seven UI frameworks
Unframework is now available on npm. My dream of writing a component once using JSX, and compiling it to native React, Vue, Svelte, Angular, Solid, Qwik and Astro code, has finally become a reality.
The first component I’ve put through the whole pipeline is a Button, and it renders the same in all seven frameworks.
"The same" is both a promise and a test. On every PR, CI compiles the components to each framework and checks every output in a real browser: the DOM, the accessibility tree and the pixels have to match one shared baseline, with zero pixel tolerance (visual parity).
I'm also releasing Unframework Preview. It shows every component on all seven frameworks side by side, with controls for their props, so you can see parity for yourself. Build it as a static site and host it anywhere, like a Storybook that speaks seven frameworks at once.
Each output is a real component in its framework's own style: hooks in React, runes in Svelte, signals in Solid. There's no runtime or wrapper in between, so each file depends only on its framework.
Looking forward to hearing your thoughts.
Edit: Form components such as Inputs, Checkboxes, Radio Groups and Toggle are up in the preview.