Developer releases HTMLPlus Element v4, a compiler that automates web component boilerplate
A developer has publicly unveiled HTMLPlus Element v4 after several years of intermittent work and over 500 commits, describing it as a compiler that eliminates repetitive boilerplate when writing native web custom elements. The tool uses TypeScript decorators to automatically derive tag names from class names, resolve property types, pick up co-located CSS files, and generate TypeScript definitions at build time. Output components work across major frameworks — including React, Vue, Angular, Svelte, and Solid — without wrapper packages, by emitting events under each framework's expected naming convention. The runtime weighs approximately 8 KB gzipped per element and under 11 KB for the full library, and the project is already used to power the htmlplus.io UI kit. Currently available as a Vite and Rollup plugin via unplugin, the project is MIT-licensed and open to public feedback on its API design.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in