Installation
Install qbjs and configure peer dependencies for your project
Install the Package
Install @qbjs/core using your preferred package manager:
npm install @qbjs/core zodpnpm add @qbjs/core zodyarn add @qbjs/core zodPeer Dependencies
qbjs is designed to work with Hono and Drizzle ORM. You'll need to install these peer dependencies based on your use case:
Required for Drizzle Compilers
If you're using the Drizzle ORM compilers (PostgreSQL, MySQL, or SQLite), install Drizzle ORM:
npm install drizzle-ormpnpm add drizzle-ormyarn add drizzle-ormRequired for Hono Integration
If you're using qbjs with Hono and want OpenAPI schema support:
See full example hono with drizzle-orm here
npm install hono @hono/zod-openapipnpm add hono @hono/zod-openapiyarn add hono @hono/zod-openapiFull Installation
For a complete setup with Hono, Drizzle, and PostgreSQL:
npm install @qbjs/core drizzle-orm zodpnpm add @qbjs/core drizzle-orm zodyarn add @qbjs/core drizzle-orm zodVersion Requirements
qbjs requires Node.js 20 or later.
| Dependency | Minimum Version |
|---|---|
| Node.js | 20.x |
| drizzle-orm | >=0.45.1 |
| zod | >=4.2.1 |
TypeScript Configuration
qbjs is written in TypeScript and provides full type definitions. No additional @types packages are needed.
For the best experience, ensure your tsconfig.json includes:
{
"compilerOptions": {
"strict": true,
"moduleResolution": "bundler",
"esModuleInterop": true
}
}Next Steps
Now that you have qbjs installed, head to the Quick Start guide to build your first query.
