A TypeScript-native Postgres client with code generation capabilities. Version 0.1.0 is the initial release, offering a query builder and type-safe SQL execution. It differentiates itself by generating TypeScript types from your database schema, reducing boilerplate and runtime errors. Built on top of the popular 'pg' driver, it requires peer dependencies 'pg', 'postgres-interval', and 'postgres-range'. Still in early development, with a focus on developer experience and type safety.
npm install tuskenNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to Postgres using environment variables, runs a parameterized query, and closes the connection.
Pin to a specific version and test upgrades.
Run 'npm install pg' alongside tusken.
Use 'import' syntax or ensure your project is configured for ESM.
Always use 'db.query(sql`...`)' for parameterized queries.
Run 'npm install tusken pg'
Make sure to call 'tusken(options)' and use the returned object.
Use 'import { tusken } from 'tusken'' in an ESM context, or switch to a bundler that supports ESM.Run 'npm install pg'.