Expand description
WASM bindings for schemaorg-rs.
Exposes three functions to JavaScript:
extractโ parse HTML and return structured data as JSONvalidate_htmlโ full pipeline: extract -> validate -> profile evaluateschema_versionโ returns the Schema.org vocabulary version
All functions return JSON strings. The JS wrapper in wasm/index.js
calls JSON.parse() on the results.
Functionsยง
- extract
- Extracts structured data from HTML and returns it as a JSON string.
- schema_
version - Returns the Schema.org vocabulary version used by this build.
- validate_
html - Full validation pipeline: extract -> vocab validate -> profile evaluate.
- wasm_
start - Initializes the WASM module. Call once before other functions.
Sets up a panic hook that logs to
console.error.