qmetrics.net

Knex.js

Multi-dialect SQL query builder for JavaScript and Node.js

DatabasesDesktop/CLI app
Knex.js screenshot

Knex.js builds SQL for several relational engines from JavaScript, with transactions, pooling, and streaming. It offers both promise and callback APIs.

Overview

Knex.js is a SQL query builder aimed at JavaScript runtimes, especially Node.js. It compiles portable queries across multiple database dialects so application code can target different engines with less rewrite work.

Supported backends mentioned include PostgreSQL, MariaDB, MySQL, CockroachDB, MSSQL, SQLite3, Better-SQLite3, Oracle (including Oracle Wallet Authentication), and Amazon Redshift. The tool ships with query and schema builders, transaction support including savepoints, connection pooling, and streaming query interfaces.

Developers can use traditional callbacks or promises for asynchronous control flow. Node.js releases from version 16 onward are supported, and the package can be consumed as an ES module when the runtime loads its ESM entry appropriately.

Companion ecosystem items include plugins, a recipes wiki, and Knex Query Lab for previewing generated SQL. Documentation and examples on the project site walk through common query patterns in JavaScript and TypeScript.

Key features

  • Multi-dialect SQL query compilation
  • Query and schema builder APIs
  • Transactions with savepoints
  • Connection pooling
  • Streaming query interface
  • Promise and callback APIs
  • Node.js 16 and newer support
  • ESM and TypeScript-friendly usage

Use cases

  • Portable SQL across database engines
  • Node.js apps needing typed query builders
  • Streaming large result sets
  • Previewing SQL before execution

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