Skip to main content

Compatible Crates

CrateWASMWhat’s Available
laminae-glassboxYesFull — input/output validation, command filtering, rate limiting
laminae-personaPartialVoice filter only (extractor requires Ollama)
laminae-cortexPartialEdit tracking + pattern detection (LLM learner requires Ollama)
laminae-psycheNoRequires async runtime + HTTP client
laminae-shadowNoRequires process execution
laminae-ironcladNoRequires OS-level process control
laminae-ollamaNoRequires HTTP client
laminae-anthropicNoRequires HTTP client
laminae-openaiNoRequires HTTP client

How It Works

Native-only modules are gated behind cfg(not(target_arch = "wasm32")). When you compile for WASM, they’re excluded automatically:
# In your Cargo.toml
[dependencies]
laminae = "0.3"

# Compile for WASM
# cargo build --target wasm32-unknown-unknown
The meta-crate 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

Compile Check

# Verify WASM compilation
cargo check --target wasm32-unknown-unknown -p laminae-glassbox
cargo check --target wasm32-unknown-unknown -p laminae-persona
cargo check --target wasm32-unknown-unknown -p laminae-cortex