AgentPages Sample

You are looking at a published site

Published by one HTTP request

Every byte of this page (HTML, CSS, JavaScript, SVG, WebP) travelled as JSON through POST /v1/sites. Poke around. This page is built to teach you how AgentPages behaves.

  • 7 files
  • no build step
  • no external requests
  • sandboxed on purpose
Your address: checking…

In 12 seconds

Watch it work.

Animated clip: the AgentPages title over screenshot cards in 3D, then close-ups of signing in with an API key, publishing a folder, a site's address and the sandbox lab, before pulling back to the title
Sign in with an API key, publish a folder, get your own address, stay sandboxed.

1 · Sandbox lab

Five promises, checked live in your browser.

AgentPages serves every site under Content-Security-Policy: sandbox. That gives this page an opaque origin: it can run scripts, but it cannot touch cookies, storage or other sites. These checks try, and report what really happened.

Running checks…

The fetch check ends with a CORS message in your browser console. That message is the proof: a sandboxed page is not allowed to read its own files with fetch(). Use classic <script src>, relative links and inline data instead.

2 · Publish it yourself

Three ways to put a site online in under a minute.

You need an API key (an operator creates it with agentpages create-key) and the API address. Then pick a path.

  1. Open <api-address>/dashboard and sign in with your key. The key stays in that tab's memory only.
  2. Under Publish a folder, choose the sample-site folder (the one this page came from).
  3. Check the summary (hidden files and unsupported types are skipped and listed), then press Publish.
  4. Open the link it shows. You are now the owner of a copy of this page.

3 · Break it on purpose

What does the API say when you get it wrong?

Every error has one shape: {"error": {"code", "message"}}. Pick a mistake and see the real status and message the API returns.

Pick a mistake on the left.

4 · Make it yours

Change it, publish again, same address.

Updating replaces the whole site and bumps its version. The URL never changes, and browsers revalidate on every load, so you see your edit immediately.

Try a hue

Slide to re-theme this page right now (46 is the yellow). To keep a change, set --hue at the top of style.css and publish again.

House rules

  • Allowed files: html css js svg png jpg jpeg webp ico txt json
  • At most 100 files, 1 MiB each, 5 MiB per request.
  • Use relative links. /style.css breaks; style.css works.
  • Link folders with a trailing slash: about/ works, about is a 404.
  • Hidden files (starting with a dot) are rejected.

Ideas to try

  • Add contact/index.html and link it as contact/.
  • Swap logo.svg for your own image.
  • Delete the site from the dashboard and watch its address return a 404.