# unjs/unplugin

Unified plugin system for Vite, Rollup, Webpack, esbuild, Rolldown, and more

Repository: https://github.com/unjs/unplugin
Canonical: https://ross.abutalabs.com/products/unplugin
Homepage: https://unplugin.unjs.io
Language: TypeScript
License: MIT
License Family: permissive
Topics: unplugin, vite, webpack, rollup, esbuild, rspack, rolldown
Last push: 2026-07-31T15:12:22+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 95, release rhythm 90, longevity 100
- inputs: {"age_days": 1878, "days_push": 33, "days_rel": 65, "gap_med": 7, "n_releases_24m": 22}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3604, forks 155 (observed 2026-08-28T04:08:11.484560+00:00)

## What it is
Unplugin is a unified plugin system that lets developers write a single plugin compatible with Vite, Rollup, Webpack, esbuild, Rspack, Rsbuild, Rolldown, Farm, Bun, and frameworks built on them. It abstracts away bundler-specific plugin APIs so one codebase works across build tools.

## Use cases
- write a vite plugin that also works with webpack
- share one plugin across rollup and esbuild
- create bundler-agnostic build tool plugins
- port a webpack plugin to vite without rewriting
- support multiple bundlers with a single npm package
- build plugins for rspack and rolldown

## When to choose
- you maintain a plugin that must support several bundlers
- you want one codebase instead of per-bundler forks
- you build tooling for the Vite/Rollup/webpack ecosystem

## When to avoid
- you target only a single bundler and its native API suffices
- you need bundler-specific features not covered by the unified abstraction

## Facets
- artifact type: library
- maturity: stable
- function: build-tool, plugin-system, developer-tools
- domain: web-development, frontend, developer-tools
- platform: bun, cross-platform
- tags: vite, webpack, rollup, esbuild, rspack, rolldown, bundler-plugins, typescript, nodejs

## Member repositories
- unjs/unplugin (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:11.484560+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:33:43.437557+00:00, confidence not recorded.
  - readme: https://github.com/unjs/unplugin (fetched 2026-08-28T04:08:11.484560+00:00, sha 86e062331561)
  - homepage: https://unplugin.unjs.io (fetched 2026-08-29T09:27:07.414301+00:00, sha a6b21f02f20c)
  - registry_npm: https://registry.npmjs.org/unplugin (fetched 2026-08-29T09:27:07.416760+00:00, sha 206e31bca39b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
