Products/hireach-d1

hireach-d1

The Modern, Type-Safe ORM for Cloudflare D1

Why hireach-d1

Built to make a difference.

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

What's included

Core features.

Everything built into hireach-d1 — no add-ons required.

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
Stack

Built with.

Cloudflare D1TypeScriptNode.jsSQLite
Get started

Ready to Simplify Your Data Layer?

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