Gathering detailed insights and metrics for @pognetwork/vite-plugin-wasm-pack
Gathering detailed insights and metrics for @pognetwork/vite-plugin-wasm-pack
npm install @pognetwork/vite-plugin-wasm-pack
Typescript
Module System
Node Version
NPM Version
69.3
Supply Chain
98.2
Quality
75.3
Maintenance
100
Vulnerability
100
License
TypeScript (80.39%)
Rust (9.92%)
HTML (9.69%)
Verify real, reachable, and deliverable emails with instant MX records, SMTP checks, and disposable email detection.
Total Downloads
502
Last Day
1
Last Week
1
Last Month
12
Last Year
80
MIT License
248 Stars
56 Commits
37 Forks
3 Watchers
1 Branches
6 Contributors
Updated on Mar 10, 2025
Minified
Minified + Gzipped
Latest Version
0.1.8
Package Id
@pognetwork/vite-plugin-wasm-pack@0.1.8
Unpacked Size
13.02 kB
Size
4.32 kB
File Count
5
NPM Version
8.0.0
Node Version
16.11.0
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
0%
1
Compared to previous week
Last Month
9.1%
12
Compared to previous month
Last Year
-25.2%
80
Compared to previous year
6
🦀 Vite plugin for rust wasm-pack, it's simple.
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:
1yarn install 2# or 3# npm install
After that you can build rust project
to WebAassembly
by using wasm-pack
.
1wasm-pack build ./my-crate --target web
Now the my-crate
module is ready, start vite dev server.
1yarn dev 2or 3#npm run dev
Done, if below is showing.
1 vite v2.6.5 dev server running at: 2 3 > Local: http://localhost:3000/ 4 5 ready in 169ms.
1yarn add vite vite-plugin-wasm-pack -D 2# or 3# npm i vite vite-plugin-wasm-pack vite -D
Add this plugin to vite.config.ts
1import { defineConfig } from 'vite';
2import wasmPack from 'vite-plugin-wasm-pack';
3
4export default defineConfig({
5 // pass your local crate path to the plugin
6 plugins: [wasmPack('./my-crate')]
7});
Add script to package.json
1"scripts": { 2 "dev": "vite", 3 "build": "vite build" 4}
âš Don't forget to build your wasm-pack crate first!
1wasm-pack build ./my-crate --target web
Tips: you can add a wasm
script to package.json
like this:
1"scripts": { 2 "wasm": "wasm-pack build ./my-crate --target web", 3 "dev": "yarn wasm && vite", 4 "build": "vite build" 5}
Then, run:
1yarn dev
This will start dev server, and install my-crate
that you built earlier.
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.
MIT, see the license file
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 5/23 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
11 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-03-10
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More