unplugin/unplugin-auto-import

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

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 55 minutes ago
Type:Plugin / ExtensionCategory(s):Build Systems & Package ManagersDeveloper Tools
Added to GitGenius on September 18th, 2026
Created on August 24th, 2021
Open Issues & Pull Requests: 74 (+0)
GitHub issues: Enabled
Number of forks: 217
Total Stargazers: 3,797 (+0)
Total Subscribers: 13 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 7.1 days
Mean response time: 122.1 days
90th percentile: 459.9 days
Tracked items: 113

Most active contributors

Sign in to see contributor activity.

How this project is maintained

100% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Three people close 78% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 30
New in 7 days: 0
Closed in 7 days: 4
Avg open age: 598 days
Stale 30+ days: 27
Stale 90+ days: 23

Recent activity

Opened in 7 days: 0
Closed in 7 days: 4
Comments in 7 days: 1
Events in 7 days: 1

Top labels

  • enhancement (27)
  • need reproduction (7)
  • bug (5)
  • pr welcome (3)
  • good first issue (1)
  • help wanted (1)
  • upstream (1)

Detailed Description

unplugin-auto-import is a build plugin that automatically imports APIs on-demand across Vite, Webpack, and Rollup.

The tool solves the friction of manually importing utilities, composables, and other APIs throughout a codebase. Rather than requiring developers to write import statements at the top of each file, unplugin-auto-import detects usage of specified APIs and injects the necessary imports during the build process. This approach works by scanning code for references to configured imports and transforming the output to include them automatically, eliminating boilerplate while keeping imports explicit in the final bundle.

The tool suits projects that rely heavily on utility libraries or composable patterns, particularly Vue applications and other frameworks where importing the same set of helpers repeatedly becomes tedious. It works across the three major bundlers in the JavaScript ecosystem, making it valuable whether your project uses Vite, Webpack, or Rollup. Teams should adopt it when they have a stable set of frequently-used APIs they want available without explicit imports, though it requires upfront configuration to specify which modules and exports should be auto-imported.

The project shows consistent maintenance with regular updates addressing both new features and bug fixes. Pull requests receive timely review and merging, indicating active engagement with contributions. Issues are addressed promptly, demonstrating responsiveness to user-reported problems. The codebase maintains a focus on supporting all three target bundlers equally, with changes typically tested across the full matrix of supported tools.