Documentation
Contribute

Contribute to Open Artifact

You can contribute code, examples, documentation, or bug reports. Start with a change you can describe and test.

Browse the source (opens in a new tab) and check existing issues (opens in a new tab) before starting. For a large change, open an issue first so the shape of the work is easy to discuss.

Run the server from source

You need Rust 1.89+, Node.js 24+, npm, and a C compiler for SQLite and QuickJS.

npm ci
npm run build
cp .env.example .env

Edit .env to set real local credentials. The template’s HOST=127.0.0.1, DATA_DIR=./data, and PUBLIC_URL=http://localhost:3000 are appropriate for this source-development setup.

set -a
source .env
set +a
cargo run --locked

Open http://localhost:3000. To work on the separate public website, see Website & Cloudflare.

Run the checks

npx playwright install --with-deps chromium
npm run check

This runs Rust formatting, Clippy, sandbox unit tests, and end-to-end evals with the official MCP client and a real browser. The suite covers state persistence, shares, isolation, components, accessibility, browser authorization, token rotation, and credential changes. The installer prompt check uses Python 3 and a real terminal on Linux or macOS. It uses no paid model API.

For deployment packaging:

docker build -t open-artifact:eval .
npm run eval:container

The container eval disables networking and checks the full shadcn/Tailwind build, component edits, actions, assets, and persistence after container replacement. It removes its temporary container and volume afterward.

The small WebM fixture in evals/fixtures/clip.webm is synthetic test media used to check local video playback and seeking.

Send a pull request

  1. Fork the repo and make a focused branch.
  2. Explain the problem and the behavior you want to improve.
  3. Keep changes to one clear purpose. Preserve existing artifact data and version semantics.
  4. Add a meaningful regression check when changing behavior. Include screenshots for visual changes.
  5. Run the relevant checks and open a pull request with your results.

Never include API tokens, passwords, private artifact state, or .env files. Keep third-party licenses when changing vendored code.

Choose a first contribution

  • Try the quickstart on your machine and improve an unclear step.
  • Build a small artifact and report a reproducible interaction or accessibility issue.
  • Add an example that teaches a useful pattern without adding a dependency.
  • Improve a component while preserving keyboard and screen-reader behavior.

The project is MIT licensed. See the license (opens in a new tab).