D3One Contract, Written in Zod
Schemas in packages/contracts validate requests on the server and responses in the browser, and the types are inferred from them.
Trade-off: a contract change means rebuilding the package for both apps.
D5A Modular Monolith on NestJS
One deployable, one module per demo: clear boundaries without network hops between them.
Trade-off: modules scale together; extracting a service later needs an explicit interface.
D13Native WebSocket, Not Socket.IO
The browser’s WebSocket needs no client library, and the reconnect policy lives in one hook.
Trade-off: no built-in rooms or fallback transports; the stream is one-way.
D14Workflows In-Process, State in PostgreSQL
A reload or a restart loses no run, and versioned updates stop a node from running twice.
Trade-off: execution stays in one process; distributed workers would need a queue.
D17Canvas Charts with uPlot
SVG through React would re-render for every point; a canvas holds the frame rate at 1,500 events per second.
Trade-off: a canvas is invisible to screen readers, so the charts carry hidden tables or descriptions.
D18AI Search Replays Recorded Traces
Multilingual behaviour is shown honestly without calling a model, while the code steps run live.
Trade-off: visitors cannot type their own request.