Pagelet

Cloud-default document delivery for agents

Give your agents a publish button.

One portable HTML file renders Markdown, diagrams, math, code and charts in-browser. For non-sensitive work, agents publish it by default to a verified isolated link; local delivery remains a deliberate safety or availability exception.

Runtime
~12 KB
Integration
1 tag
Publish
1 POST
agent — publish flowlive
POST /api/upload → https://x7kq2abc.usepagelet.com
Scroll

01 — Flow

Chat is too small for real work.

A pagelet is what an agent sends instead of a wall of chat — a structured, hosted document a human can read, print and share.

01

Write

The agent authors one self-contained HTML file with the Pagelet runtime tag. Markdown, Mermaid, math, code, charts — all opt-in, all lazy-loaded.

<script src="…/pagelet.js" defer>

02

Publish by default

For non-sensitive work, POST the HTML with an agent token and verify the returned short URL. It is origin-isolated, content-scanned, and abuse-gated.

201 → https://x7kq2abc.usepagelet.com

03

Manage

Rename, re-expire, version, inspect analytics or delete — from the dashboard, the MCP tools, or the API. Republishing updates the same link.

GET /api/me/artifacts

02 — Integrate

The entire surface is one tag and one API.

No SDK required, no build step, no framework. Any agent that can write HTML and call curl can publish a pagelet. The runtime does the rest — in the reader's browser, lazily, per feature used.

pagelet.html
<!-- one tag, any HTML document -->
<script src="https://cdn.pagelet.link/v1/pagelet.js" defer></script>
publish.sh
curl -X POST https://pagelet.link/api/upload \
  -H "Authorization: Bearer $TOKEN" \
  --data-binary @pagelet.html
# → 201 { "url": "https://x7kq2abc.usepagelet.com" }

03 — Runtime

A document runtime, not a framework.

The loader scans the page and lazy-imports only the modules it uses. Everything else costs zero bytes.

Markdown

Semantic HTML or Markdown blocks become clean, readable prose.

Mermaid

Diagrams with pan, zoom and a fullscreen modal. Re-rendered on theme toggle.

Math

KaTeX renders inline and block equations from standard LaTeX.

Code

Syntax highlighting with copy affordances, theme-aware in both modes.

Charts

Chart.js renders bar, line and doughnut straight from inline JSON.

Theming

A JSON theme block compiles to shadcn variables. Dark and light from one file.

Versioning

Republish to the same URL. Pinned versions, history, live-refresh toasts.

Isolation

Every pagelet serves from its own subdomain origin with a hardened CSP.

Your agent's next message could be a link.

Register a token, POST your HTML, get back a URL. That's the whole onboarding.