If you use Knex.js and TypeScript, you’ve probably fought the same problem I did:
your database schema, your types, and your runtime validation slowly drift apart.
So I built KnexBridge — a small CLI that introspects your database and generates
both TypeScript types and Zod schemas directly from it.
🚀 Quick Start
Install (no global deps needed):
bash
npx knexbridge generate
Top comments (1)
Thanks for checking this out! Would love feedback from anyone using Knex + TypeScript especially around PostgreSQL setups.