VibORM

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 viborm

Or with other package managers:

pnpm add viborm
yarn add viborm
bun add viborm

Database Drivers

Install the driver for your database:

npm install pg
npm install mysql2
npm install better-sqlite3

TypeScript 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
├── ...

Next Steps

On this page