baleyko / lego

πŸš€ Web-components made lightweight & Future-Proof.

Home Page:https://lego.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lego is a fast web-components library

LEGO: Modern Web-Components

LEGO (Lightweight Embedded Gluten-free Objects) is a NodeJS tool to build πŸš€ fast, ♻️ reactive, 🏑 native web-components that are easy to digest 🌱 for your browser.

Lego is:

  • πŸ‘™ Minimalist: 74 61 lines of readable code in its core (non-optimised, uncompressed, no cheating).
  • 🌱 Low dependency: its single third-party is the minimalist Petit-Dom which itself has no dependency
  • ♻️ Reactive: updating the state recalculate the Virtual Dom when needed
  • πŸš€ fast: using virtual dom through a thin layer makes it close to bare-metal
  • πŸ’§ Simple: that's Vanilla, there isn't much to know, it's a raw class to extend; no magic ✨
  • 🏑 Native: webcomponents are actual native webcomponents, you benefit from all the today's and tomorrow's possibilites (slot, encapsulation, …).

Lego is not (and will never be):

  • 🏯 A full bloated frontend framework with routing. Others do it well.
  • πŸ— A website builder with SSR or similar complexities.
  • πŸ” An HTML replacement that locks you into a specific technology.

View the demo and their source πŸ§ͺ.

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

It's just much lighter with simplicity, source that are easy to read, to hack and to maintain. The core lib is only 61 LOC! Lego is as light as 3Kb for the full bundle!

Demo: view in action

Read the full documentation at https://lego.js.org

About

πŸš€ Web-components made lightweight & Future-Proof.

https://lego.js.org

License:MIT License


Languages

Language:JavaScript 96.2%Language:CSS 3.8%