Host and operate it
An artifact host runs the core, authenticates callers, stores versions and serves pages under the artifact security policy. You can host it independently of Artifactkit Cloud.
Choose storage for your writers
| Adapter | Good starting point | Operational boundary |
|---|---|---|
| Memory | Local exploration and tests | Data is lost on restart |
| Filesystem | A personal or single-process host | One process with a persistent volume |
| Cloudflare KV | A lightweight Worker host | Eventual listings and no compare-and-set across writers |
| Postgres | Multiple agents or processes writing concurrently | Operate a database and backups |
| Supabase | Managed Postgres via the provided RPC adapter | Keep service-role credentials server-side |
For concurrent agents on separate host instances, use a store with atomic conditional writes. Store capabilities documents the tradeoffs.
Run a Node host
Use the source quickstart to verify the host locally. Replace the memory adapter with a persistent adapter, configure authentication, and put the fetch handler behind your HTTPS server or proxy.
The development demo is an example, not a production identity service. Configure secrets, authenticated owners, backups and process supervision for your deployment.
Run on Cloudflare
The repository includes a Worker example and Wrangler configuration. Create a KV namespace, configure its binding, provide a fresh VIEW_SECRET, and deploy under a domain you control. Cloudflare is an optional adapter, not a requirement.
Use Postgres if concurrent writers or event-log guarantees exceed KV’s capabilities. The Supabase guide covers that adapter.
Keep untrusted pages on a separate origin
Host generated artifact pages separately from your authenticated console and marketing site. Preserve the core’s sandbox and content security policy. Do not relax them to make an artifact work; adjust the artifact or its configured allowlist instead.
For the planned managed service, the domain layout is:
| Hostname | Role |
|---|---|
artifactkit.dev | Public website and documentation |
developers.artifactkit.dev | Documentation entry alias |
app.artifactkit.dev | Future authenticated console |
api.artifactkit.dev | Future authenticated REST API |
mcp.artifactkit.dev/mcp | Future remote MCP endpoint |
artifacts.artifactkit.dev | Future generated artifact pages |
This is the intended layout, not a claim that those services or DNS records are active. Self-hosters can use their own domains.
Guides for running artifactkit and the planned hosted service.