A lightweight, headless TypeScript ORM for PostgreSQL, MySQL, and SQLite with zero dependencies.
Drizzle ORM is a lightweight, headless Object-Relational Mapper for TypeScript and JavaScript that works with PostgreSQL, MySQL, and SQLite databases. It provides a type-safe way to interact with SQL databases while being optimized for serverless environments and modern JavaScript runtimes. The ORM is designed to be fast, dependency-free, and easy to integrate into any project.
TypeScript and JavaScript developers building applications with relational databases, especially those targeting serverless or edge environments. It's ideal for teams prioritizing type safety, performance, and minimal overhead.
Developers choose Drizzle ORM for its zero-dependency, lightweight design and excellent TypeScript support. Unlike heavier ORMs, it avoids unnecessary abstractions, stays close to SQL, and works seamlessly across serverless platforms without requiring adapters or proxies.
ORM
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
At only ~7.4kb minified+gzipped with zero dependencies, Drizzle ORM has negligible impact on bundle size, making it ideal for serverless and edge environments as highlighted in the README.
Designed to work out-of-the-box in all major JavaScript runtimes including Node.js, Bun, Deno, and edge platforms like Cloudflare Workers, without requiring adapters, as stated in the serverless-ready features.
Provides type-safe SQL schema declaration and query building, ensuring compile-time checks for database interactions, which is a core part of its TypeScript-first philosophy.
Includes Drizzle Kit for hassle-free migrations and Drizzle Studio for database management, enhancing developer experience without bloating the core ORM, as mentioned in the ecosystem section.
As a headless ORM, Drizzle requires developers to write more raw SQL-like queries, which can be a hurdle for teams accustomed to higher-level ORM abstractions and automatic relationship handling.
Migrations and database management require additional tools (Drizzle Kit and Drizzle Studio), adding complexity to initial project configuration compared to integrated ORM solutions.
Missing common ORM features such as built-in soft delete mechanisms, automatic timestamp management, or advanced relationship optimizations without manual configuration.