qmetrics.net

Kysely

Type-safe TypeScript SQL query builder

DatabasesDesktop/CLI app
Kysely screenshot

Kysely helps you compose SQL in TypeScript with compile-time table and column checks, autocompletion, and precise result types.

Overview

Kysely is a TypeScript SQL query builder inspired by Knex.js. It ensures queries only reference tables and columns visible in the current scope and returns row types that mirror selected fields, aliases, and subquery shapes. Modern TypeScript inference covers joins, WITH clauses, and nested selections where possible, with escape hatches such as SQL template tags when compile-time typing is not feasible.

The library targets server and edge JavaScript runtimes including Node.js, Deno, Bun, Cloudflare Workers, and browsers, and ships without runtime dependencies according to its marketing site. API documentation lives in type definitions so editors surface docs on hover, and a dedicated documentation site covers migrations, plugins, and dialect specifics.

Queries compile predictably to SQL with naming close to raw statements, and helpers let teams extract reusable expression fragments, correlated subqueries, and CTEs as ordinary TypeScript functions. Plugins can rewrite queries before compilation or transform results afterward, for example mapping camelCase and snake_case.

Built-in dialect support spans PostgreSQL, MySQL, SQLite, Microsoft SQL Server, and PGlite, with a community dialect system for additional engines. Teams pair Kysely with codegen or introspection so database schemas remain the source of truth for types.

Key features

  • Compile-time query type checking
  • IDE autocompletion for schema fields
  • Composable expressions and CTEs
  • Multiple SQL dialect drivers
  • sql template escape hatch
  • Zero runtime dependency claim
  • Node Deno Bun browser support
  • Optional result-mapping plugins

Use cases

  • Type-safe application SQL layers
  • Complex joins and reporting queries
  • Edge worker database access
  • Shared query helpers across services
  • Gradual raw SQL alongside ORMs

Tags

Similar software

Supabase

Open-source Postgres platform with auth, APIs, and storage

Supabase bundles a dedicated Postgres database with authentication, auto-generated REST and GraphQL APIs, realtime, functions, file storage, and vector tooling.

★ 115.6k⟳ todayApache-2.0
Open Source Alternative to:FirebaseFirebase Realtime Database

Prometheus

Open-source metrics monitoring and time series database

Prometheus collects metrics from configured targets, evaluates rules, and can raise alerts. It stores time series data and exposes a query language called PromQL.

★ 67.9k⟳ yesterdayApache-2.0
Open Source Alternative to:PRTG Network Monitor

NocoDB

Self-hostable no-code database with spreadsheet interface

NocoDB turns Postgres, MySQL, SQLite, or a hosted database into editable tables with grid, kanban, form, gallery, and calendar views. Teams collaborate with roles, sharing, REST APIs, and workflow integrations.

★ 65.6k⟳ todaySource-available
DatabasesSelf-hostable

etcd

Raft-backed distributed consistent key-value store

etcd stores small critical configuration and coordination data for clusters. It exposes a gRPC API, tolerates failures via Raft, and ships with the etcdctl command-line client.

★ 52.7k⟳ 3 days agoApache-2.0
DatabasesSelf-hostable

DBeaver

Universal multi-platform database tool and SQL client

Free desktop client for developers and DBAs with SQL editing, data editing, ER diagrams, exports, and support for hundreds of JDBC or ODBC databases.

★ 52.6k⟳ todayApache-2.0
DatabasesDesktop/CLI app
Open Source Alternative to:DataGripNavicat+2

ClickHouse

Column-oriented real-time analytics database management system

ClickHouse is a column-oriented database for generating analytical reports in real time using SQL on large datasets.

★ 51.2k⟳ todayApache-2.0
Open Source Alternative to:Amazon Redshift