MCPcopy
hub / github.com/lit/lit

github.com/lit/lit @@lit-labs-ssr-dom-shim@1.6.0 sqlite

repository ↗ · DeepWiki ↗ · release @lit-labs-ssr-dom-shim@1.6.0 ↗ · compare 2 versions
5,789 symbols 15,661 edges 1,072 files 363 documented · 6%
README

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.

Extension points exported contracts — how you extend this code

ClassDecoratorVisitor (Interface)
(no doc) [11 implementers]
packages/ts-transformers/src/internal/visitor.ts
ReactiveController (Interface)
(no doc) [22 implementers]
packages/reactive-element/src/reactive-controller.ts
Disconnectable (Interface)
(no doc) [4 implementers]
packages/lit-html/src/lit-html.ts
RenderLightHost (Interface)
(no doc) [3 implementers]
packages/labs/ssr-client/src/directives/render-light.ts
Exports (Interface)
* A loose structure for what we might find in the "exports" value within a * `package.json` file.
packages/internal-scripts/src/add-browser-exports.ts
Options (Interface)
(no doc)
packages/react/src/create-component.ts
ExtractedTemplate (Interface)
(no doc)
packages/localize-tools/src/program-analysis.ts
TaskFunctionOptions (Interface)
(no doc)
packages/task/src/task.ts

Core symbols most depended-on inside this repo

html
called by 2142
packages/labs/ssr/src/lib/server-template.ts
html
called by 615
packages/ts-transformers/src/tests/not-lit.ts
render
called by 517
packages/lit-html/src/test/polyfill-support/lit-html_html-test.ts
appendChild
called by 512
packages/localize-tools/src/formatters/xliff.ts
define
called by 408
packages/labs/ssr-dom-shim/src/index.ts
createElement
called by 376
packages/lit-html/src/polyfill-support.ts
get
called by 375
packages/reactive-element/src/reactive-element.ts
stripExpressionMarkers
called by 335
packages/labs/testing/src/lib/utils.ts

Shape

Function 2,555
Method 1,545
Class 1,338
Interface 351

Languages

TypeScript100%

Modules by API surface

packages/benchmarks/lit-html/template-heavy/template-heavy.js1,037 symbols
packages/labs/analyzer/src/lib/model.ts107 symbols
packages/labs/ssr/src/test/integration/tests/basic.ts97 symbols
packages/reactive-element/src/test/reactive-element_test.ts96 symbols
packages/labs/ssr/src/test/test-files/render-test-module.ts93 symbols
packages/lit-html/src/lit-html.ts87 symbols
packages/lit-html/src/test/lit-html_test.ts59 symbols
packages/labs/ssr-dom-shim/src/index.ts59 symbols
packages/reactive-element/src/reactive-element.ts58 symbols
packages/labs/virtualizer/src/Virtualizer.ts55 symbols
packages/lit-element/src/test/lit-element_test.ts47 symbols
packages/labs/virtualizer/src/layouts/flow.ts38 symbols

Dependencies from manifests, versioned

@11ty/eleventy1.0.0 · 1×
@11ty/eleventy-plugin-syntaxhighlight4.0.0 · 1×
@babel/cli7.22.10 · 1×
@babel/core7.22.11 · 1×
@babel/eslint-parser7.17.0 · 1×
@babel/plugin-proposal-class-properties7.18.6 · 1×
@babel/plugin-proposal-decorators7.22.10 · 1×
@babel/plugin-transform-class-static-block7.22.11 · 1×
@babel/plugin-transform-typescript7.22.11 · 1×
@changesets/cli2.24.4 · 1×
@changesets/get-github-info0.5.0 · 1×
@custom-elements-manifest/analyzer0.6.3 · 1×

For agents

$ claude mcp add lit \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact