Installation
Get started with VibORM in your project
Installation
Prerequisites
- Node.js 18+ or Bun
- TypeScript 5.0+
- A supported database (PostgreSQL, MySQL, or SQLite)
Install VibORM
npm install vibormOr with other package managers:
pnpm add viborm
yarn add viborm
bun add vibormDatabase Drivers
Install the driver for your database:
npm install pgnpm install mysql2npm install better-sqlite3TypeScript Configuration
Ensure your tsconfig.json has strict mode enabled for full type inference:
{
"compilerOptions": {
"strict": true,
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "bundler"
}
}Project Structure
A typical VibORM project structure:
src/
├── db/
│ ├── schema.ts # Model definitions
│ ├── client.ts # Client initialization
│ └── index.ts # Re-exports
├── ...