Examples

End-to-end, runnable examples organized by feature area. Each example is self-contained and can be lifted into a fresh project.

REST

  • REST CRUD with validation — GET/POST/PUT/DELETE on a single resource, with inject(...) validation and NotFoundResponseDirective for 404.

HTML

WebSocket

Middleware

Worker

Scheduler + Key-Value Store

Pydantic AI


If you're new to EDRI, the REST CRUD with validation is the shortest end-to-end demonstration.