Why it exists
Most Go REST APIs reinvent pagination, filtering, and sorting for every project. Dewey pulls those patterns into small, composable, type-safe utilities that work with whatever database layer you already use.
Principles
- Zero dependencies: only the Go standard library
- ORM-agnostic: explicit adapter functions instead of assumptions about your stack
- No reflection: everything stays type-safe at compile time
- No magic: clear, simple code you can read and debug
What's inside
pagination: offset/limit pagination with metadata helperssort: multi-field ordering with type-safe field mappingsfilter: structured filters, full-text search, and custom predicates
Dewey is the API layer of the Strawberry stack and pairs with Curator on the frontend.