# amfe/lib-flexible

可伸缩布局方案

Repository: https://github.com/amfe/lib-flexible
Canonical: https://ross.abutalabs.com/products/lib-flexible
Language: JavaScript
License Family: other
Last push: 2023-09-11T10:34:08+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4375, "days_push": 1087, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 12492, forks 3405 (observed 2026-08-28T04:10:59.192532+00:00)

## What it is
A classic Alibaba library that adapts web page layout to different screen widths by dynamically setting the root font-size (rem-based scaling) for mobile web pages. It is now considered a transitional solution, with the README recommending native viewport units instead.

## Use cases
- make a mobile web page scale across different screen sizes
- rem-based responsive layout for legacy mobile H5 pages
- adapt page layout to device width automatically
- maintain an old project that still uses lib-flexible

## When to choose
- maintaining a legacy mobile web project already built around rem scaling
- targeting very old browsers that lack viewport unit support

## When to avoid
- starting a new project - use CSS viewport units (vw/vh) instead
- the README itself recommends abandoning this library in favor of viewport units

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, css-framework
- domain: frontend, web-development, mobile-development
- platform: browser
- tags: responsive-layout, rem-adaptation, mobile-web, viewport, deprecated, javascript, nodejs

## Member repositories
- amfe/lib-flexible (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:59.192532+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-29T17:14:00.749359+00:00, confidence not recorded.
  - readme: https://github.com/amfe/lib-flexible (fetched 2026-08-28T04:10:59.192532+00:00, sha 953949fdf9cb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
