Ream (formerly artifacts)
A self-hosted page publisher: agents publish an HTML
page over a keyed API and get back a stable URL. A person views published pages
in a gallery behind a sign-in; each page is served from its own
<id>.<content domain> hostname behind a capability token in the URL.
Development
uv run pytest # run tests
uv run ruff check src tests # lint
Requires Python 3.12 exactly (pinned in .python-version) — a later task's
test dependency (pgserver) has no wheels for 3.13+.
Run locally
export DATABASE_URL=postgresql://... # a real Postgres; migrate() runs on startup
uv run uvicorn ream.serve:app_from_env --factory --reload
The router is fail-closed: /healthz only answers 200 with the gallery's own
Host (the host of REAM_GALLERY_ORIGIN; localhost:8000 on a fresh install)
and 404 on anything else, so curl it with that Host header, not the
bare address.
Mint a key for an agent
A token is generated where it will be used and never crosses a terminal, a transcript, or a network hop — only its SHA-256 is ever registered:
# On the machine (or pod) that will hold the key:
artifacts-admin new-key --agent my-agent --out <your key file>
# Then, with the sha256 that command just printed, on the running pod:
kubectl -n artifacts exec deploy/artifacts -- artifacts-admin register-key \
--agent my-agent --sha256 <the printed sha256>
artifacts-admin revoke-key <key_id> and artifacts-admin list-keys manage
keys from there; neither ever prints a token.
The skill
One skill, GET /api/v1/skill.md (open, no key), in the open SKILL.md format: save it wherever
your agent keeps skills. It is named ream and fires whenever the agent shows or shares something
beyond a short chat answer (a report, a plan, a chart, a diagram, a comparison), not only on the
words "page" or "publish". With a key set up it publishes to Ream instead of a host's built-in
artifacts or canvas panel; with none it falls back to that panel and says why. A page carries a
question only when the agent is blocked on the person or needs their choice. It names no house, so
it works for any agent on any host; a deployment's own skill adds only its look and keys.
Publish a page
The command is ream, with a verb for each job (ream publish, ream ask,
ream wait; ream --help lists them). The older artifacts-publish,
artifacts-decide and the other artifacts-* commands keep working for good,
as do the ARTIFACTS_* settings, and /api/v1/artifacts answers exactly as
/api/v1/pages does (the same handlers, so a POST to either works).
ream publish page.html --title "My page"
ream publish page.html --update <id> # after editing page.html
ream publish --list
Where the key comes from, in the order to prefer:
# A vault hands it over on a descriptor; no cleartext copy exists. Where keys are
# vaulted, a wrapper does it (here `artifacts-key`, with your seat's name):
ARTIFACTS_SEAT=<seat> artifacts-key -- ream publish page.html --title "My page"
# Or any store of your own that can open one:
ream publish --key-fd 3 page.html --title "My page" 3< <(pass show artifacts/key)
# Or a file, mode 600 -- it refuses anything looser:
REAM_KEY_FILE=~/.config/artifacts/key ream publish --list
Tidy one up
Everything Jeremy can do to a page in the gallery, an agent can do to its own pages — his rule, 20 Sep 2026: "ideally agents can take all the same actions a human can." None of these send the body, so none of them needs the file:
ream publish --rename <id> --title "Its real name"
ream publish --archive <id> # off the wall; nothing is deleted
ream publish --unarchive <id>
ream publish --pin <id> # leads the gallery
ream publish --unpin <id>
ream publish --duplicate <id> # a copy at a new address
Over HTTP these are POST /api/v1/pages/{id}/{archive,rename,pin}, each
scoped to the calling key's own agent: another seat's page answers 404, and so
does a page that does not exist — the same 404, so a key cannot be used to
learn which ids are real.
$REAM_API (default https://artifacts.tenfourty.site/api/v1) and
$REAM_KEY_FILE (default ~/.config/artifacts/key) point it elsewhere;
--key-file overrides both for one call.
How deploys happen
Every push to main runs .forgejo/workflows/ci.yml: tests, then an image
build pushed to the forge's registry as <repo>:<sha12>, then a pull request on
the deployment's own repo that moves its core.lock to that image
(.forgejo/scripts/core-lock-pr.sh). That repo builds the deployed image and opens
the pin PR; production moves when that PR is merged. The runbook is
docs/agent/runbooks/image-from-ream-homelab.md. This repo keeps no deployment
values: they are in the deployment's own repo.
Metadata
Release files for ream-artifacts 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ream_artifacts-0.1.0.tar.gz | 790.5 kB | With provenance | Details for ream_artifacts-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ream_artifacts-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for ream_artifacts-0.1.0-py3-none-any.whl |
Total release size: 1.7 MB
Release files / ream_artifacts-0.1.0.tar.gz
| Download URL | ream_artifacts-0.1.0.tar.gz |
|---|---|
| Size | 790.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d8e740e37aa3740b7ced6b3869ee26f045622ebef3d004a97edb33c4b230304c
|
|
BLAKE2b-256 checksum How to use checksums |
e59b6ca2e0c890d9a389bedba038f3a78b32d94e39fca2ba13a02764e3311f2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.
Transparency logRelease files / ream_artifacts-0.1.0-py3-none-any.whl
| Download URL | ream_artifacts-0.1.0-py3-none-any.whl |
|---|---|
| Size | 869.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b7888cefc62e9bbc63f6bb48f67afc9d88758a8fdeb5b7a166b55c5ee39c3248
|
|
BLAKE2b-256 checksum How to use checksums |
940d985ab4d4434f957f6fd494290c7069f1a8fe545989f5c87abae4bb27ace5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.
Transparency logSecurity for ream-artifacts 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for ream_artifacts-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.