Hacker Times
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
blackoil
on May 19, 2025
|
parent
|
context
|
favorite
| on:
Zod 4
We use drizzle + Hono + client with zod. So the entire chain from ui to client to server to DB follow same validation and shape.
dalmo3
on May 21, 2025
|
next
[–]
How do you use the same validation for drizzle and zod? I have been writing duplicate schemas and hoping they match...
blackoil
on May 24, 2025
|
parent
|
next
[–]
Drizzle has a zod addon, to generate zod schema from table defn. So table defn is source of truth, we mix generated zod schemas to get hono request validators. Same zod schema are also used on client to validate forms.
causal
on May 19, 2025
|
prev
[–]
I've heard of this stack, glad to hear it works, still hate that you need three separate external dependencies to do it
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: