Durcno is a TypeScript-native PostgreSQL query builder, migration manager, and type-safe database client designed for modern Node.js (v25.8.0+). Currently in alpha (v1.0.0-alpha.0), it requires Zod v4 as a peer dependency for runtime schema validation. It differentiates itself by leveraging Zod to infer TypeScript types directly from your database schema, enabling fully type-safe queries without code generation. Its migration system integrates with the query builder, allowing schema changes to be defined in the same DSL. Key differentiators include future-looking syntax, ESM-only, and deep TypeScript integration. Frequent alpha releases may introduce breaking changes.
npm install durcnoNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a database client, define a Zod schema, run a query with type inference, and parse the result.
Upgrade Node to v25.8.0 or later (e.g., use nvm or volta).
Ensure your project is configured for ESM (type: 'module' in package.json) or use dynamic import() from CJS.
Pin to a specific alpha version and test upgrades carefully.
Install zod@^4.3.6 explicitly in your project.
Use import instead of require, or use dynamic import('durcno') from a CommonJS module.Use import durcno from 'durcno' (default import).
Run npm install zod@^4.3.6.