Run locally
Start the full Trust Stack stack and its self-hosted handbook.
The monorepo contains the dApp, marketing and public-proof site, Go indexer API, PostgreSQL-backed local services, TypeScript packages, Move packages, and this documentation portal.
Prerequisites
- Node.js and pnpm versions compatible with the repository lockfile
- Docker Desktop or another Docker-compatible engine
- Go for direct indexer development
- the pinned Supra validator image for deterministic Move tests
Install and start frontends
From the repository root:
pnpm install --frozen-lockfile
pnpm --filter @workspace/marketing dev
pnpm --filter @workspace/dapp dev
pnpm --filter @workspace/docs devThe default local URLs are:
| Service | URL |
|---|---|
| Marketing and public proofs | http://localhost:3000 |
| Trust Stack dApp | http://localhost:3001 |
| Documentation | http://localhost:3002 |
| Indexer API health | http://localhost:8080/healthz |
Start the service stack
Use the repository's local Docker Compose configuration for PostgreSQL and the indexer API. Keep
credentials in local environment files; do not commit them. Confirm both /healthz and /readyz
before using indexed pages.
Verify before changing behavior
pnpm check
pnpm test
pnpm test:e2eRun Move tests with the exact image and framework pin recorded in
move/trust-stack/README.md. The command there mounts only the Move package, runs the Supra CLI in
the container, and produces instruction coverage.
Environment boundaries
NEXT_PUBLIC_API_BASE_URLselects the read-only indexer origin.NEXT_PUBLIC_DAPP_URLlinks marketing and docs to the dApp.NEXT_PUBLIC_MARKETING_URLlinks the dApp back to public proofs.- wallet writes still target the typed, checked-in chain ID and package addresses.
Do not point a local browser at mainnet simply by changing an environment variable. Network and deployment promotion require an explicit release and audit decision.