News for hackers. Stuff that matters.

Show HN: Clover – server routes augmented with Zod and OpenAPI

https://clover.sarim.garden/

I worked on a library I hope might be interesting to folks :)

Today, adding type safe wrappers to API routes (in frameworks like Next.js) requires reaching for solutions like TRPC or Zodios. I created a lighter weight alternative called Clover. It uses Zod for input validation and generates an OpenAPI schema. It also provides a type safe client. I welcome any feedback!

( 1 comment | on HN )
Re:Show HN: Clover – server routes augmented with Zod and Op... by felchang on Thursday May 11, 2023 @06:25PM (#35909171)
this is the best thing ever. if yalll want great technical writing, go to the explain it like im five page - https://clover.sarim.garden/eli5