Lab Demo
This lab demo runs a full MaterialDNA/ProductDNA → 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/v1/stream (SSE)Event log
/api/v1/eventsMetrics
/api/metricsPrivacy notice
/api/privacyOptional API key protection
If you enable API key protection, write endpoints require an x-api-keyheader (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/v1/relayEvents stream
/api/v1/stream (SSE)Interop flow snapshot
Conceptual view of the four-step lab flow.
Event timeline preview
Sample output from the lab simulation script.