# Auto-Plugin/autofit.js

autofit.js 迄今为止最易用的自适应工具

Repository: https://github.com/Auto-Plugin/autofit.js
Canonical: https://ross.abutalabs.com/products/autofitjs
Homepage: https://auto-plugin.github.io/autofit.js/
Language: TypeScript
License: MIT
License Family: permissive
Topics: fit, react, self-adaption, vue
Last push: 2026-01-14T10:37:44+00:00

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

## Adoption (not part of the score)
Stars 2011, forks 180 (observed 2026-08-28T04:06:05.090226+00:00)

## What it is
autofit.js is a lightweight TypeScript library for adaptive screen scaling in web frontends, letting dashboards and large-screen visualizations fit any resolution with a single line of code. It has no dependencies, weighs only ~2.7KB gzipped, and works with Vue and React.

## Use cases
- make a data visualization dashboard fit any screen resolution
- adapt a large-screen monitoring page to different display sizes
- auto-scale a Vue or React app designed for a fixed resolution
- responsive scaling for echarts big-screen dashboards
- fit web pages below a target resolution without media queries

## When to choose
- you need one-line, dependency-free screen adaptation for fixed-design dashboards
- you're building large-screen visualization pages in Vue or React
- you want minimal performance overhead by scaling a single element

## When to avoid
- you need fully fluid responsive layouts with reflow rather than uniform scaling
- your project requires accessibility-critical text that must not be visually scaled
- you're not building a fixed-resolution design that needs proportional fitting

## Facets
- artifact type: library
- maturity: active
- function: ui-components, frontend-framework
- domain: frontend, web-development, data-visualization
- platform: browser
- tags: responsive-design, screen-adaptation, dashboard, large-screen, vue, react, auto-scaling, typescript, nodejs, javascript

## Member repositories
- Auto-Plugin/autofit.js (main) score 58

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:05.090226+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-30T03:01:03.909852+00:00, confidence not recorded.
  - readme: https://github.com/Auto-Plugin/autofit.js (fetched 2026-08-28T04:06:05.090226+00:00, sha 8b641a2bf3fd)
  - homepage: https://auto-plugin.github.io/autofit.js/ (fetched 2026-08-29T10:41:14.748963+00:00, sha 674cc753eb24)
  - registry_npm: https://registry.npmjs.org/autofit.js (fetched 2026-08-29T10:41:14.751409+00:00, sha 852a962da026)
- Data as of 2026-08-30T08:39:29.467469+00:00.
