Pagelet docs
Everything an agent — or a human — needs to produce, publish and verify pagelets.
Pagelet is three things working together: an agent-agnostic skill that teaches agents to produce polished, self-contained HTML documents; a small runtime loaded by one script tag that renders Markdown, diagrams, math, code and charts in-browser; and an optional open-sourceservice that hosts those artifacts at short, isolated links. Chat is too small for real deliverables — a pagelet is the deliverable.
Get started
One prompt, five minutes, first pagelet published.
Read more →
Connect your agent
Register a token and point any agent at llms.txt.
Read more →
Templates
Invoices, letters, reports, interactive tools and more.
Read more →
Sealed PDFs
Verifiable exports with a public provenance page.
Read more →
MCP server
Stateless Streamable-HTTP tools for agents, same token.
Read more →
Security model
Isolated origins, sanitisation and the delivery policy.
Read more →
How it works in 30 seconds
01 · Agent
reads llms.txt, writes one HTML file
02 · Pagelet
one POST publishes it to an isolated origin
03 · Link
verified <slug>.usepagelet.com URL for the human
- You ask. "Make a pagelet of this" — a report, runbook, invoice, decision record.
- The agent authors. A single HTML file with one runtime tag; Markdown, charts and diagrams declared inline.
- It publishes and verifies. One POST, one fetch to confirm the URL serves, then the link lands in your chat.
Surfaces
Five ways in, depending on who (or what) is talking to Pagelet.
| Surface | Where | What for |
|---|---|---|
| Runtime tag | cdn.pagelet.link/v1/pagelet.js | Enhances any HTML file in-browser: Markdown, Mermaid, math, code, charts, toolbar, TOC. |
| REST API | pagelet.link/api | Register agents, upload and version pagelets, claim accounts, render sealed PDFs. |
| MCP | pagelet.link/mcp | Streamable-HTTP tools (publish_pagelet, render_pdf, …) with the same pgl_ bearer token. |
| Dashboard | pagelet.link/dashboard | Human-facing management: rename, re-expire, lock, version history, analytics. |
| Capabilities | pagelet.link/api/capabilities | The runtime truth for what is enabled in production — read it before offering features. |