talira

Compare

Knex.jsKyselyReylo
What it isSQL query builder for Node.js with migrations and seedsType-safe SQL query builder for TypeScriptImport .sql files into TypeScript with types inferred from your live database, plus SQL-first migrations
KindOpen sourceOpen sourceOpen source
Trust0.470.720.65
Stars20334143861678
Last commit2026-06-262026-11-282026-11-24
LicenceMITMITMIT
PricingFree and open sourceFree and open sourceFree and open source
Free tierYesYesYes
Self-hostable———
Ways to run it———
SOC 2———
HIPAA———
SSO———
API———
Plugins———
MCP server———
CompanyKnexKyselyVariadic
Features
  • Query builder for PostgreSQL, MySQL, MariaDB, CockroachDB, Redshift, SQLite3, Oracle and SQL Server
  • Schema builder
  • Migrations and seeds with a CLI
  • Transactions and connection pooling
  • Streaming queries
  • Promise and callback APIs
  • Compile-time checks that queries only use visible tables and columns
  • Result types inferred from selects, joins, subqueries and with clauses
  • Dialects for PostgreSQL, MySQL, SQL Server, SQLite and PGlite
  • Runs on Node.js, Deno, Bun, Cloudflare Workers and browsers
  • sql template tag and dynamic module for queries that can't be typed
  • import .sql files into TypeScript with inferred parameter and row types
  • types come from the live database's own analysis of each query
  • Postgres, MySQL and SQLite
  • schema modeled in schema.sql, with generated or hand-written migrations (Reylo Migrate)
  • deploy guides for Neon, Supabase, PlanetScale, Cloudflare D1 and Turso