Giter Site home page Giter Site logo

lego's Introduction

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

lego's People

Contributors

mark-russ avatar schindld avatar vinyll avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.