Sites
Publish what your agent makes
An agent builds a report, a dashboard or a prototype. Sites puts it on its own address, and every publish after that is a new version of the same site.
Quarterly report
Revenue by month
- Versions
- v3Live
- v2Yesterday
- v1Monday
How a site goes live
From a folder of files to a live address
Five moments in the life of one site, from the end of an agent's run to the console where the team finds it.
- Run finished: 4 filesq3-report.evs.runNothing published here yet
Agent output157 KB
- q3-report/
- index.html18 KB
- assets/
- app.js91 KB
- chart.css6 KB
- data.json42 KB
An agent finishes with a folder of files
A run ends with something to show: an index page, a script, a stylesheet and the data behind them. They are ordinary static files, the same ones you could open from disk.
- POST /v1/publishq3-report.evs.runNothing published here yet
Uploading version 34 upload URLs
- index.html
- assets/app.js
- assets/chart.css
- data.json
Each URL is valid for 15 minutes
POST /v1/publish
The manifest goes up, and each file gets a slot
The agent sends one request listing every file with its size and type. The reply holds a version number and an upload URL for each file. The files go straight to storage, and each URL stays valid for 15 minutes.
- POST /v1/publish/q3-report/finalizeq3-report.evs.runQuarterly reportRevenue by monthv3
Finalize version 34 of 4
- index.htmlVerified
- assets/app.jsVerified
- assets/chart.cssVerified
- data.jsonVerified
Version 3 is live
POST /v1/publish/{slug}/finalize
Finalize checks every file, then the address switches
One more request asks Everstack to finalize. It verifies that every file in the manifest arrived, then moves the address to the new version in one step. A publish that is missing a file never goes live.
- Version 4 finalizedq3-report.evs.runQuarterly reportRevenue by monthv4
Versions
- v4Live
- v3Earlier
Same address, new version. The address moved once all 4 files were verified.
POST /v1/publish
Publish again and the address moves on
The next run publishes to the same slug. That makes version 4 instead of editing version 3 in place. Visitors keep seeing version 3 until every file of version 4 is verified, then the address moves to it.
- GET /v1/sitesConsole: Sites
Sites
Name Version Size Published q3-report v4 157 KB Just now eval-results v12 2.4 MB Today nightly-status v31 640 KB Yesterday q3-reportSite
- Status
- Active
- Access
- noindex
- Version
- 4
- Files
- 4, 157 KB
- Published
- Just now
GET /v1/sites
Your team sees it in the console
The console lists every site the team has published, with its status, size, current version and dates, and can delete one. An agent can read the same list with one request.
Agent output157 KB
- q3-report/
- index.html18 KB
- assets/
- app.js91 KB
- chart.css6 KB
- data.json42 KB
In code
Three calls from files to a live address
It is a plain HTTP API, so any agent or script that can make a request can publish.
- The same API key as the rest of Everstack.
- Leave out the slug and Everstack makes one. Slugs are lowercase.
- Upload URLs stay valid for 15 minutes.
- Finalize answers with the address, https://{slug}.evs.run.
curl -X POST "$EVERSTACK_BASE_URL/v1/publish" \
-H "Authorization: Bearer $EVERSTACK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"slug": "q3-report",
"access": "SITE_ACCESS_NOINDEX",
"files": [
{ "path": "index.html", "sizeBytes": 18204, "contentType": "text/html" },
{ "path": "assets/app.js", "sizeBytes": 91377, "contentType": "text/javascript" }
]
}'
# The reply names the version, an upload URL for each file
# and the token that finalizes it.What agents publish
Anything an agent can turn into a page
If the result is HTML, CSS, scripts and data, it can have its own address. Some of the work it fits:
A weekly report
An agent gathers the week's numbers, writes them up as a page and publishes to the same slug each week. The link people bookmarked keeps working.
A dashboard from a data run
A job crunches a dataset and ships the charts with the data file beside them, so the page loads it in the browser.
A prototype for review
A coding agent builds a single-page app and sends a link. With the fallback on, every route loads on refresh.
Generated docs
Reference pages written from a codebase or an API, republished whenever the source changes.
An eval results page
Scores, failures and side-by-side outputs from an evaluation, laid out as a page the team can read instead of a log.
A status page for a long job
An agent working for hours republishes a short page as it goes, so anyone with the link can see how far it has got.
What a site gets
Hosting built for output, not for projects
There is no repository to connect and no build to configure. You hand over the files an agent already made and get a link to share.
An address of its own
Every site is served at its own name under evs.run. Pick the name or let Everstack make one.
A version for every publish
Publishing again never edits the site in place. It makes the next numbered version, and the address moves to it when that version is complete.
Nothing half published
Finalize verifies the uploads before anything changes. Visitors see the old version or the new one, never a mix.
Single-page apps work
Turn on the fallback and any path that is not a file serves your index page, so client-side routes load on refresh.
Kept out of search
Set access to noindex and the site is served with noindex, so search engines are asked not to list it. Anyone with the link can still open it.
Quotas and takedown
Each team has a limit on sites and storage. Anyone can report a site, and an operator can take one offline at once.
- files in a site
- 2,000
- files in a site
- for one file
- 100 MiB
- for one file
- for a whole site
- 250 MiB
- for a whole site
- HTML, CSS, JS and assets
- Static
- HTML, CSS, JS and assets
Sites serves static files only, and anyone with a site's link can open it. Code that has to run on a server belongs in Functions. Each team also has a quota on sites and storage, set by its plan.
API reference
The calls you will use
Publishing and managing sites use the same API key as the rest of Everstack. Uploads go straight to the URL each file was given.
POST/v1/publish- Start a publish. Send the manifest: an optional slug, each file's path, size and type, the fallback and the access setting. The reply holds the slug, the version number, an upload URL with its headers for each file, and a finalize token.
PUT{uploadUrl}- Upload one file to the URL the publish returned for it, with the headers that came with it. Each URL is valid for 15 minutes.
POST/v1/publish/{slug}/finalize- Verify every upload and switch the address to the new version. The reply holds the address, https://{slug}.evs.run.
GET/v1/sites- List the team's sites, a page at a time.
GET/v1/sites/{slug}- One site: its status (active, expired or disabled), access, fallback, current version, file count, total size, address, and when it was created and last published.
PATCH/v1/sites/{slug}- Change the single-page app fallback or the access setting.
DELETE/v1/sites/{slug}- Delete the site.
POST/v1/sites/{slug}/report- Report a site for abuse, with a reason. Anyone can send one, and the reply does not say whether the site exists.
GET/v1/hosting/capabilities- Whether Sites is switched on for this deployment, and the domain sites are served under.
Questions
Before you publish
Who can open a site?
Anyone with the link. A site's access is public, or noindex: served with noindex so search engines are asked not to list it. Either way, the link is all anyone needs.
What happens when I publish again?
You get the next numbered version of the same site. Its files upload while the current version keeps serving, and the address moves to the new one only after finalize has verified every file. A publish that never completes never goes live.
Can I host an app with a backend?
Not on Sites: it serves static files only. A single-page app works, with the fallback on so client-side routes load. Code that has to run on a server belongs in Functions.
How big can a site be?
Up to 2,000 files, 100 MiB for one file and 250 MiB for the whole site. Each team also has a quota on how many sites it keeps and how much storage they use, set by its plan. See pricing.
How do agents publish?
With three HTTP requests and the team's API key: send the manifest, upload each file, then finalize. An agent can make them from wherever it runs, for example a sandbox or a function.
Does it work self-hosted?
Yes. Your deployment needs an object storage bucket configured first (Sites uses Cloudflare R2 settings), and then Sites can be switched on.
Related
Around Sites
Functions
For code that runs on a server, beside the pages Sites serves.
Sandboxes
Where an agent builds the files, and can make the publish calls from.
Pricing
How many sites and how much site storage each plan includes.
Put Everstack in front of your next request
Run it yourself in a few minutes, or start on Everstack Cloud with your own provider keys.
Star on GitHubOpen source under Apache 2.0. A star helps others find it.
