O with occluded right edge to appear also as a C Open Web Components Guides Docs Blog Toggle darkmode

Community: Base Libraries

Resources

Base libraries

Our generator sets you up with a component built with lit-html and lit-element as base libraries. We recommend this as a general starting point. lit-html and lit-element have a strong community, making it easy to find help and examples. It is actively maintained and creates a good balance between performance, developer experience and feature richness.

Other base libraries excel at other points and could be a great fit for for your project as well. Below we show a listing of base libraries sorted by weekly NPM downloads. This is a very rough metric, and should not be the only means of judging the quality of a project.

  • Stencil (143.818 weekly downloads)

    Stencil is a toolchain for building reusable, scalable Design Systems.

  • lit (22.268 weekly downloads)

    Simple. Fast. Web Components.

  • solid-js (17.479 weekly downloads)

    The Deceptively Simple User Interface Library

  • FAST (4.379 weekly downloads)

    The adaptive interface system for modern web experiences

  • CanJS (3.668 weekly downloads)

    Build CRUD apps in fewer lines of code

  • haunted (3.551 weekly downloads)

    React's Hooks API but for standard web components and lit-html or hyperHTML

  • Lightning Web Components (3.413 weekly downloads)

    A Blazing Fast, Enterprise-Grade Web Components Foundation

  • hybrids (2.856 weekly downloads)

    The simplest way to create web components with plain objects and pure functions!

  • @skatejs/element (1.231 weekly downloads)

    Skate is a library built on top of the W3C web component specs that enables you to write functional and performant web components with a very small footprint.

  • Joist (616 weekly downloads)

    A small (~2kb) library to help with the creation of web components and web component based applications

  • preact-custom-element (600 weekly downloads)

    Generate/register a custom element from a preact component

  • hyperhtml-element (553 weekly downloads)

    An extensible class to define hyperHTML based Custom Elements

  • Omi (548 weekly downloads)

    Front End Cross-Frameworks Framework

  • atomico (547 weekly downloads)

    Atomico a micro-library for creating webcomponents using only functions, hooks and virtual-dom.

  • Gallop (459 weekly downloads)

    Use full power of web components

  • µce (146 weekly downloads)

    µhtml based Custom Elements.

  • DataFormsJS (144 weekly downloads)

    Set of Web Components that can be used to build Single Page Apps (SPA), Display JSON data from API’s and Web Services, and bind data to different elements on screen. All Web Components are plain JavaScript and require no build process.

  • heresy (142 weekly downloads)

    Don't simulate the DOM. Be the DOM. React-like Custom Elements via the V1 API built-in extends.

  • litedom (49 weekly downloads)

    A blazing fast view library to create Web Components and use Javascript Template Literals in HTML

  • swiss (47 weekly downloads)

    Functional custom elements.

  • slimjs (14 weekly downloads)

    a lightweight web component authoring library that provides extended capabilities for components (such as data binding) using es6 native class inheritance

  • µce-template (14 weekly downloads)

    A tiny toolless library with tools included

  • ElemX (3 weekly downloads)

    Library for connecting MobX to native Web Components with a Vue-like template binding syntax

  • ReadyMade (2 weekly downloads)

    JavaScript microlibrary for developing Web Components with Decorators

Note: want to add another base library to this list? Send us a pull request!