WASM-grate is a development tool that analyzes JavaScript and TypeScript codebases to identify functions and modules that are good candidates for migration to WebAssembly. It currently supports function declarations, expressions, and arrow functions, assigning a complexity score to help prioritize optimization efforts. The latest version is 0.3.2, and the project is in early development (pre-1.0.0) with a CLI for scanning files or directories. It is designed for front-end performance workflows, differentiating from generic profilers by focusing specifically on WebAssembly migration opportunities. Release cadence is irregular as it is still evolving.
npm install wasm-grateNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Scans a TypeScript file for WebAssembly migration candidates using the WASM-grate CLI.
Wait for version 1.0.0 or test thoroughly before relying on results.
Use --path <path> or -p <path>.
Ensure the path exists and is readable: ls -la /path/to/file
Check if the file contains class methods or generator functions; those are not analyzed.
No dependency data recorded yet.