Overview

Introduction

OptimaDB

A high-performance, type-safe database built on top of Bun's APIs. OptimaDB combines the speed of in-memory storage with the flexibility of multiple storage modes, making it perfect for modern applications that demand both performance and reliability.

Serverless by design

No servers, no HTTP overhead — query your database directly from your
code, just pure data access.

Type Safety by Default

Define schemas once and get compile-time safety for queries, migrations, and CRUD operations — eliminating runtime surprises.

Dead Simple to use

Minimal config, clear syntax, simple APIeverything works out of the box.

Zero Dependencies

Lightweight and self-contained. No external dependencies required, ensuring minimal overhead and fast startup times.

Blazing Performance with Bun _

Powered by Bun’s ultra-fast JavaScript runtime, OptimaDB delivers
low-latency queries and optimized performance.

Install OptimaDB

Multiple Storage Modes

Run in Memory, Disk, or Hybrid mode to balance speed and persistence depending on your application’s needs.

Auto Migration

Migrations are handled automatically — no conflicts, no scripts. Optima just takes care of it.

Modern Developer Experience

Designed for TypeScript with auto-completions, intuitive APIs, and batteries-included utilities, Types and much more.

Feature Rich

With support for JSON, arrays, and much more, OptimaDB makes handling complex data effortless.