Contributing
Thanks for helping improve Ryot. This page shows how to run Ryot from source and what happens when you open a pull request.
Prerequisites
Section titled “Prerequisites”Set up a development environment
Section titled “Set up a development environment”-
Install dependencies:
Terminal window bun install -
Start PostgreSQL and local S3-compatible storage:
Terminal window bun run docker:upThis creates the
postgresdatabase and the localryotstorage bucket. -
Create
apps/server/.envwith these settings:apps/server/.env FILE_STORAGE_S3_BUCKET_NAME=ryotFRONTEND_URL=http://localhost:3005FILE_STORAGE_S3_URL=http://localhost:9000FILE_STORAGE_S3_ACCESS_KEY_ID=rustfsadminFILE_STORAGE_S3_SECRET_ACCESS_KEY=rustfsadminDATABASE_URL=postgresql://postgres:postgres@localhost:5432/postgresSERVER_ADMIN_ACCESS_TOKEN=super-secret-token-that-should-be-changed -
Start the server and the web app, each in its own terminal:
Terminal window bun turbo --filter=@ryot-app/server devbun turbo --filter=@ryot-app/kernel-client devOpen
http://localhost:3005. The server task also builds the shipped plugins and rebuilds them when you change them.
Optional: traces and metrics
Section titled “Optional: traces and metrics”Start the observability services and point the server at the collector:
docker compose -f ci/dev/docker-compose.yml --profile observability up -dThen add OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 to apps/server/.env. Leave that
setting out when the collector is not running.
Validate your changes
Section titled “Validate your changes”Follow the validation steps in the root AGENTS.md before you submit: make the affected packages’
checks pass, then run their tests. At the end, bun run check must pass for the whole repository.
Pull requests
Section titled “Pull requests”PR Validation runs on every pull request. It builds the Linux image for both architectures from the PR’s merge commit and checks all six sandbox runtime keys. Full sandbox and backend tests run when a change touches the backend, sandbox, server, packages, plugins or shared build inputs. Kubernetes acceptance tests run for chart, deployment or shared build-input changes. Release tags require full validation.
To try an open pull request from this repository as an image, wait for PR Validation to succeed,
then run Publish PR Preview from the default branch with the PR number. Pull the result as
ghcr.io/ignisda/ryot-preview:pr-<number>. The preview follows the validated merge commit. Use
Main Publication on the default branch to republish the current main image.
Contributor License Agreement
Section titled “Contributor License Agreement”External contributors must sign the Ryot Individual Contributor License Agreement before a pull request can be merged. CLA Assistant asks for an electronic signature on the pull request.
Only submit work that you have the right to contribute. If an employer or someone else may own rights in your contribution, get their permission first, and identify any third-party material and its license in the pull request.