Skip to content

Guides

Task-shaped walkthroughs. Each one assumes you have read the relevant architecture page and want to know the specific steps.

Getting started

GuideFor
Local developmentRunning the whole stack on your machine — and the production-database trap
Repository tourWhere things are, and what to ignore

Extending the platform

GuideTouches
Add a liquidity providerswap-sdk + bz-backend (+ defi-dex if special-cased)
Add an AI intent9 files across 3 repos
Add a chainDatabase seed, contract deploy, SDK release
Add an SEO landing pagedefi-dex data modules + three route lists
Add an Autopilot triggerPolicy schema, engine, FE mirror

Working practices

GuideFor
TestingWhat tests exist, what does not, and what to run before shipping
Debugging a stuck tradeA user says their swap did not arrive
Curating token lists"USDT is missing on chain X"

Ground rules

A few things apply to every task in this section.

Local development points at production

bz-backend's local .env uses the production Atlas connection string, and Network Access allows rotating developer IPs. Set CRON=false before you start, and read local development before running any of the loose maintenance scripts at the repo root.

vite build is the gate, not tsc

npx tsc --noEmit in defi-dex reports roughly 3,300 pre-existing errors from node_modules. Do not chase them as part of an unrelated change.

Bumping swap-sdk needs the lockfile too

npm install github:blazpay/swap-sdk#vX.Y.Z --package-lock-only, then commit both package.json and package-lock.json. Skipping the lock silently installs the old version.

No Co-Authored-By trailer on commits

Do not append a Co-Authored-By: or AI-generated trailer.

Which branch

RepoBranchNotes
bz-backendbishtNewDeployed with ./scripts/deploy.gcp.sh
bz-agentmainBuilt on the VM
defi-dexoptimizedNetlify auto-builds. main is ~80 commits behind and stale
swap-sdktags vX.Y.ZConsumed as a git dependency

Internal + developer documentation. Usage figures are point-in-time snapshots — re-verify before publishing them.