Skip to content
PluginStats

vite-plugin-wasm-pack weekly downloads statistics

By nshen (2 listings) · npm · Vite plugins

Vite plugin for rust using wasm-pack 🦀

View on npm Outdated · Nov 25, 2026

vite-plugin-wasm-pack has 1,827 recorded weekly downloads on npm, a decrease of 85.6% over the past 30 days, ranking #1915 of 3,247 tracked listings.

Weekly downloads
1,827
Official API · Dec 5, 2026
7-day growth
+25.8%
+375 weekly downloads
30-day growth
-85.6%
-10.8K weekly downloads
90-day growth
-91.6%
-19.8K weekly downloads
Rank
#1915
▼ 33 in 7 days

About vite-plugin-wasm-pack

<p align="center"> <img width="404" src="./banner.png" alt="vite + wasm pic"/> </p> <h1 align="center">

🦀 Vite plugin for rust wasm-pack, it's simple.

</h1> <h4 align="center">

npm npm npm

</h4>

Quick start

Make sure wasm-pack installed correctly.

Clone this repo or download the zip file, extract the example folder.

example
  |
  |-- my-crate       # rust project folder, there is a Cargo.toml in it
  |-- src            # front end source code
  |   |-- index.ts   # entry point
  |-- index.html     # html entry
  |-- vite.config.ts # vite config file
  |__ package.json   # npm config file

Install npm develop dependencies, in example folder run:

yarn install
# or
# npm install

After that you can build rust project to WebAassembly by using wasm-pack.

wasm-pack build ./my-crate --target web

Now the my-crate module is ready, start vite dev server.

yarn dev
or
#npm run dev

Done, if below is showing.

  vite v2.6.5 dev server running at:

  > Local: http://localhost:3000/

  ready in 169ms.

Install manually

yarn add vite vite-plugin-wasm-pack -D
# or
# npm i vite vite-plugin-wasm-pack vite -D

Usage

Add this plugin to vite.config.ts

import { defineConfig } from 'vite';
import wasmPack from 'vite-plugin-wasm-pack';

export default defineConfig({
  // pass your local crate path to the plugin
  plugins: [wasmPack('./my-crate')]
});

Add script to package.json

"scripts": {
  "dev": "vite",
  "build": "vite build"
}

⚠ Don't forget to build your wasm-pack crate first!

wasm-pack build ./my-crate --target web

Tips: you can add a wasm script to package.json like this:

"scripts": {
    "wasm": "wasm-pack build ./my-crate --target web",
    "dev": "yarn wasm && vite",
    "build": "vite build"
}

Then, run:

yarn dev

This will start dev server, and install my-crate that you built earlier.

Use wasm-pack package installed via npm

If you want use a package from npm that built with wasm-pack, like this one test-npm-crate

you have to pass the package name to the second param of our plugin.

wasmPack(['./my-local-crate'],['test-npm-crate'])

full example is in ./npm-crate-example folder.

notice, we only support package build with --target web for now , if a package you use is built without --target web, you should rebuild it.

like this example [Photon-vite] [source]

Cache Problem

I'm not sure if anybody have met the problem that after modified your package, your package don't update.

That's becasue vite pre bundling your package, you can follow vite guide to solve the problem.

If you met the problem , or any problems. feel free to create an issue, let me see if I can do something to help you, thanks.

Examples

License

MIT, see the license file

Description from the npm listing.

  • wasm-pack
  • wasm-bindgen
  • vite-plugin
  • webassembly
  • wasm
  • rust
  • vite
  • cargo

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

vite-plugin-wasm-pack weekly downloads on npm, last 90 days: 1,827 weekly downloads as of Dec 5, 2026, -91.6% over 90 days.vite-plugin-wasm-packWeekly downloads on npm · Last 90 days1,827downloads / week-91.6% over 90 days05K10K15K20K25KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
vite-plugin-wasm-pack weekly downloads on npm, last 90 days: 1,827 weekly downloads as of Dec 5, 2026, -91.6% over 90 days.

7/30/90-day growth

vite-plugin-wasm-pack weekly downloads growth on npm: +25.8% over 7 days, -85.6% over 30 days, -91.6% over 90 days.vite-plugin-wasm-packWeekly downloads growth on npm1,827downloads / week now7-day growth+375 weekly downloads+25.8%30-day growth-10,823 weekly downloads-85.6%90-day growth-19,815 weekly downloads-91.6%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
vite-plugin-wasm-pack weekly downloads growth on npm: +25.8% over 7 days, -85.6% over 30 days, -91.6% over 90 days.

Ranking history

vite-plugin-wasm-pack npm ranking history: currently #1915 (by weekly downloads).vite-plugin-wasm-packnpm ranking · by weekly downloads · Last 90 days#1915current rank#200#400#600#800#1000#1200#1400#1600#1800#2000Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 39 observations · Updated Dec 5, 2026pluginstats.com
vite-plugin-wasm-pack npm ranking history: currently #1915 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 96, #15 (overall #1,915)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins300 listings · 15 pages · page 15, #10 (overall #290)
Vite plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (591)
Recent weekly downloads observations for vite-plugin-wasm-pack
Date (UTC)Weekly downloadsChange vs. previous
1,827-444
2,271-3
2,274+131
2,143-176
2,319+27
2,292+224
2,068+616
1,452-106
1,558+30
1,528-43
1,571+175
1,396-123
1,519-116
1,635—

Similar npm Vite plugins plugins

All 20 vite-plugin-wasm-pack alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/vite-plugin-wasm-pack. First seen Oct 16, 2026; last successful collection Nov 25, 2026. See the methodology.