# Layui

一套遵循浏览器原生态开发模式的 Web UI 组件库。

Repository: https://github.com/layui/layui
Canonical: https://ross.abutalabs.com/products/layui
Homepage: https://layui.dev
Language: JavaScript
License: MIT
License Family: permissive
Topics: layui, javascript, html, css, component-library, ui-library, ui-kit
Last push: 2026-08-16T15:55:12+00:00
Link (homepage): https://layui.dev
Link (site_page): https://layui.dev/docs/2
Link (site_page): https://layui.dev/docs/2/versions.html

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 97, longevity 100
- inputs: {"age_days": 3998, "days_push": 17, "days_rel": 22, "gap_med": 15, "n_releases_24m": 34}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 30575, forks 7362 (observed 2026-08-28T04:11:54.516356+00:00)

## What it is
Layui is an open-source, MIT-licensed Web UI component library built with vanilla HTML, CSS, and JavaScript, offering a lightweight modular system of components like tables, forms, popups, and date pickers. It targets developers who want to build web interfaces without build tools or mainstream frameworks, working directly against the browser.

## Use cases
- build admin dashboard interfaces without a build toolchain
- add modals, popups, and dialogs to plain HTML pages
- render data tables with pagination and tree tables
- create forms with selects, checkboxes, and upload widgets
- add date and time pickers to server-rendered pages
- quickly prototype web UIs with CDN-included components

## When to choose
- you want a UI library that works with plain HTML/CSS/JS and no bundler
- you're maintaining or building classic server-rendered web apps
- you need a lightweight, batteries-included component set out of the box
- you prefer minimal tooling and browser-native development

## When to avoid
- you're building a modern SPA with React, Vue, or Angular
- you need TypeScript-first tooling or a large npm ecosystem
- your team prefers component frameworks with virtual DOM and state management
- you need cutting-edge frontend patterns the project itself recommends mainstream frameworks for

## Facets
- artifact type: library
- maturity: active
- function: ui-components, css-framework, frontend-framework, form-handling, templating, file-upload
- domain: web-development, frontend, web-design, developer-tools
- platform: browser, cross-platform
- tags: component-library, ui-kit, no-build-tools, vanilla-javascript, modular, chinese-community, admin-interfaces, web-server, nodejs

## Member repositories
- layui/layui (main) score 98
- layui/layer (plugin) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:54.516356+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:52:45.028584+00:00, confidence not recorded.
  - readme: https://github.com/layui/layui (fetched 2026-08-28T04:11:54.516356+00:00, sha 9f470ed5ecac)
  - homepage: https://layui.dev (fetched 2026-08-29T07:50:12.618264+00:00, sha 4ac6e6d8bb1b)
  - site_page: https://layui.dev/docs/2 (fetched 2026-08-29T07:50:12.627610+00:00, sha d55be19c4a26)
  - site_page: https://layui.dev/docs/2/versions.html (fetched 2026-08-29T07:50:12.629754+00:00, sha 4696d8524c5e)
  - registry_npm: https://registry.npmjs.org/layui (fetched 2026-08-29T07:50:12.632845+00:00, sha 687088c4dcb9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
