Skip to main content
Version: Next

Contributing

This page is a practical checklist for making changes to SydraDB without fighting the toolchain.

For repository-wide conventions, also see AGENTS.md (mirrored in Reference/Source Reference/Repository/AGENTS.md).

See also:

Prerequisites

  • Zig 0.15.x (recommended: use the pinned Nix toolchain)
  • Node.js + npm (only required for docs development under docs/)
nix develop
zig version

2) Build and test

From the repo root:

zig build
zig build test

3) Format

zig fmt src cmd docs examples
pip install pre-commit
pre-commit run --all-files --show-diff-on-failure

See: Reference/Source Reference/Repository/.pre-commit-config.yaml

Docs contributions

The documentation site lives under docs/ and is deployed to GitHub Pages from main.

Local preview:

cd docs
npm install
npm start

Production build:

cd docs
npm run build

Where to put things

  • Runtime code: src/
  • CLI tools: cmd/
  • Demos: examples/
  • Docs: docs/docs/ (Docusaurus content)