qmetrics.net

Lit

Web components library with reactive templates

Lit screenshot

Lit helps you author standards-based web components with reactive properties, scoped styles, and declarative HTML templates.

Overview

Lit is a JavaScript library centered on building custom elements that run in the browser. Its base classes add reactive state, shadow DOM scoped CSS, and an HTML template layer designed to stay small on the wire.

Components are ordinary custom elements, so they can render inside hand-written pages, CMS output, or various frameworks. The template system uses tagged template literals with inline JavaScript expressions, and property or attribute changes trigger efficient updates that touch only dynamic parts of the DOM.

The published npm packages include the main lit bundle, lit-element, lit-html, and lower-level reactive-element primitives. Additional modules cover localization, React wrappers, async task controllers, routers, motion directives, testing helpers, and experimental server-side rendering tools in the labs namespace.

Documentation and interactive examples live on lit.dev, with starter templates for JavaScript and TypeScript component projects.

Key features

  • Custom element base classes
  • Reactive properties and attributes
  • Shadow DOM scoped styling
  • lit-html declarative templates
  • Small minified bundle size
  • Localization tooling package
  • React wrapper for components
  • SSR and virtualization labs

Use cases

  • Build shareable design system components
  • Embed widgets in any HTML page
  • Progressively enhance static sites
  • Ship framework-agnostic UI primitives

Tags

Similar software

Astro

JavaScript web framework for content-driven sites

Astro builds content sites, web apps, and server APIs with server-first rendering, optional UI islands, and integrations for major frameworks.

★ 64.3k⟳ todayMIT

Nuxt

Full-stack Vue framework for web applications

Nuxt builds type-safe Vue apps with file routing, multiple render modes, server directory APIs, and a large module ecosystem.

★ 61.1k⟳ todayMIT

Gatsby

React-based framework for fast content-driven sites

Gatsby is a React framework for building websites and apps, blending static generation with dynamic React capabilities. It pulls data from markdown, CMSs, and APIs through a unified GraphQL layer.

★ 55.9k⟳ 18 days agoMIT

Bulma

Flexbox-based modular CSS component framework

Bulma supplies ready-made responsive UI components as CSS only, without bundled JavaScript. You import or link its stylesheet and combine classes to build layouts.

★ 50k⟳ 4 days agoMIT
Frameworks & PlatformsDesktop/CLI app

uni-app

Vue-based framework shipping one codebase to many platforms

uni-app lets developers write Vue.js front ends once and publish to mobile, web, mini-program, and quick-app targets from a single project.

★ 41.7k⟳ yesterdayApache-2.0

ToolJet

Open-source low-code platform for internal business applications

ToolJet lets teams build admin panels, dashboards, and operational apps on existing databases and APIs. Create with a visual builder, prompts, or coding agents via MCP, then self-host or use cloud.

★ 41.3k⟳ todayAGPL-3.0
Open Source Alternative to:RetoolSuperblocks