Settings

Theme

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

waferlib.netlify.app

1 points by lamplightdev 5 years ago · 1 comment

Reader

lamplightdevOP 5 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!

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection