Plain HTML / CDN
Drop the Agentronics SDK into a static page with one script tag — no bundler required.
Plain HTML / CDN
Agentronics ships an IIFE bundle alongside the ESM and CJS builds. Static sites, server-rendered HTML, and prototypes can pull it from the CDN without a build step.
One-tag install
The CDN serves the same artifact as npm install @agentronics/sdk. Pin a version (0.1.0) in production — latest is fine for prototypes but will follow major bumps.
Lite path for WebMCP-only sites
If you only need WebMCP-native detection and the smallest possible footprint (≤ 8 KB brotli):
The lite entry intentionally omits the policy engine, DOM enforcer, site memory, and tracer. Use it when the only thing you need is "is a WebMCP agent on the page right now?".
Classic <script> (no module)
If your CMS or hosting environment can't serve modules:
The IIFE bundle exports window.Agentronics with the same API surface as the ESM build.
Registering tools without a build
Subresource Integrity
For locked-down deployments, fetch the SRI hash from https://cdn.agentronics.dev/sdk/0.1.0/index.js.integrity and pin it:
What you give up vs. the npm install
| Feature | npm install | CDN |
|---|---|---|
| Tree-shaking | ✅ — bundler drops unused exports | ⚠️ — full bundle ships |
| Source maps | ✅ — local files | ✅ — .map served alongside |
| Type checking | ✅ — .d.ts files | ❌ — runtime types only |
| Offline development | ✅ | ❌ |
The runtime behavior is identical. If you start with the CDN and outgrow it, switching to npm install @agentronics/sdk is a one-line change.