Skip to main content
chDB-node provides Node.js bindings for chDB, enabling you to run ClickHouse queries directly in your Node.js applications with zero external dependencies.

Installation

Usage

chDB-node supports two query modes: standalone queries for simple operations and session-based queries for maintaining database state.

Standalone queries

For simple, one-off queries that don’t require persistent state:

Session-Based queries

Processing external data

Error handling

Always handle errors appropriately when working with chDB:

GitHub repository

Last modified on July 2, 2026