Latest Release v1.0.0

hireach-d1

The Modern, Type-Safe ORM for Cloudflare D1

Why hireach-d1?

Developer Experience

Intuitive API that feels like modern JS, not legacy SQL

Production Ready

Includes migrations, soft-deletes, and timestamps by default

Edge Compatible

Running perfectly on Cloudflare Workers and Pages environments

Zero Overhead

Lightweight abstraction layer with minimal performance cost

Powerful Capabilities

Everything you need to build robust applications on Cloudflare D1

Type-Safe Models

Define your database schema with strict TypeScript types, ensuring compile-time safety and preventing runtime errors.

TS Generics
Strict Typing
Auto-Completion

Fluent Query Builder

Construct complex SQL queries using a modern, chainable API designed for developer experience and readability.

Chainable API
Complex Joins
Type Inference

D1 Optimized

Built specifically for Cloudflare D1, taking advantage of its edge-native architecture for low-latency data access.

Edge Native
Low Latency
Serverless

Lifecycle Hooks

Automate logic with pre-defined hooks like beforeCreate and afterUpdate to handle side effects effortlessly.

beforeCreate
afterUpdate
Custom Hooks

Relationships & Joins

Easily manage relationships between tables and perform simplified joins without writing raw SQL strings.

One-to-Many
Many-to-Many
Eager Loading

Advanced Aggregates

Perform statistical operations like sum, avg, and median out of the box with optimized helper functions.

Sum/Avg
Grouping
Percentiles

Core Technologies

Leveraging the best of the modern web ecosystem

Cloudflare D1
TypeScript
Node.js
SQLite

Ready to Simplify Your Data Layer?

Install hireach-d1 today and start building faster on Cloudflare.