One API to Rule Them All
Modular database abstraction with virtual relationships. Support for 7 drivers, 50+ methods, and DataLoader batching. One API to rule them all.
Everything you need.
Nothing you don't.
Built for modern development workflows. Hawiah strips away the complexity of traditional ORMs while keeping the power you need.
Modular Architecture
Install only what you need. Core package + your choice of drivers. Keep your bundle size small and dependencies minimal.
Lightning Fast
Zero-overhead abstraction. Direct driver access when you need it.
Type Safe
First-class TypeScript support. Autocomplete and type checking out of the box.
Virtual Relationships
Create relationships between instances with DataLoader batching. Avoid N+1 queries.
Run Anywhere
Works in Node.js, Bun, Deno, and Edge environments. One library for all your JavaScript runtimes.
Connect to Any Database
Unified API across all supported drivers
✨ Plus Virtual Relationships with DataLoader batching
MemoryDriver
In-memory storage
@hawiah/localJSONDriver
Local JSON files
@hawiah/localYAMLDriver
Local YAML files
@hawiah/localSQLiteDriver
SQLite database
@hawiah/sqliteMongoDriver
MongoDB support
@hawiah/mongoFirebaseDriver
Firebase Firestore
@hawiah/firebasePostgreSQLDriver
PostgreSQL database
@hawiah/postgresMySQLDriver
MySQL database
@hawiah/mysqlCustomDriver
Build your own
DIYOne 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();Ready to simplify your database layer?
Modular, flexible, and easy to use. Start with JSON files, scale to MongoDB or PostgreSQL. Open source and free forever.