COMPARISON · ORM & DATABASE

drizzle-orm vs. kysely

Side-by-side comparison · 9 metrics · 12 criteria

drizzle-orm v0.45.4 · Apache-2.0
Weekly Downloads
47.8M
Stars
36.4K
Gzip Size
8.2 kB
License
Apache-2.0
Last Updated
8mo ago
Open Issues
2.1K
Forks
1.8K
Unpacked Size
10.5 MB
Dependencies
0
kysely v0.29.9 · MIT
Weekly Downloads
31.4M
Stars
14.4K
Gzip Size
39.5 kB
License
MIT
Last Updated
9mo ago
Open Issues
224
Forks
464
Unpacked Size
1.8 MB
Dependencies
0
DOWNLOAD TRENDS

drizzle-orm vs kysely downloads · last 12 months

Download trends for drizzle-orm and kysely2 download series from Nov 2025 to Oct 2026. Use left and right arrow keys to inspect monthly values.035.4M70.9M106.3M141.8MNov 2025FebMayAugOct 2026
drizzle-orm
kysely
FEATURE COMPARISON

Criteria · drizzle-orm vs kysely

Runtime Scope
drizzle-orm
Topics identify Bun and Node.js
kysely ✓
Topics identify browser, Bun, Deno, and Node.js
Database Scope
drizzle-orm
Topics name PostgreSQL, MySQL, SQLite, and Turso
kysely
Topics name PostgreSQL, MySQL, SQLite, and Microsoft SQL Server
Open-Issue Load
drizzle-orm
More open issues reported
kysely ✓
Fewer open issues reported
Abstraction Level
drizzle-orm
ORM-oriented package for SQL database work
kysely
Query-builder-first package centered on type-safe SQL
Query-Builder Focus
drizzle-orm
Database package framed around ORM use
kysely ✓
Package purpose explicitly centers on query building
License Compatibility
drizzle-orm
Apache-2.0 licensed
kysely
MIT licensed
ORM-Oriented Workflow
drizzle-orm ✓
Package description directly identifies an ORM
kysely
Package description identifies a SQL query builder
TypeScript Positioning
drizzle-orm
TypeScript is among the package topics
kysely ✓
Description explicitly highlights type-safe query building
Ecosystem Adoption Signal
drizzle-orm ✓
Higher weekly downloads, stars, and forks
kysely
Lower weekly downloads, stars, and forks
Unpacked Package Footprint
drizzle-orm
Reported unpacked size is larger
kysely ✓
Reported unpacked size is smaller
Compressed Bundle Footprint
drizzle-orm ✓
Reported gzip bundle size is smaller
kysely
Reported gzip bundle size is larger
Query Construction Approach
drizzle-orm
Framed as an ORM rather than a standalone query builder
kysely ✓
Explicitly focused on constructing typed SQL queries
VERDICT

drizzle-orm is suited to developers who want a TypeScript ORM organized around database schemas and SQL-oriented operations. Its stated focus spans SQL databases, and its topics identify PostgreSQL, MySQL, SQLite, and Turso among its areas; that breadth makes it a fit for applications that want a common ORM package across several SQL database choices. Its higher downloads and GitHub stars indicate greater measured adoption than kysely, though those figures do not determine whether its ORM model suits a particular project.

kysely is a type-safe SQL query builder, a more focused starting point for developers who want to construct queries directly rather than choose an ORM-centered abstraction. Its topics include PostgreSQL, MySQL, SQLite, and Microsoft SQL Server, as well as browser, Deno, Bun, and Node.js environments. That profile may appeal to teams that prefer query composition and explicit SQL-shaped operations, while the package description itself emphasizes query building rather than ORM features.

The central architectural distinction is therefore the abstraction each package foregrounds: drizzle-orm presents itself as an ORM for SQL databases, whereas kysely explicitly presents itself as a typed query builder. In practical terms, teams evaluating them should decide whether their application benefits more from an ORM-oriented way to organize database work or from a query-builder-first way to express SQL operations. The provided package data does not specify exact method signatures, schema syntax, or runtime query behavior, so those details should be checked against the APIs before committing.

Their database-facing scope overlaps, but the package information signals different extension priorities. drizzle-orm’s topic set names Turso and ORM use alongside several SQL databases, while kysely’s explicitly names Microsoft SQL Server and multiple JavaScript runtime environments. Those differences can guide an initial shortlist, but they do not establish unsupported claims about adapters, plugins, migration tools, or feature parity; confirm the required database and deployment environment against each package’s current documentation.

For developer experience, drizzle-orm’s ORM framing may provide a more integrated vocabulary for teams thinking in terms of an application’s database model, while kysely’s query-builder framing puts query construction nearer the surface. Both packages identify TypeScript-related topics, and kysely’s description explicitly calls out type safety; the supplied data does not establish that one has stronger TypeScript inference or better diagnostics. Developers should compare how each expresses their actual queries and how easily the resulting types can be understood and maintained by their team.

The distribution figures are meaningfully different, but they describe different measures. drizzle-orm has a reported gzip bundle size of 8.2 kB compared with kysely’s 39.5 kB, while kysely has a smaller unpacked package size of 1.8 MB compared with drizzle-orm’s 10.5 MB. These figures point in opposite directions, so package footprint should be assessed according to the deployment concern that matters: the reported compressed bundle measure favors drizzle-orm, and the unpacked-size measure favors kysely. They should not be treated as a complete prediction of application size or runtime performance.

Choose drizzle-orm when an ORM-centered approach is the intended application architecture, its SQL database coverage fits the project, and the reported smaller gzip bundle is relevant to delivery. Choose kysely when the team specifically wants a type-safe SQL query builder, values its stated coverage across several runtimes and databases, or prioritizes its smaller unpacked package. For a service with complex SQL requirements, prototype representative queries in both before deciding; the available data does not establish which produces simpler code or faster queries for a particular workload.

Adoption and maintenance signals are mixed rather than interchangeable: drizzle-orm has more weekly downloads, stars, and forks, while kysely has fewer open issues. Those counts can inform due diligence, but they do not directly establish support quality, resolution speed, or long-term compatibility. Before a migration or new adoption, review the API surface and database requirements together; moving between an ORM-centered workflow and a query-builder-centered workflow may require reworking how queries are expressed, even when the underlying SQL database is unchanged.

CORRECTIONS

Spot wrong data here?

A short note helps us fix it.

Anonymous · No account · No email back

RELATED COMPARISONS 8
drizzle-orm vs sequelize ★ 66.7K · 52.1M/wk drizzle-orm vs prisma ★ 36.4K · 73.1M/wk drizzle-orm vs typeorm ★ 73.1K · 55.2M/wk drizzle-orm vs mongoose ★ 63.8K · 56.6M/wk drizzle-orm vs knex ★ 56.7K · 54.9M/wk kysely vs mongoose ★ 41.8K · 40.2M/wk kysely vs sequelize ★ 44.7K · 35.7M/wk knex vs kysely ★ 34.7K · 38.5M/wk