# unplugin/unplugin-auto-import

Auto import APIs on-demand for Vite, Webpack and Rollup

Repository: https://github.com/unplugin/unplugin-auto-import
Canonical: https://ross.abutalabs.com/products/unplugin-auto-import
Language: TypeScript
License: MIT
License Family: permissive
Topics: vite-plugin, webpack-plugin, rollup-plugin, unplugin
Last push: 2026-08-03T01:46:59+00:00

## Health v2 (maintenance only)
Score: 96/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 95, release rhythm 96, longevity 100
- inputs: {"age_days": 1835, "days_push": 31, "days_rel": 31, "gap_med": 26.5, "n_releases_24m": 17}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3792, forks 217 (observed 2026-08-28T04:08:18.821136+00:00)

## What it is
A unified build plugin (built on unplugin) that automatically injects API imports on demand for frameworks like Vue and React, eliminating manual import statements. It works across Vite, Webpack, Rspack, Rollup, Rolldown, esbuild, and Astro with full TypeScript support.

## Use cases
- auto import vue apis like ref and computed without writing imports
- remove boilerplate import statements in react projects
- generate global TypeScript declarations for auto-imported APIs
- configure auto imports across vite webpack and rollup with one plugin
- speed up writing components by importing APIs on demand

## When to choose
- you use Vite, Webpack, Rspack, Rollup, or esbuild and want to eliminate repetitive import statements
- you want TypeScript-aware auto imports with generated declaration files
- you want one plugin configuration that works across multiple bundlers

## When to avoid
- you use Nuxt, which already has auto-import built in
- your team prefers explicit imports for readability or linting consistency
- your build setup is not supported by unplugin

## Facets
- artifact type: plugin
- maturity: active
- function: build-tool, developer-tools, plugin-system
- domain: web-development, frontend, developer-tools
- platform: browser, cross-platform
- tags: auto-import, vite-plugin, webpack-plugin, rollup-plugin, esbuild-plugin, rspack, typescript, unplugin, dx, nodejs

## Member repositories
- unplugin/unplugin-auto-import (main) score 96

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:18.821136+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-29T18:27:04.091971+00:00, confidence not recorded.
  - readme: https://github.com/unplugin/unplugin-auto-import (fetched 2026-08-28T04:08:18.821136+00:00, sha 8a50332c410d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
