# drizzle-orm

> Drizzle ORM package for SQL databases

Latest version **0.45.2** (published 2026-03-27) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install drizzle-orm
pnpm add drizzle-orm
yarn add drizzle-orm
bun add drizzle-orm
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; high maintenance score; high quality score; popular repo.

Warnings: low downloads; large bundle; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.45.2 |
| Published | 2026-03-27 |
| First published | 2021-09-09 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 9.9 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 35834 |
| Author | Drizzle Team |
| Maintainers | dankochetov, sheriman, alexblokh, kyrylo_usichenko |
| Keywords | drizzle, orm, pg, mysql, singlestore, postgresql, postgres, sqlite, database, sql, typescript, ts, drizzle-orm |

## Links

- npm: https://www.npmjs.com/package/drizzle-orm
- Repository: https://github.com/drizzle-team/drizzle-orm
- Homepage: https://orm.drizzle.team
- Issues: https://github.com/drizzle-team/drizzle-orm/issues
- npm.io page: https://npm.io/package/drizzle-orm

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.45.2 (latest) — 2026-03-27
- 1.0.0-rc.5-5935859 (rc5) — 2026-09-09
- 1.0.0-rc.4-fb12281 (postgres) — 2026-08-05
- 1.0.0-rc.4 (rc) — 2026-06-27
- 1.0.0-rc.3-e9dfa4b (ai) — 2026-05-22
- 1.0.0-rc.4-5d5b77c (rc4) — 2026-05-20
- 1.0.0-rc.2-2be6d1e (mysql-update) — 2026-05-18
- 1.0.0-rc.2-67a3509 (jiti-import-fix) — 2026-05-15
- 1.0.0-rc.2-640c81e (turso-sls) — 2026-05-08
- 1.0.0-rc.2-8feace6 (rc1-fixes) — 2026-05-05
- 1.0.0-rc.1-929a083 (pg-introspect) — 2026-05-01
- 1.0.0-beta.23-5d05836 (codecs) — 2026-04-30
- 1.0.0-beta.23-c10d10c (revert-netlify) — 2026-04-22
- 1.0.0-beta.22-d23690d (netlify-constructor) — 2026-04-20
- 1.0.0-beta.22 (beta) — 2026-04-16
- … 548 more at https://npm.io/package/drizzle-orm/versions

## README

<div align="center">
  <img src="./misc/readme/logo-github-sq-dark.svg#gh-dark-mode-only" />
  <img src="./misc/readme/logo-github-sq-light.svg#gh-light-mode-only" />
</div>

<br/>
<div align="center">
  <h3>Headless ORM for NodeJS, TypeScript and JavaScript 🚀</h3>
  <a href="https://orm.drizzle.team">Website</a> •
  <a href="https://orm.drizzle.team/docs/overview">Documentation</a> •
  <a href="https://x.com/drizzleorm">Twitter</a> •
  <a href="https://driz.link/discord">Discord</a>
</div>

<br/>
<br/>

### What's Drizzle?
Drizzle is a modern TypeScript ORM developers [wanna use in their next project](https://stateofdb.com/tools/drizzle). 
It is [lightweight](https://bundlephobia.com/package/drizzle-orm) at only ~7.4kb minified+gzipped, and it's tree shakeable with exactly 0 dependencies. 

**Drizzle supports every PostgreSQL, MySQL and SQLite database**, including serverless ones like [Turso](https://orm.drizzle.team/docs/get-started-sqlite#turso), [Neon](https://orm.drizzle.team/docs/get-started-postgresql#neon), [Xata](https://orm.drizzle.team/docs/connect-xata), [PlanetScale](https://orm.drizzle.team/docs/get-started-mysql#planetscale), [Cloudflare D1](https://orm.drizzle.team/docs/get-started-sqlite#cloudflare-d1), [FlyIO LiteFS](https://fly.io/docs/litefs/), [Vercel Postgres](https://orm.drizzle.team/docs/get-started-postgresql#vercel-postgres), [Supabase](https://orm.drizzle.team/docs/get-started-postgresql#supabase) and [AWS Data API](https://orm.drizzle.team/docs/get-started-postgresql#aws-data-api). No bells and whistles, no Rust binaries, no serverless adapters, everything just works out of the box.

**Drizzle is serverless-ready by design**. It works in every major JavaScript runtime like NodeJS, Bun, Deno, Cloudflare Workers, Supabase functions, any Edge runtime, and even in browsers.  
With Drizzle you can be [**fast out of the box**](https://orm.drizzle.team/benchmarks) and save time and costs while never introducing any data proxies into your infrastructure. 

While you can use Drizzle as a JavaScript library, it shines with TypeScript. It lets you [**declare SQL schemas**](https://orm.drizzle.team/docs/sql-schema-declaration) and build both [**relational**](https://orm.drizzle.team/docs/rqb) and [**SQL-like queries**](https://orm.drizzle.team/docs/select), while keeping the balance between type-safety and extensibility for toolmakers to build on top.  

### Ecosystem
While Drizzle ORM remains a thin typed layer on top of SQL, we made a set of tools for people to have best possible developer experience.  
  
Drizzle comes with a powerful [**Drizzle Kit**](https://orm.drizzle.team/kit-docs/overview) CLI companion for you to have hassle-free migrations. It can generate SQL migration files for you or apply schema changes directly to the database.  
  
We also have [**Drizzle Studio**](https://orm.drizzle.team/drizzle-studio/overview) for you to effortlessly browse and manipulate data in your database of choice.

### Documentation
Check out the full documentation on [the website](https://orm.drizzle.team/docs/overview).

### Our sponsors ❤️
<p align="center">
<a href="https://drizzle.team" target="_blank">
<img src='https://api.drizzle.team/v2/sponsors/svg'/>
</a>
</p>

---
_Source: https://npm.io/package/drizzle-orm · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
