WASM Validator

Validator Toolchain Documentation

Comprehensive guides, API references, and usage instructions for the WebAssembly validation suite

💾 Get the Latest Toolchain

🚀 Getting Started

Install CLI Validator

Use 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
                        

Use Web Validator

Run the web validator locally with:

unzip /wasm-validator-toolchain.download.html/web-validator.zip
cd validator-web
npm install
npm start
                        

📘 Usage Guide

Validate File

Validate WAT or .wasm file with the CLI:

validator validate myfile.wasm

Check WASI Compliance

Verify WebAssembly System Interface compliance:

validator wasi myfile.wats

Generate Report

Create a validation JSON report:

validator report --output /path/to/report.json

🔧 Advanced Features

Custom Rules

To define custom validation rules:

Create a JSON file:
{
  "max_memory": 128,
  "required_exports": ["_start"]
}

Run with:
validator validate --rules custom.json
                    

API Integration

Use the Validator API in your projects:

const validator = require('./validator-node.js');
validator.validateFileSync('module.wasm');
                    

📚 Helpful Resources

🔧

Validator CLI

Learn all about running the command-line validator with flags, configuration, and automation.

Download CLI Validator
🔍

Web Validator

Get help running and configuring the web validator, with real-time syntax checking and debugging features.

Get Web Validator