top | item 27953202

Show HN: Wafer – a small Web Component base library for the client and server

1 points| lamplightdev | 4 years ago |waferlib.netlify.app

1 comment

order

lamplightdev|4 years ago

Wafer is a simple and lightweight base library for building Web Components that can be used on the browser, server or both.

It small (<2kb minified and compressed) and opts for a CSS selector based API for updating component templates.

Component declarations can be used unchanged on both the client and server (node) to SSR components (using Shadow or Light DOM) and optionally hydrate on the client.

Read a quick overview at https://waferlib.netlify.app/docs/010-overview/030-quick/, or edit a live example at https://waferlib.netlify.app/docs/010-overview/040-example/.

All feedback welcome, thanks!