v1.1.1 Stable

Hawiah: The Ultra-Fast Universal Database Interface

Stop settling for slow database layers. Hawiah is 2.6x faster than industry standards, providing a zero-config, unified API for SQL, NoSQL, and Local files, powered by a revolutionary Hybrid Schema engine.

Multi-Driver
TypeScript
Modular Core
Zero Config
Performance Test

Total execution time (Lower is better)

HawiahFastest
94.42 ms
Sequelize
230.08 ms
TypeORM
239.49 ms
Prisma
268.57 ms

Results from SQLite local performance cluster

Why Hawiah?

One API for All Your
Databases

A truly modular abstraction layer. Install only the drivers you need and switch between them without changing your code.

Unified API

Write your application logic once using Hawiah's unified API. Hybrid Schema technology automatically adapts your data for SQL tables or NoSQL documents without changing a line of code.

Postgres
MongoDB
MySQL
SQLite

Modular Architecture

Install only what you need. Each driver is a separate package (@hawiah/mongo, @hawiah/sqlite, etc.), keeping your bundle size minimal.

Read LatencyNative
Write ThroughputNative
Memory UsageNative

Virtual Relationships

Create relationships between different Hawiah instances. Join a User in SQL with their Activity in MongoDB using built-in DataLoader support.

TypeScript Support

Full type safety and autocomplete. Hawiah leverages TypeScript generics to ensure your code is robust and error-free.

Start Simple, Scale Big

Prototyping to Production

Start your project with simple local JSON files. When you're ready to scale, switch to robust databases like MongoDB or PostgreSQL without rewriting logic.

Node
Bun
Edge

Connect to Any Database

Unified API across all supported drivers

✨ Plus Virtual Relationships with DataLoader batching

MemoryDriver

In-memory storage

@hawiah/local

JSONDriver

Local JSON files

@hawiah/local

YAMLDriver

Local YAML files

@hawiah/local

SQLiteDriver

SQLite database

@hawiah/sqlite

MongoDriver

MongoDB support

@hawiah/mongo

FirebaseDriver

Firebase Firestore

@hawiah/firebase

PostgreSQLDriver

PostgreSQL database

@hawiah/postgres

MySQLDriver

MySQL database

@hawiah/mysql

CustomDriver

Build your own

DIY

One API, Multiple Drivers

Same code, different databases. Switch drivers without changing your application logic.

import { Hawiah } from 'hawiah';
import { JSONDriver } from '@hawiah/local';

const driver = new JSONDriver('./users.json');
const db = new Hawiah({ driver });

await db.connect();
await db.insert({ 
  id: 1, 
  name: 'Ahmed', 
  age: 25 
});

const users = await db.get({});
await db.disconnect();

Start Simple, Scale Big

Begin with local JSON files for rapid prototyping, then switch to MongoDB or PostgreSQL for production without changing your code.