A comprehensive example demonstrating all features of Contract Kit
Interactive todo list demonstrating:
Auto-generated OpenAPI documentation from your contracts.
This example demonstrates:
Available API endpoints:
This example is running with an in-memory database. All data will be reset when the server restarts. Check out the source code to see how everything is wired together:
contracts/ - Contract definitions with Zod schemasuse-cases/ - Business logic layerlib/server.ts - Server setup with providerslib/ports.ts - Port definitionsproviders/ - Custom providersapp/api/ - Next.js API routescomponents/ - React components