Contributing
Make one useful change, validate it in the right runtime, and explain what you tested. The repository has separate checks for each major project.
Before you change code
Section titled “Before you change code”Read the BUSL-1.1 license and risk disclaimer. OpenTrading is source-available, not OSI open source. Third-party components keep their own licenses.
For application development, follow Local development. You need
Node.js 24 and npm, Rust via rustup, and database services for workflows that use
them. Backend checks use the toolchain selected in backend/rust-toolchain.toml.
WASM and Tauri have their own manifests and lockfiles.
Repository metadata checks also need jq; advisory checks need cargo-audit
and cargo-deny. Tauri requires its platform-specific system libraries.
Choose a starting point
Section titled “Choose a starting point”| Change | Start here | Validate |
|---|---|---|
| Workstation UI | frontend/apps/www/ |
Frontend checks and the affected browser workflow |
| Application API | frontend/apps/api/ |
API tests and the caller that uses the contract |
| Rust services | backend/crates/ |
Backend CI checks and the affected service |
| Indicators/WASM | backend/crates/indicators/, wasm/src/ |
WASM checks, regenerate bindings, frontend validation |
| MCP tools | backend/crates/mcp/ |
Catalog/schema consistency and domain smoke tests |
| Product guides | docs/, subsystem README files |
Documentation checks and command/source accuracy |
Use Architecture to follow the boundary you are changing. Keep a fix focused; do not combine an unrelated dependency update with a behavior change.
Run the relevant checks
Section titled “Run the relevant checks”Run these from the product repository root. Install frontend dependencies
with cd frontend && npm ci before running frontend checks.
make metadata-check check-license-headers test-license-headers test-release test-docsChoose the checks covering your changes:
make ci-backendmake ci-wasmmake lint-frontend test-frontendmake ci-backend includes formatting, a locked workspace check, Clippy, tests,
and rustdoc. make ci-wasm compiles/lints the browser target and runs host tests.
Expected outcome: the selected targets exit successfully; investigate the
first failing target rather than treating a partial run as a pass.
Additional checks have additional prerequisites:
make msrvmake ci-taurimake audit audit-wasm audit-tauri denyRun these when applicable and distinguish missing tools or platform libraries from test failures. The three Rust lockfiles are audited separately.
Verify what CI does not prove
Section titled “Verify what CI does not prove”- A container health smoke test does not exercise complete user workflows.
- Host WASM tests do not prove browser execution. Rebuild with
make packwhen changing bindings, then verify the frontend. - Frontend E2E/scenario scripts may need browsers and running services; they are not all included in the default CI workflow.
- Tauri packaging and behavior depend on the host platform.
make format modifies backend files; make format-check only checks them.
make doc generates ignored Rust API docs under docs/api-rust/.
Do not replace authored documentation with generated output.
Prepare the contribution
Section titled “Prepare the contribution”- Describe the user-visible problem and the smallest useful solution.
- Update directly related documentation or configuration examples.
- List the exact checks and runtime workflows you ran, plus anything not tested.
- Exclude credentials, private session data, incidental build outputs and unrelated changes.
- Preserve third-party license notices. Do not apply project headers blindly to generated, vendored, or binary files.
Version changes belong to the release procedure, not every contribution. For sensitive reports, use Security rather than a public issue.
Source: Contributing and CI.