Lab demo
Minimal interop flow (v0.1.1) in a controlled environment.
This lab demo runs a full MaterialDNA → Offer → Match → Transfer flow using the sandbox API. It is not a pilot or production deployment.
Run the demo locally
- Start infrastructureBring up Postgres + Redis + MinIO with docker compose.
- Execute the demoRun the single command to migrate, seed, and simulate.
- Review outputUse the timeline log and events stream for validation.
cp .env.docker.example .env.docker
docker compose --env-file .env.docker up -d
bun run lab:demoEvents stream
`/api/loop/stream` (SSE)
Event log
`/api/loop/events`
Metrics
`/api/metrics`
Privacy notice
`/api/privacy`
Optional API key protection
If you enable API key protection, write endpoints require an `x-api-key` header (or `Authorization: Bearer <key>`). This is optional and disabled by default.
API_KEY_ENABLED=true
API_KEY=change-meFederation relay demo (two nodes)
Spins up two local node instances and relays events to demonstrate lab-only federation messaging. Nodes share a single lab database for convenience and do not represent production federation.
bun run lab:federationRelay endpoint
`/api/loop/relay`
Events stream
`/api/loop/stream` (SSE)
Interop flow snapshot
Conceptual view of the four-step lab flow.
Event timeline preview
Sample output from the lab simulation script.