Add class-based routing framework for Cloudflare Workers and Durable Objects
built on itty-router with automatic error handling, CORS support, and
comprehensive TypeScript types.
Features:
- WorkerRouter and DurableObjectRouter with fluent API
- RouteHandler base classes for organizing route logic
- Automatic JSON error responses with HttpError support
- Pre-configured CORS headers
- Full TypeScript support with generics
Testing:
- 107 tests (99 unit + 8 integration) with 95.98% coverage
- Unit tests for all core functionality
- Integration smoke tests with Miniflare
- Automated CI/CD ready
Documentation:
- TypeDoc-generated API docs with comprehensive JSDoc
- Auto-deploy to GitHub Pages on push
- README with quick start examples
- CONTRIBUTING.md with development guidelines