Plain HTML / CDN
Add browser-agent authentication to a static page with one script tag — no bundler required.
Plain HTML / CDN
Agentronics ships an IIFE bundle alongside the ESM and CJS builds, so static sites, server-rendered HTML and prototypes can load it from the CDN without a build step.
Static site? Verify on your CDN too
The script tag authenticates agents that run your page. Crawlers and API agents never do — put the Fetch middleware on your edge (e.g. a Cloudflare Worker) to see them.
One-tag install
The CDN serves the same artifact as npm install @agentronics/sdk. Pin a version in
production.
Lite path for WebMCP-only sites
For WebMCP detection with the smallest footprint (≤ 8 KB brotli):
Classic <script> (no module)
window.Agentronics has the same API as the ESM build — see
WebMCP & browser agents for detect(), authenticate() and
presentIdentity().
Subresource Integrity
For locked-down deployments, pin the SRI hash from
https://cdn.agentronics.dev/sdk/0.6.0/index.js.integrity:
npm vs. CDN
| npm install | CDN | |
|---|---|---|
| Tree-shaking | ✅ | ⚠️ full bundle ships |
| Source maps | ✅ | ✅ .map served alongside |
| Type checking | ✅ .d.ts | ❌ |
| Offline development | ✅ | ❌ |
Runtime behaviour is identical; switching to npm install @agentronics/sdk later is a
one-line change.