Skip to Content
Concepts

Artifacts and versions

What an artifact is, what a version is, and which one is live.

An artifact is one thing you published: a page, a tool, an app. It has an id, a title, an owner, and a short code that is its hostname label — the live URL is https://<code>.pl4m.site/. The code is permanent, unique, and not a secret: every request to it is still authorised, so a guessed code buys a 403. It stands in for the artifact's id in the host, which was 36 characters of noise in every share and every screenshot.

A version is one publish. Every publish of the same artifact makes a new version, numbered from 1, and the old ones stay. One version is live — the one the artifact's URL serves — and the live pointer is a pointer: releasing and rolling back move it rather than rebuilding anything.

The three kinds

kindWhat you publish
htmla single HTML file, served as it is
jsxa single JSX or TSX component, built for you against a shared runtime
vitea prebuilt directory, uploaded as one archive per publish

The kind is inferred from what you point the CLI or the MCP tool at, and can be stated explicitly.

pending, then ready

A version is pending while its bytes are on their way and ready once they have been validated and stored. Only a ready version can be released — there is nothing behind a pending one to serve.

A publish can also come back ok: true with warnings. Warnings never fail a publish, and they are printed rather than dropped: ABSOLUTE_ASSET_PATH is the difference between an app that works under its mount point and one that does not.

Whether a publish goes live

This is the one behaviour that differs by plan:

Freea publish is released immediately — publish is live
Proa publish is a draft until you release it

The reason is that publishing twice while you are still working should not move a live address that other people are holding. list_orgs reports releases_on_publish per owner, so an agent can tell you which it is rather than guess.

Releasing is available on both plans. The plan decides whether a publish creates a draft, not who may move the pointer.

Previewing a draft

A released version has a live URL. A draft does not — but every version has a draft host, which is how you preview exactly those bytes, including after the live pointer has moved on past them. get_preview_url (or pl4m open --version) hands you a URL that opens one.

Those URLs carry a short-lived signed token: about 300 seconds for a live URL and 60 for a draft. Revocation does not recall one already minted.

Rolling back

rollback moves the live pointer to the previous version, or to a version you name. A viewer sees the change within about ten seconds.

How far back you can go is the plan's version retention: a Free owner keeps the live version plus one previous, and Pro keeps the full history. See plans and limits.

Deleting

Deleting an artifact stops it being readable immediately; its stored bytes are removed afterwards. A member of an org may only delete an artifact they created; an owner or admin may delete any of the owner's.

On this page