Production Hono patterns — zValidator hooks, typed generics, error handling, middleware composition, testing, and multi-runtime deployment
87
80%
Does it follow best practices?
Impact
98%
2.57xAverage score across 5 eval scenarios
Passed
No known issues
Build a personal bookmark manager API using Hono and TypeScript, targeting Bun.
Endpoints:
POST /api/bookmarks -- create a bookmark (fields: url, title, tags array, description optional)GET /api/bookmarks -- list all bookmarks, optionally filtered by tag via query param ?tag=GET /api/bookmarks/:id -- get a single bookmarkPATCH /api/bookmarks/:id -- update a bookmark's title, tags, or descriptionDELETE /api/bookmarks/:id -- delete a bookmarkBusiness rules:
Use in-memory storage.
Produce:
src/app.ts -- Hono application with middleware and routessrc/index.ts -- Bun entry pointsrc/routes/bookmarks.ts -- bookmark CRUD handlerssrc/schemas.ts -- Zod schemas for validationpackage.json -- with dependencies listed (no need to install)You may create additional files as needed.