vite-plugin-wasm-pack weekly downloads statistics
By nshen (2 listings) · npm · Vite plugins
Vite plugin for rust using wasm-pack 🦀
vite-plugin-wasm-pack has 11,399 recorded weekly downloads on npm, a decrease of 53.3% over the past 30 days, ranking #878 of 2,256 tracked listings.
About vite-plugin-wasm-pack
🦀 Vite plugin for rust wasm-pack, it's simple.
Quick start
Make sure wasm-pack installed correctly.
Clone this repo or download the zip file, extract the example folder.
Install npm develop dependencies, in example folder run:
After that you can build rust project to WebAassembly by using wasm-pack.
Now the my-crate module is ready, start vite dev server.
Done, if below is showing.
Install manually
Usage
Add this plugin to vite.config.ts
Add script to package.json
⚠ Don't forget to build your wasm-pack crate first!
Tips: you can add a wasm script to package.json like this:
Then, run:
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
• Quick starter is in ./example folder. • Game of life [demo] [source] • Photon-vite [demo] [source]
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
7/30/90-day growth
Ranking history
Listing placement
Listing placement
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 (542)Similar npm Vite plugins plugins
All 20 vite-plugin-wasm-pack alternativesData 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 19, 2026. See the methodology.