Skip to content

Packages

wasmagent-js is a 37-package monorepo published under the @wasmagent/* scope on npm.

Maintenance tiers

TierMeaningSemver guarantee
StablePublic API frozen; breaking changes require major version✅ Full semver
BetaAPI largely stable; minor breaking changes possible with a CHANGELOG entrySemver best-effort
AlphaSchema may gain fields; runtime repair API evolving; schema contract frozenSchema stable, API in flux
ExperimentalMay change or be removed without noticeNone
InternalNot published to npmn/a
PackageTier
@wasmagent/coreStable
@wasmagent/kernel-quickjs · @wasmagent/kernel-pyodide · @wasmagent/kernel-wasmtime · @wasmagent/kernel-remoteStable
@wasmagent/cliStable
@wasmagent/aisdk · @wasmagent/mastra-sandbox · @wasmagent/mcp-serverBeta
@wasmagent/model-anthropic · @wasmagent/model-openai · @wasmagent/model-localBeta
@wasmagent/model-doubao · @wasmagent/model-deepseek · @wasmagent/model-moonshot · @wasmagent/model-qwen · @wasmagent/model-zhipu · @wasmagent/model-minimaxBeta (best-effort, tied to provider API stability)
@wasmagent/devtools · @wasmagent/evals-runnerBeta
@wasmagent/react · @wasmagent/ui-cards · @wasmagent/ui-cards-reactBeta
@wasmagent/otel-exporter · @wasmagent/agent-promptsBeta
@wasmagent/claude-agent-sdk · @wasmagent/openai-agents · @wasmagent/a2a · @wasmagent/ag-uiBeta
@wasmagent/tools-web · @wasmagent/tools-rag · @wasmagent/tools-browserBeta
@wasmagent/complianceAlpha (schema contract frozen; repair API evolving)
@wasmagent/aepBeta (v0.2 Ed25519 signature contract shipped; schema-versioned; key management story still evolving)
@wasmagent/mcp-firewallBeta (first-line filter, not adversarial-grade — keyword bag + lightweight n-gram classifier; use defence-in-depth)
@wasmagent/mcp-gateway · @wasmagent/capability-compilerAlpha
@wasmagent/mcp-policyAlpha — private (not yet published to npm)
@wasmagent/mcp-attestationAlpha — private (not yet published to npm)
@wasmagent/eliza-rollout-pluginExperimental
@wasmagent/cloudflare-workerInternal

Runtime

PackageWhat it is
@wasmagent/coreAgents, kernels, models, tools, runners, evals, checkpoints, observability, RLAIF rollout infrastructure
@wasmagent/cliwasmagent CLI: run, init, init-tool, devtools, evals, model, goal, verify, validate-rollouts, export-rollouts
@wasmagent/devtoolsTime-travel debugger + opt-in React UI + RunsAggregator for the local Studio
@wasmagent/evals-runnerMulti-model multi-suite Pareto evaluation harness; six reference suites; paired statistics (McNemar / Wilson / bootstrap / G1)
@wasmagent/reactuseAgentRun() SSE streaming hook
@wasmagent/agent-promptsReusable prompt fragments
@wasmagent/ui-cards · ui-cards-react\``card:*` block parser + components

Code execution kernels

PackageTierEdge-safe
@wasmagent/kernel-quickjsTrue WASM
@wasmagent/kernel-pyodideTrue WASM (Python)✅ (heavy)
@wasmagent/kernel-wasmtimeTrue WASM via Javy
@wasmagent/kernel-remoteExternal microVM (E2B / CF Sandbox)n/a

See the kernel decision tree for picking the right one.

Models

Anthropic / OpenAI

PackageNotes
@wasmagent/model-anthropicAuto cache breakpoints, 1-hour TTL
@wasmagent/model-openaiOpenAI / Azure OpenAI

Local LLM (offline / privacy / cost)

PackageNotes
@wasmagent/model-localnode-llama-cpp adapter; multi-mirror registry (HF / hf-mirror / ModelScope); JSON-schema grammar; localFirst / offlineOnly / devLocalOr routing presets

Chinese model providers

⚠️ Compliance — read each adapter's README for the provider's terms of service and data-residency notes.

PackageProviderHighlights
@wasmagent/model-doubaoVolcengine Arkthinking tiers + ark-context cache
@wasmagent/model-deepseekDeepSeek V4thinking:{type,effort}
@wasmagent/model-moonshotMoonshot / Kimiper-version reasoning field
@wasmagent/model-qwenAlibaba DashScopeenable_thinking + thinking_budget
@wasmagent/model-zhipuZhipu GLM-5thinking:{type} via extra_body
@wasmagent/model-minimaxMiniMax M2/M3reasoning_split + <think> tag parsing

Tools

PackageTools
@wasmagent/tools-webTavily, Brave, Perplexity (LRU-cached)
@wasmagent/tools-ragHttpEmbedder, Pinecone, Qdrant, in-memory
@wasmagent/tools-browserPlaywright + CDP-bridge sessions, 5 tools

Protocol adapters

PackageProtocol
@wasmagent/mcp-serverExpose any agent as MCP server; createCodeModeServer() for the docs-search + execute-code two-tool surface
@wasmagent/aisdkVercel AI SDK 4–6 integration: sandboxedJsTool() + codeModeTool()
@wasmagent/mastra-sandboxMastra sandbox-provider contract backed by an wasmagent kernel
@wasmagent/claude-agent-sdkAnthropic Claude Agent SDK adapter — wrap an wasmagent kernel as a Claude SDK tool
@wasmagent/openai-agentsOpenAI Agents JS adapter — Tool<T> shape backed by an wasmagent kernel
@wasmagent/a2aA2A (Agent2Agent) inbound + outbound
@wasmagent/ag-uiAG-UI inbound transport

Observability

PackageWhat
@wasmagent/otel-exporterOTLP exporter for EventLog; AEP span names (mcp.request, policy.check, sandbox.exec, verifier.check, redaction.apply, dataset.export) + attribute helpers

Security & Governance (alpha)

PackageWhat it is
@wasmagent/mcp-firewallRuntime firewall + gateway for MCP: descriptor snapshot, static vetting, per-call policy, taint tracking, consent ledger; gateway layer: identity propagation (RequestIdentity), server card (ServerCard/buildServerCard), state-changing action classification (isStateChangingTool), MCPGateway with AEP evidence refs
@wasmagent/mcp-gatewayMCP Gateway — identity propagation, server card validation, policy enforcement, AEP evidence emission for MCP tool invocations
@wasmagent/aepAgent Evidence Protocol — AEPRecord / ActionEvidence / CapabilityDecision types + AEPEmitter + AEPSigner / LocalEd25519Signer / verifyAEPRecord. Cross-repo public data contract for trace-pipeline training export and compliance audit. Schema: aep/v0.2 (v0.1 parsed for backward compat)
@wasmagent/capability-compilerCompile CapabilityManifest → MCP schema fragment, runtime policy rules, trace validator spec
@wasmagent/complianceTaskSpec-driven verification + local repair for LLM runs; ComplianceEvalRecord emitter; IFEval benchmark harness
@wasmagent/mcp-policyAlpha — not yet published. Policy bundle DSL for MCP firewall rules. PolicyBundle (named, versioned, sha256-addressed collection of PolicyRules) with extend(), static default(), static strict(); re-exports evaluatePolicy, DEFAULT_RULES, DENY_BLOCKED_RULE, ASK_HIGH_RISK_RULE from @wasmagent/mcp-firewall. API may change without notice.
@wasmagent/mcp-attestationAlpha — not yet published. Capability attestation registry for MCP server identity. Four ordered levels (self < community < operator < audited); CapabilityAttestation interface (attestationId, serverId, toolManifestDigest, level, capabilities, attestedBy, attestedAt); AttestationRegistry, buildAttestation, isAttestationValid. Full PKI signing via Sigstore can be layered on top. API may change without notice.

Alpha packages — not yet published to npm

The following packages are under active development and carry "private": true in their package.json. They are available from the monorepo source but are not yet on the npm registry. Install them via workspace dependency ("@wasmagent/mcp-policy": "workspace:*") or wait for the first alpha publish via the publish-alpha workflow.

@wasmagent/mcp-policy

Policy bundle DSL for the WasmAgent MCP firewall. A PolicyBundle is a named, versioned, sha256-content-addressed collection of PolicyRules. Key API:

  • PolicyBundlemetadata, rules, digest, extend(), static default(), static strict()
  • Re-exports from @wasmagent/mcp-firewall: evaluatePolicy, DEFAULT_RULES, DENY_BLOCKED_RULE, ASK_HIGH_RISK_RULE, PolicyRule

Related: @wasmagent/mcp-firewall, @wasmagent/mcp-gateway, @wasmagent/mcp-attestation.

@wasmagent/mcp-attestation

Capability attestation registry for MCP server identity. Provides a data model and registry for registering and verifying capability attestations on MCP tools. Key API:

  • Four ordered levels: self < community < operator < audited
  • hasAttestation(serverId, level) matches the given level and any higher level
  • CapabilityAttestation interface — attestationId, serverId, toolManifestDigest, level, capabilities, attestedBy, attestedAt, optional expiresAt/notes
  • Exports: buildAttestation, isAttestationValid, AttestationRegistry
  • Full PKI signing via Sigstore can be layered on top

Related: @wasmagent/mcp-firewall (enforcement), @wasmagent/mcp-policy (policy bundles), @wasmagent/aep (evidence records).

Ecosystem integrations (beta)

PackageWhat it is
@wasmagent/eliza-rollout-pluginelizaOS community plugin — emit rollout-wire/v1 training records from elizaOS agent runs

Internal (not on npm)

  • @wasmagent/cloudflare-workerprivate: true. Sample Workers entry point; ships only via wrangler deploy.

Released under the Apache-2.0 License.