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 Stale · Oct 18, 2026

vite-plugin-wasm-pack has 11,610 recorded weekly downloads on npm, a decrease of 45.4% over the past 30 days, ranking #921 of 2,391 tracked listings.

Weekly downloads
11,610
Official API · Oct 18, 2026
7-day growth
-37.5%
-7K weekly downloads
30-day growth
-45.4%
-9.7K weekly downloads
90-day growth
+22.8%
+2.2K weekly downloads
Rank
#921
Among tracked npm listings

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: 11,610 weekly downloads as of Oct 18, 2026, +22.8% over 90 days.vite-plugin-wasm-packWeekly downloads on npm · Last 90 days11,610downloads / week+22.8% over 90 days05K10K15K20K25K30KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 23, 2026 – Oct 18, 2026 · 88 observations · Updated Oc…pluginstats.com
vite-plugin-wasm-pack weekly downloads on npm, last 90 days: 11,610 weekly downloads as of Oct 18, 2026, +22.8% over 90 days.

7/30/90-day growth

vite-plugin-wasm-pack weekly downloads growth on npm: -37.5% over 7 days, -45.4% over 30 days, +22.8% over 90 days.vite-plugin-wasm-packWeekly downloads growth on npm11,610downloads / week now7-day growth-6,957 weekly downloads-37.5%30-day growth-9,663 weekly downloads-45.4%90-day growth+2,156 weekly downloads+22.8%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
vite-plugin-wasm-pack weekly downloads growth on npm: -37.5% over 7 days, -45.4% over 30 days, +22.8% over 90 days.

Ranking history

vite-plugin-wasm-pack npm ranking history: currently #921 (by weekly downloads).vite-plugin-wasm-packnpm ranking · by weekly downloads · Last 90 days#921current rank#300#400#500#600#700#800#900#1000Jul 23Aug 7Aug 22Sep 6Sep 21Oct 6Oct 21rankOct 17, 2026 – Oct 21, 2026 · 5 observations · Updated Oct 18, 2026pluginstats.com
vite-plugin-wasm-pack npm ranking history: currently #921 (by weekly downloads).

Listing placement

All npm2,389 listings · 120 pages · 1,195 shown · page 47, #5 (overall #925)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins257 listings · 13 pages · page 8, #10 (overall #150)
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 (543)
Recent weekly downloads observations for vite-plugin-wasm-pack
Date (UTC)Weekly downloadsChange vs. previous
11,610+211
11,399-1.1K
12,507-1.1K
13,625-3.9K
17,494-6.3K
23,8270
23,827+5.3K
18,567+619
17,948+803
17,145+937
16,208+1.2K
14,997+3.8K
11,233-3K
14,202—

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 Oct 21, 2026. See the methodology.