// momentum

tracking since W47

// why it's here

  • Active: last commit today
  • Built almost entirely by one person
  • 5 releases in the last 90 days

// how to help

// readme

ย ยทย  ย ยทย  ย ยทย 

drizzle-resource builds the list endpoints of an app on top of Drizzle ORM. You define a resource once on a table: which relations it loads, which fields can be filtered, searched, sorted and counted, and the tenant condition every query must carry. Each request is then checked against that definition, turned into SQL, and returned as typed rows with page info, facet counts and totals.

Field paths such as customer.name or orderLines.product.category are typed from your schema and relations, so a typo is a compile error. The tenant scope comes from your server context, never from the request, so a client cannot remove it.

bun add drizzle-resource      # or: pnpm add / npm install

Requires drizzle-orm >= 1.0.0-rc.5 with relational queries.

Read the full README on GitHub โ†—