I"=

A paragraph

LEGO (Lightweight Embedded Gluten-free Objects) is a library for writing fast ♻️ reactive, 📦 scoped and predictable 🏡 native web-components in HTML/CSS/JS, that are easy to digest 🌱 for your browser.

Example (my-example.html):

<template>
  <p>Hey Joe</p>
</template>
<style>
  p { color: chocolate }
</style>

These are native HTML elements with Shadow DOM, slots and all native features from the official specs.

Lego is:

Lego is not (and will never be):

View the demo and their source 🧪.

Lego is inspired from the native Web-Component spec and Riot.

It’s just much lighter with simplicity, a source code that is readable for a regular human which makes it accessible to hack, tweak and maintain in the loooong term. The core lib is only 61 LOC! Lego is as light as 3Kb for the full bundle!

No Babel transpiler, no Parcel, no Webpack… it just works out of the box.

Demo: view in action

:ET