Developers
Local development
Install, run the stack, and the common workspace scripts.
Install
make install-hooks # gofmt/rustfmt/clippy pre-push hooks
pnpm install # apps/* and packages/*See Prerequisites for toolchain versions.
Run the stack
# Relay + Postgres + Redis
cd services/relay && docker compose up -d && go run .
# Web client
pnpm dev # runs relay + web together from the repo root
# or: pnpm --filter web devThe web client runs on :3000; the Relay on :8080.
Workspace scripts
| Script | Purpose |
|---|---|
pnpm build | Build all TypeScript packages/apps (Turbo) |
pnpm dev | Run the Relay + web client concurrently |
pnpm lint | Lint all packages (Turbo) |
pnpm format | Prettier over **/*.{ts,tsx,md} |
pnpm check-types | Typecheck all packages (Turbo) |
pnpm test | TypeScript + Go + Rust test suites |
Service commands
go -C services/relay test ./... # Relay
cargo test --manifest-path services/storage-node/Cargo.toml # Storage NodeToolchains
rust-toolchain.tomlpins the Rust channel (withrustfmt/clippy).services/relay/go.modsets the Go version.package.jsonsetsengines.nodeandpackageManager: pnpm.