The hotmeal-wasm package provides WebAssembly-powered bindings for the hotmeal HTML toolkit. It is designed for JavaScript/TypeScript applications that need to perform high-performance browser-side HTML parsing, compute minimal patches between two HTML documents, and apply those patches to update the DOM efficiently. It is framework-agnostic and can be used with vanilla JS or any modern JavaScript framework.
import init, { parse_html, diff_html, apply_patches } from 'hotmeal-wasm';
await init();
const old_html = '<div><p>Hello</p></div>';
const new_html = '<div><p>World</p></div>';
const patches = diff_html(old_html, new_html);
// Apply patches to your DOM...