rustixml WASMZ

WebAssembly + htmz Binary Server Pattern

⚡ Native Performance 🦀 Rust to WASM 🔧 wasm:// Routing 📦 50KB gzipped

🚀 WASMZ Pattern Active

This demo uses true wasm:// routing where HTML forms directly call compiled Rust functions without JavaScript glue code. Forms like <form action="wasm://parse_ixml_template"> trigger native WASM execution that returns HTML templates for instant DOM updates.

Key Innovation: The router intercepts wasm:// URLs and routes them to WebAssembly functions compiled from Rust. Each function returns an HTML template string that the router directly injects into the target DOM element. Zero network latency, native speed, zero backend code.

How WASMZ Works Here

1. Form Submission: Click "Parse with WASM" submits form with action="wasm://parse_ixml_template"

2. Router Intercepts: JavaScript router catches the wasm:// URL before browser handles it

3. Native Execution: Rust code runs at ~5-10x JavaScript speed in browser sandbox

4. Template Response: WASM function returns HTML template string (not just data!)

5. DOM Update: Router directly injects template into target div instantly (no iframe needed!)

📚 Load Examples: