Compatible Crates
| Crate | WASM | What’s Available |
|---|---|---|
laminae-glassbox | Yes | Full — input/output validation, command filtering, rate limiting |
laminae-persona | Partial | Voice filter only (extractor requires Ollama) |
laminae-cortex | Partial | Edit tracking + pattern detection (LLM learner requires Ollama) |
laminae-psyche | No | Requires async runtime + HTTP client |
laminae-shadow | No | Requires process execution |
laminae-ironclad | No | Requires OS-level process control |
laminae-ollama | No | Requires HTTP client |
laminae-anthropic | No | Requires HTTP client |
laminae-openai | No | Requires HTTP client |
How It Works
Native-only modules are gated behindcfg(not(target_arch = "wasm32")). When you compile for WASM, they’re excluded automatically:
laminae automatically includes only WASM-compatible layers when targeting WebAssembly. No feature flags needed.
Use Cases
- Client-side input validation — Run Glassbox in the browser to catch prompt injection before it hits your API
- Voice filtering in the editor — Check AI-generated text for AI slop as the user types
- Edit tracking in the browser — Track user edits client-side and sync patterns to the server

