Skip to content

workers-qb

Active
G4brym/workers-qb

A zero-dependency SQL query builder for Cloudflare Workers that supports D1, Durable Objects SQLite and PostgreSQL with raw-query performance.

View on GitHub
Stars
402
Forks
27
Watchers
402
Open issues
3

Overview

workers-qb is a lightweight query builder designed for Cloudflare Workers. It offers a simple, standardized interface while keeping the performance of raw queries — an alternative to a full ORM.

How it differs from ORMs

  • Focused on direct SQL access with convenient wrapper methods
  • Raw-query performance
  • Zero dependencies
  • Lightweight and optimized for Workers

Supported databases

  • Cloudflare D1
  • Cloudflare Durable Objects (SQLite storage)
  • PostgreSQL via node-postgres
  • Your own database through a custom adapter

The project also ships an AI coding-assistant skill (npx skills install G4brym/workers-qb) for writing SELECT, INSERT, UPDATE and DELETE queries.

Similar open-source projects, ranked by shared categories and tags.

All Development Tools projects →