jazz-runtime-wasm-compat
Jazz Runtime WASM Compatibility
Use this skill for runtime bootstrap correctness: import order, crypto backend, worker startup, and credentials boundaries.
Runtime Matrix
- Browser main thread
- Service worker (MV3)
- Dedicated worker
- Edge runtime (Cloudflare/Vercel edge)
- Node/Deno server runtime
- Constrained native/WebView runtime
Critical Invariants
- In edge/worker-sensitive contexts, import
jazz-tools/load-edge-wasmbefore any Jazz import. startWorker()credentials must remain server/worker-only (accountSecretnever exposed to client).startWorker()can run account migrations at worker start whenAccountSchemais provided.- Node-API (
NapiCrypto) is optional optimization on supported Node runtimes, not a universal baseline. - Prefer single-worker instance per server process for predictable behavior where required by workload invariants.
- Use
asActiveAccount: falseexplicitly if you must avoid active-account side effects.
When to Use WASM vs Node-API
- WASM: broad compatibility, required in edge runtimes.
- Node-API: higher performance on supported Node 20+ platforms, unavailable on edge.
Fallback Strategy
If worker/WASM runtime is unstable in constrained environments, move Jazz transport to main thread and preserve protocol semantics.
Verification Checklist
- Confirm import graph order (
load-edge-wasmfirst where needed). - Confirm runtime supports selected crypto backend.
- Confirm worker credentials are environment-scoped and never shipped to client.
- Confirm worker migration behavior if
AccountSchemais supplied. - Confirm behavior in target deployment runtime, not only local dev.
More from alcyone-labs/agent-skills
chrome-extension-architect
Privacy-first Chrome Manifest Version 3 extension architect - sidePanel design, MV3 service worker lifecycle, least-privilege permission audits, storage strategy, cross-browser sidebar patterns, and headless Playwright testing.
9aquaria-docs
Expert Aquaria documentation architect. Enforce documentation principles, golden rules, templates, folder structure, and quality gates. Creates compliant docs from templates, validates against Golden Rules checklist.
6arg-parser
Type-safe CLI argument parser with MCP integration Zod validation auto-generated tools and interactive prompts
5git-commit-writer
Write consistent high-quality Git commits following project conventions
5skill-forge
Builds precise production-ready custom Agent Skills following AgentSkills.io guidelines. Use when user requests to create, refine or package Skills
4large-file-refactorer
Scans codebase for large files and orchestrates refactoring workflows using a test-first protocol
4