[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-3708":3},{"id":4,"name":5,"fullName":6,"owner":5,"repo":5,"description":7,"homepage":8,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":9,"pushedAt":9,"updatedAt":28,"readmeContent":29,"aiSummary":30,"trendingCount":15,"starSnapshotCount":15,"syncStatus":31,"lastSyncTime":32,"discoverSource":33},3708,"lit","lit\u002Flit","Lit is a simple library for building fast, lightweight web components.","https:\u002F\u002Flit.dev",null,"TypeScript",21661,1081,210,493,0,11,106,5,84.6,"BSD 3-Clause \"New\" or \"Revised\" License",false,"main",true,[25,5,26,27],"html-templates","lit-element","lit-html","2026-06-12 04:00:19","\u003Cdiv align=\"center\">\n\u003Cpicture>\n  \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\".\u002Fpackages\u002Flit\u002Flogo-dark.svg\" alt=\"Lit\" width=\"300\" height=\"141\">\n  \u003C\u002Fsource>\n  \u003Csource media=\"(prefers-color-scheme: light)\" srcset=\".\u002Fpackages\u002Flit\u002Flogo.svg\" alt=\"Lit\" width=\"300\" height=\"141\">\n  \u003C\u002Fsource>\n  \u003Cimg src=\".\u002Fpackages\u002Flit\u002Flogo.svg\" alt=\"Lit\" width=\"300\" height=\"141\">\n\u003C\u002Fpicture>\n\n### Simple. Fast. Web Components.\n\n[![Build Status](https:\u002F\u002Fgithub.com\u002Flit\u002Flit\u002Factions\u002Fworkflows\u002Ftests.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Flit\u002Flit\u002Factions\u002Fworkflows\u002Ftests.yml)\n[![Published on npm](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002Flit.svg?logo=npm)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Flit)\n[![Join our Discord](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fdiscord-join%20chat-5865F2.svg?logo=discord&logoColor=fff)](https:\u002F\u002Flit.dev\u002Fdiscord\u002F)\n[![Mentioned in Awesome Lit](https:\u002F\u002Fawesome.re\u002Fmentioned-badge.svg)](https:\u002F\u002Fgithub.com\u002Fweb-padawan\u002Fawesome-lit)\n\n\u003C\u002Fdiv>\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:\u002F\u002Flit.dev).\n\nAdditional documentation for developers looking to contribute or understand more about the project can be found in [`dev-docs`](.\u002Fdev-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:\u002F\u002Fgithub.com\u002Flit\u002Flit\u002Ftree\u002F2.x) branch.\nlit-html 1.x source is available on the [`lit-html-1.x`](https:\u002F\u002Fgithub.com\u002Flit\u002Flit\u002Ftree\u002Flit-html-1.x) branch.\n\n### Packages\n\n- Core packages\n  - [`lit`](.\u002Fpackages\u002Flit) - The primary user-facing package of Lit which includes everything from lit-html and lit-element.\n  - [`lit-element`](.\u002Fpackages\u002Flit-element) - The web component base class used in Lit.\n  - [`lit-html`](.\u002Fpackages\u002Flit-html) - The rendering library used by LitElement.\n  - [`@lit\u002Freactive-element`](.\u002Fpackages\u002Freactive-element) - A low level base class that provides a reactive lifecycle based on attribute\u002Fproperty changes.\n- Additional libraries\n  - [`@lit\u002Flocalize`](.\u002Fpackages\u002Flocalize) - A library and command-line tool for localizing web applications built using Lit.\n  - [`@lit\u002Flocalize-tools`](.\u002Fpackages\u002Flocalize-tools) - Localization tooling for use with `@lit\u002Flocalize`.\n  - [`@lit\u002Freact`](.\u002Fpackages\u002Freact) - A React component wrapper for web components.\n  - [`@lit\u002Ftask`](.\u002Fpackages\u002Ftask) - A controller for Lit that renders asynchronous tasks.\n  - [`@lit\u002Fcontext`](.\u002Fpackages\u002Fcontext) - 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:\u002F\u002Fgithub.com\u002Fwebcomponents-cg\u002Fcommunity-protocols\u002Fblob\u002Fmain\u002Fproposals\u002Fcontext.md).\n- Labs\n  - [`@lit-labs\u002Fssr`](.\u002Fpackages\u002Flabs\u002Fssr) - A server package for rendering Lit templates and components on the server.\n  - [`@lit-labs\u002Fssr-client`](.\u002Fpackages\u002Flabs\u002Fssr-client) - A set of client-side support modules for rendering Lit components and templates on the server using `@lit-labs\u002Fssr`.\n  - [`@lit-labs\u002Feleventy-plugin-lit`](.\u002Fpackages\u002Flabs\u002Feleventy-plugin-lit) - A plugin for Eleventy that pre-renders\n    Lit components using `@lit-labs\u002Fssr` with optional hydration.\n  - [`@lit-labs\u002Fssr-react`](.\u002Fpackages\u002Flabs\u002Fssr-react) - A package for integrating Lit SSR with React and React frameworks.\n  - [`@lit-labs\u002Fnextjs`](.\u002Fpackages\u002Flabs\u002Fnextjs) - A plugin for [Next.js](https:\u002F\u002Fnextjs.org\u002F) that enables deep server rendering of Lit components with Lit SSR.\n  - [`@lit-labs\u002Frouter`](.\u002Fpackages\u002Flabs\u002Frouter) - A router for Lit.\n  - [`@lit-labs\u002Fmotion`](.\u002Fpackages\u002Flabs\u002Fmotion) - Lit directives for making things move\n  - [`@lit-labs\u002Fscoped-registry-mixin`](.\u002Fpackages\u002Flabs\u002Fscoped-registry-mixin) - A mixin for LitElement that integrates with the speculative Scoped CustomElementRegistry polyfill.\n  - [`@lit-labs\u002Fobservers`](.\u002Fpackages\u002Flabs\u002Fobservers) - A set of reactive controllers that facilitate using the platform observer objects.\n  - [`@lit-labs\u002Fpreact-signals`](.\u002Fpackages\u002Flabs\u002Fpreact-signals) - [Preact Signals](https:\u002F\u002Fpreactjs.com\u002Fguide\u002Fv10\u002Fsignals\u002F) integration for Lit.\n  - [`@lit-labs\u002Fsignals`](.\u002Fpackages\u002Flabs\u002Fsignals) - [TC39 proposal Signals](https:\u002F\u002Fgithub.com\u002Ftc39\u002Fproposal-signals) integration for Lit.\n  - [`@lit-labs\u002Ftesting`](.\u002Fpackages\u002Flabs\u002Ftesting) - Utilities for testing Lit components.\n  - [`@lit-labs\u002Fvirtualizer`](.\u002Fpackages\u002Flabs\u002Fvirtualizer) - Viewport-based virtualization (including virtual scrolling).\n  - [`@lit-labs\u002Fcompiler`](.\u002Fpackages\u002Flabs\u002Fcompiler) - A compiler for optimizing Lit templates.\n- Starter kits (not published to npm)\n  - [`lit-starter-ts`](.\u002Fpackages\u002Flit-starter-ts) ([template\n    repo](https:\u002F\u002Fgithub.com\u002Flit\u002Flit-element-starter-ts)) - A starter repo for building reusable components using Lit in TypeScript.\n  - [`lit-starter-js`](.\u002Fpackages\u002Flit-starter-js) ([template\n    repo](https:\u002F\u002Fgithub.com\u002Flit\u002Flit-element-starter-js)) - A starter repo for building reusable components using Lit in JavaScript.\n- Internal packages (not published to npm)\n  - [`tests`](.\u002Fpackages\u002Ftests) - Test infrastructure for the monorepo.\n  - [`benchmarks`](.\u002Fpackages\u002Fbenchmarks) - Benchmarks for testing various libraries in the monorepo.\n  - [`@lit-internal\u002Fscripts`](.\u002Fpackages\u002F@lit-internal\u002Fscripts) - 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](.\u002FCONTRIBUTING.md) for more information.\n\n### Setting up the lit monorepo for development\n\nInitialize repo:\n\n```sh\ngit clone https:\u002F\u002Fgithub.com\u002Flit\u002Flit.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","Lit 是一个用于构建快速、轻量级 Web 组件的简单库。其核心功能包括提供响应式状态管理、作用域样式以及一个简洁、快速且富有表现力的声明式模板系统，这些都通过一个基础组件类实现，极大减少了开发过程中的样板代码。Lit 适合于需要高效渲染和良好性能的应用场景，特别是在对前端加载时间和运行效率有较高要求的情况下。使用 TypeScript 编写，并采用 BSD 3-Clause 许可证发布，使得 Lit 成为构建现代 Web 应用程序的理想选择。",2,"2026-06-11 02:55:42","top_language"]