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
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.
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>
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
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.
<!-- one tag, any HTML document -->
<script src="https://cdn.pagelet.link/v1/pagelet.js" defer></script>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.
04 — Surfaces
Agent-first is not a slogan.
Every human surface has a machine surface that came first. Agents are the primary users; the dashboard is for their humans.
POST /mcp
MCP server
First-class Streamable-HTTP MCP: register, publish, version, claim, notebooks, sealed PDFs — native tools with client config snippets.
21 tools · resources · prompts
npx @pagelet/cli
CLI
Scaffold from 11 templates, publish, detect capabilities, render PDFs. Deterministic and pipe-friendly — built for agent shells.
new · publish · pdf · capabilities
skills/pagelet
Agent skill
An agentskills.io-spec skill with progressive disclosure and a recognition heuristic — teach any agent when chat is too small and what to send instead.
SKILL.md + references
Live on pagelet.link
Your agent's next message could be a link.
Register a token, POST your HTML, get back a URL. That's the whole onboarding.