corridor-in-a-box

Getting started

corepack enable && pnpm install
pnpm lint        # eslint + prettier
pnpm typecheck   # whole monorepo, one tsc pass
pnpm test        # vitest: engine, manifest, money, sep31, stellar, service
pnpm example     # run a payment end-to-end (mocked anchor + settle)
pnpm cli plan corridors/reference.corridor.yaml   # offline liveness check

pnpm example walks a payment through every state and proves idempotency:

created -> quoted -> compliant -> opened -> settling -> settled -> reconciled -> completed
replay with same key -> idempotent return (state=completed)

This web app

cd web
pnpm install
pnpm dev   # http://localhost:3000

The Run a payment page drives a faithful simulation of the engine. Set CORRIDOR_SERVICE_URL to point it at a real @corridor/service instance.