A lightweight ORM and query builder for Cloudflare D1 databases. Current stable version: 1.0.9. Provides basic CRUD operations, filtering with WHERE clauses, JOIN support, column selection, ordering, pagination, and JSON field handling. Differentiators: simple API, direct Cloudflare D1 integration, and nested object transformation. It is still in early development with limited features (no bulk create, no OR/NOT conditions).
npm install simple-cloudflare-ormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to instantiate SimpleORM with a Cloudflare D1 binding, define table schemas, create a record, and query with JOIN, filtering, ordering, and limit.
Consider alternatives like Drizzle ORM or Kysely for production use.
Ensure every column in the table object matches the D1 table schema exactly.
Use 'import { SimpleORM } from 'simple-cloudflare-orm'' (named import).Add a D1 binding in wrangler.toml: [[d1_databases]] binding = "DB" database_name = "your-db" database_id = "..."
Run 'npm i simple-cloudflare-orm' in your project root.
No dependency data recorded yet.