drizzle-orm vs. kysely
Side-by-side comparison · 9 metrics · 12 criteria
- 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
- 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
drizzle-orm vs kysely downloads · last 12 months
Criteria · drizzle-orm vs kysely
- Runtime Scope
- drizzle-ormTopics identify Bun and Node.jskysely ✓Topics identify browser, Bun, Deno, and Node.js
- Database Scope
- drizzle-ormTopics name PostgreSQL, MySQL, SQLite, and TursokyselyTopics name PostgreSQL, MySQL, SQLite, and Microsoft SQL Server
- Open-Issue Load
- drizzle-ormMore open issues reportedkysely ✓Fewer open issues reported
- Abstraction Level
- drizzle-ormORM-oriented package for SQL database workkyselyQuery-builder-first package centered on type-safe SQL
- Query-Builder Focus
- drizzle-ormDatabase package framed around ORM usekysely ✓Package purpose explicitly centers on query building
- License Compatibility
- drizzle-ormApache-2.0 licensedkyselyMIT licensed
- ORM-Oriented Workflow
- drizzle-orm ✓Package description directly identifies an ORMkyselyPackage description identifies a SQL query builder
- TypeScript Positioning
- drizzle-ormTypeScript is among the package topicskysely ✓Description explicitly highlights type-safe query building
- Ecosystem Adoption Signal
- drizzle-orm ✓Higher weekly downloads, stars, and forkskyselyLower weekly downloads, stars, and forks
- Unpacked Package Footprint
- drizzle-ormReported unpacked size is largerkysely ✓Reported unpacked size is smaller
- Compressed Bundle Footprint
- drizzle-orm ✓Reported gzip bundle size is smallerkyselyReported gzip bundle size is larger
- Query Construction Approach
- drizzle-ormFramed as an ORM rather than a standalone query builderkysely ✓Explicitly focused on constructing typed SQL queries
| Criteria | drizzle-orm | kysely |
|---|---|---|
| Runtime Scope | Topics identify Bun and Node.js | ✓ Topics identify browser, Bun, Deno, and Node.js |
| Database Scope | Topics name PostgreSQL, MySQL, SQLite, and Turso | Topics name PostgreSQL, MySQL, SQLite, and Microsoft SQL Server |
| Open-Issue Load | More open issues reported | ✓ Fewer open issues reported |
| Abstraction Level | ORM-oriented package for SQL database work | Query-builder-first package centered on type-safe SQL |
| Query-Builder Focus | Database package framed around ORM use | ✓ Package purpose explicitly centers on query building |
| License Compatibility | Apache-2.0 licensed | MIT licensed |
| ORM-Oriented Workflow | ✓ Package description directly identifies an ORM | Package description identifies a SQL query builder |
| TypeScript Positioning | TypeScript is among the package topics | ✓ Description explicitly highlights type-safe query building |
| Ecosystem Adoption Signal | ✓ Higher weekly downloads, stars, and forks | Lower weekly downloads, stars, and forks |
| Unpacked Package Footprint | Reported unpacked size is larger | ✓ Reported unpacked size is smaller |
| Compressed Bundle Footprint | ✓ Reported gzip bundle size is smaller | Reported gzip bundle size is larger |
| Query Construction Approach | Framed as an ORM rather than a standalone query builder | ✓ Explicitly focused on constructing typed SQL queries |
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?Spot wrong data on this page?
A short note helps us fix it.A short note helps us fix it. We read every one; confirmed fixes ship in the next nightly build.
Anonymous · No account · No email back