{"id":13412344,"url":"https://github.com/lit/lit","last_synced_at":"2025-09-09T21:05:17.873Z","repository":{"id":37054374,"uuid":"95797174","full_name":"lit/lit","owner":"lit","description":"Lit is a simple library for building fast, lightweight web components.","archived":false,"fork":false,"pushed_at":"2025-05-02T03:51:17.000Z","size":59686,"stargazers_count":19606,"open_issues_count":566,"forks_count":963,"subscribers_count":208,"default_branch":"main","last_synced_at":"2025-05-05T11:18:15.344Z","etag":null,"topics":["html-templates","lit","lit-element","lit-html"],"latest_commit_sha":null,"homepage":"https://lit.dev","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lit.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-06-29T16:27:16.000Z","updated_at":"2025-05-05T10:11:15.000Z","dependencies_parsed_at":"2022-07-11T03:18:31.890Z","dependency_job_id":"ce601c4e-5a84-435d-9f67-33b8a6307dd3","html_url":"https://github.com/lit/lit","commit_stats":{"total_commits":2393,"total_committers":194,"mean_commits":"12.335051546391753","dds":0.739657333890514,"last_synced_commit":"3eb64fbf8c45348f031c7dfc2438a8030643c69b"},"previous_names":["polymer/lit-html","lit/lit-html"],"tags_count":557,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lit%2Flit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lit%2Flit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lit%2Flit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lit%2Flit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lit","download_url":"https://codeload.github.com/lit/lit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252501201,"owners_count":21758338,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["html-templates","lit","lit-element","lit-html"],"created_at":"2024-07-30T20:01:23.651Z","updated_at":"2025-05-05T13:59:29.561Z","avatar_url":"https://github.com/lit.png","language":"TypeScript","readme":"\u003cdiv align=\"center\"\u003e\n\u003cpicture\u003e\n  \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"./packages/lit/logo-dark.svg\" alt=\"Lit\" width=\"300\" height=\"141\"\u003e\n  \u003c/source\u003e\n  \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"./packages/lit/logo.svg\" alt=\"Lit\" width=\"300\" height=\"141\"\u003e\n  \u003c/source\u003e\n  \u003cimg src=\"./packages/lit/logo.svg\" alt=\"Lit\" width=\"300\" height=\"141\"\u003e\n\u003c/picture\u003e\n\n### Simple. Fast. Web Components.\n\n[![Build Status](https://github.com/lit/lit/actions/workflows/tests.yml/badge.svg)](https://github.com/lit/lit/actions/workflows/tests.yml)\n[![Published on npm](https://img.shields.io/npm/v/lit.svg?logo=npm)](https://www.npmjs.com/package/lit)\n[![Join our Discord](https://img.shields.io/badge/discord-join%20chat-5865F2.svg?logo=discord\u0026logoColor=fff)](https://lit.dev/discord/)\n[![Mentioned in Awesome Lit](https://awesome.re/mentioned-badge.svg)](https://github.com/web-padawan/awesome-lit)\n\n\u003c/div\u003e\n\nLit is a simple library for building fast, lightweight web components.\n\nAt 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.\n\n### Documentation\n\nSee the full documentation for Lit at [lit.dev](https://lit.dev).\n\nAdditional documentation for developers looking to contribute or understand more about the project can be found in [`dev-docs`](./dev-docs).\n\n### npm\n\nTo install from npm:\n\n```sh\nnpm i lit\n```\n\n## Lit Monorepo\n\nThis is the monorepo for Lit packages.\n\nlit 2.x source is available on the [`2.x`](https://github.com/lit/lit/tree/2.x) branch.\nlit-html 1.x source is available on the [`lit-html-1.x`](https://github.com/lit/lit/tree/lit-html-1.x) branch.\n\n### Packages\n\n- Core packages\n  - [`lit`](./packages/lit) - The primary user-facing package of Lit which includes everything from lit-html and lit-element.\n  - [`lit-element`](./packages/lit-element) - The web component base class used in Lit.\n  - [`lit-html`](./packages/lit-html) - The rendering library used by LitElement.\n  - [`@lit/reactive-element`](./packages/reactive-element) - A low level base class that provides a reactive lifecycle based on attribute/property changes.\n- Additional libraries\n  - [`@lit/localize`](./packages/localize) - A library and command-line tool for localizing web applications built using Lit.\n  - [`@lit/localize-tools`](./packages/localize-tools) - Localization tooling for use with `@lit/localize`.\n  - [`@lit/react`](./packages/react) - A React component wrapper for web components.\n  - [`@lit/task`](./packages/task) - A controller for Lit that renders asynchronous tasks.\n  - [`@lit/context`](./packages/context) - A system for passing data through a tree of elements using browser events, avoiding the need to pass properties down every layer of the tree using [a community defined protocol](https://github.com/webcomponents-cg/community-protocols/blob/main/proposals/context.md).\n- Labs\n  - [`@lit-labs/ssr`](./packages/labs/ssr) - A server package for rendering Lit templates and components on the server.\n  - [`@lit-labs/ssr-client`](./packages/labs/ssr-client) - A set of client-side support modules for rendering Lit components and templates on the server using `@lit-labs/ssr`.\n  - [`@lit-labs/eleventy-plugin-lit`](./packages/labs/eleventy-plugin-lit) - A plugin for Eleventy that pre-renders\n    Lit components using `@lit-labs/ssr` with optional hydration.\n  - [`@lit-labs/ssr-react`](./packages/labs/ssr-react) - A package for integrating Lit SSR with React and React frameworks.\n  - [`@lit-labs/nextjs`](./packages/labs/nextjs) - A plugin for [Next.js](https://nextjs.org/) that enables deep server rendering of Lit components with Lit SSR.\n  - [`@lit-labs/router`](./packages/labs/router) - A router for Lit.\n  - [`@lit-labs/motion`](./packages/labs/motion) - Lit directives for making things move\n  - [`@lit-labs/scoped-registry-mixin`](./packages/labs/scoped-registry-mixin) - A mixin for LitElement that integrates with the speculative Scoped CustomElementRegistry polyfill.\n  - [`@lit-labs/observers`](./packages/labs/observers) - A set of reactive controllers that facilitate using the platform observer objects.\n  - [`@lit-labs/preact-signals`](./packages/labs/preact-signals) - [Preact Signals](https://preactjs.com/guide/v10/signals/) integration for Lit.\n  - [`@lit-labs/signals`](./packages/labs/signals) - [TC39 proposal Signals](https://github.com/tc39/proposal-signals) integration for Lit.\n  - [`@lit-labs/testing`](./packages/labs/testing) - Utilities for testing Lit components.\n  - [`@lit-labs/virtualizer`](./packages/labs/virtualizer) - Viewport-based virtualization (including virtual scrolling).\n  - [`@lit-labs/compiler`](./packages/labs/compiler) - A compiler for optimizing Lit templates.\n- Starter kits (not published to npm)\n  - [`lit-starter-ts`](./packages/lit-starter-ts) ([template\n    repo](https://github.com/lit/lit-element-starter-ts)) - A starter repo for building reusable components using Lit in TypeScript.\n  - [`lit-starter-js`](./packages/lit-starter-js) ([template\n    repo](https://github.com/lit/lit-element-starter-js)) - A starter repo for building reusable components using Lit in JavaScript.\n- Internal packages (not published to npm)\n  - [`tests`](./packages/tests) - Test infrastructure for the monorepo.\n  - [`benchmarks`](./packages/benchmarks) - Benchmarks for testing various libraries in the monorepo.\n  - [`@lit-internal/scripts`](./packages/@lit-internal/scripts) - Utility scripts used within the monorepo.\n\n## Contributing to Lit\n\nLit is open source and we appreciate issue reports and pull requests. See [CONTRIBUTING.md](./CONTRIBUTING.md) for more information.\n\n### Setting up the lit monorepo for development\n\nInitialize repo:\n\n```sh\ngit clone https://github.com/lit/lit.git\ncd lit\nnpm ci\n```\n\nBuild all packages:\n\n```sh\nnpm run build\n```\n\nTest all packages:\n\n```sh\nnpm run test\n```\n\nRun benchmarks for all packages:\n\n```sh\nnpm run benchmarks\n```\n\nSee individual package READMEs for details on developing for a specific package.\n","funding_links":[],"categories":["TypeScript","others","JavaScript","html-templates","Community","Repository","Packages"],"sub_categories":["Web Components"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flit%2Flit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flit%2Flit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flit%2Flit/lists"}