Comprehensive guides, API references, and usage instructions for the WebAssembly validation suite
💾 Get the Latest ToolchainUse the command-line interface to validate your WebAssembly modules:
wget /wasm-validator-toolchain.download.html/cli-validator.zip -O validator.zip unzip validator.zip ./validator --help
Run the web validator locally with:
unzip /wasm-validator-toolchain.download.html/web-validator.zip cd validator-web npm install npm start
Validate WAT or .wasm file with the CLI:
validator validate myfile.wasm
Verify WebAssembly System Interface compliance:
validator wasi myfile.wats
Create a validation JSON report:
validator report --output /path/to/report.json
To define custom validation rules:
Create a JSON file: { "max_memory": 128, "required_exports": ["_start"] } Run with: validator validate --rules custom.json
Use the Validator API in your projects:
const validator = require('./validator-node.js'); validator.validateFileSync('module.wasm');
Learn all about running the command-line validator with flags, configuration, and automation.
Download CLI ValidatorGet help running and configuring the web validator, with real-time syntax checking and debugging features.
Get Web Validator