Lit is a simple library for building fast, lightweight web components. https://lit.dev
Find a file
Maël Obréjan 3e54ba22b2
[labs/signals] Export SignalWatcherApi interface (#5194)
Export `SignalWatcherApi` interface which is used in the return type of the `SignalWatcher` mixin.
2026-03-16 08:44:06 -07:00
.changeset [labs/signals] Export SignalWatcherApi interface (#5194) 2026-03-16 08:44:06 -07:00
.github [infra] Add issue types to templates 2025-10-23 18:28:02 -07:00
.husky [all] Fix Husky after upgrade to v6 (#1760) 2021-04-16 15:07:25 -07:00
.vscode [labs/ssr] Convert generators to a trampoline pattern (#5106) 2025-09-30 10:40:40 -07:00
dev-docs [all] Format 2025-08-20 15:38:54 -07:00
examples [examples/nextjs] update nextjs 15 versions (#5171) 2025-12-06 16:12:29 -08:00
packages [labs/signals] Export SignalWatcherApi interface (#5194) 2026-03-16 08:44:06 -07:00
playground [all] Update TypeScript dependencies to version 5.9 with related ARIAMixin changes (#4984) 2025-08-02 17:26:43 -07:00
scripts [reactive-element] Fix a bug in change detection with decorated standard private accessors (#4999) 2025-09-28 18:51:07 -07:00
.clinerules build: add postinstall to copy AI instructions for more formats 2025-06-05 14:16:12 -05:00
.cursorrules build: add postinstall to copy AI instructions for more formats 2025-06-05 14:16:12 -05:00
.editorconfig [all] Remove Polymer references and update links (#1795) 2021-04-22 13:28:47 -07:00
.emptyignore Update prettier (#4559) 2024-02-22 23:58:21 +00:00
.eslintignore chore(labs/cli-mcp-server): delete the MCP package (#5186) 2025-12-23 09:44:15 -08:00
.eslintignore-sync [labs/analyzer] Don't export (most) helper methods, refactor onto model classes (#3254) 2022-09-07 17:43:51 -07:00
.eslintrc.json add monorepo playground (#4732) 2024-10-17 12:13:23 -07:00
.gitignore Ignore a /.envrc file for managing working environment. (#5080) 2025-09-02 23:57:37 -07:00
.npmignore Add .npmignore to actually publish the lib/ dir 2017-07-08 14:24:00 -07:00
.prettierignore chore(labs/cli-mcp-server): delete the MCP package (#5186) 2025-12-23 09:44:15 -08:00
.prettierignore-sync build: add postinstall to copy AI instructions for more formats 2025-06-05 14:16:12 -05:00
.prettierrc.json Update prettier (#4559) 2024-02-22 23:58:21 +00:00
.roorules build: add postinstall to copy AI instructions for more formats 2025-06-05 14:16:12 -05:00
AGENTS.md build: add postinstall to copy AI instructions for more formats 2025-06-05 14:16:12 -05:00
CHANGELOG.md Update prettier (#4559) 2024-02-22 23:58:21 +00:00
CLAUDE.md build: add postinstall to copy AI instructions for more formats 2025-06-05 14:16:12 -05:00
CODE_OF_CONDUCT.md [infra] Adopt Open JS Code of Conduct (#5167) 2026-03-05 15:49:17 -05:00
CONTRIBUTING.md Mention changesets in CONTRIBUTING.md (#4599) 2024-03-25 07:29:41 -07:00
LICENSE New copyright headers (#1630) 2021-02-26 13:15:30 -08:00
lit-next.code-workspace Update some repo-level configs 2023-09-21 10:55:07 -07:00
package-lock.json [labs/forms] Reset version to 0.0.0 before first release (#5185) 2025-12-23 10:27:55 -08:00
package.json chore(labs/cli-mcp-server): delete the MCP package (#5186) 2025-12-23 09:44:15 -08:00
README.md docs: add link to @lit-labs/signal in root readme (#4844) 2024-11-27 09:13:48 -08:00
rollup-common.js [labs/forms] Initial implementation of FormAssociated and FormControl mixins and associated decorators (#4773) 2025-12-02 14:46:44 -08:00
SECURITY.md Create SECURITY.md (#4448) 2024-01-09 13:22:32 -08:00

Lit

Simple. Fast. Web Components.

Build Status Published on npm Join our Discord Mentioned in Awesome Lit

Lit is a simple library for building fast, lightweight web components.

At Lit's core is a boilerplate-killing component base class that provides reactive state, scoped styles, and a declarative template system that's tiny, fast and expressive.

Documentation

See the full documentation for Lit at lit.dev.

Additional documentation for developers looking to contribute or understand more about the project can be found in dev-docs.

npm

To install from npm:

npm i lit

Lit Monorepo

This is the monorepo for Lit packages.

lit 2.x source is available on the 2.x branch. lit-html 1.x source is available on the lit-html-1.x branch.

Packages

Contributing to Lit

Lit is open source and we appreciate issue reports and pull requests. See CONTRIBUTING.md for more information.

Setting up the lit monorepo for development

Initialize repo:

git clone https://github.com/lit/lit.git
cd lit
npm ci

Build all packages:

npm run build

Test all packages:

npm run test

Run benchmarks for all packages:

npm run benchmarks

See individual package READMEs for details on developing for a specific package.