Open sourceApache 2.0

ClickHouse developer hub

ClickHouse for TypeScript and Python developers

Guides for querying ClickHouse from application code: picking a client, typing results, writing the SQL patterns ClickHouse rewards, and serving the results to dashboards, APIs and AI agents.

Definition

What does using ClickHouse from application code involve?

ClickHouse is an open-source, column-oriented database built for analytical queries over large tables. Calling it from a backend means three jobs on top of the driver: keeping result types in step with the schema, writing queries that suit a columnar engine (sorting keys, PREWHERE, pre-aggregation), and putting a safe interface in front of it for the dashboards, APIs and agents that consume the numbers.

hypequery is an open-source library for those jobs. In TypeScript it adds a query builder typed from your schema. In TypeScript and Python (beta) it adds datasets, a semantic layer you serve over HTTP, React hooks and MCP.

Pick your language

Two lanes: TypeScript and Python

Both SDKs read the same ClickHouse tables and implement the same dataset and Serve protocol, so a Python backend and a TypeScript frontend can share one definition of a metric. The TypeScript SDK also includes a typed query builder; the Python SDK works at the dataset level.

Function reference

ClickHouse functions with examples

The ClickHouse function reference covers 28 common functions for dates, aggregates, strings, conditionals, math and arrays. Each page has the signature, the return type, a SQL example and a typed query-builder example.

Related hubs

Building analytics features on ClickHouse

Two topics come up as soon as ClickHouse powers a product feature: defining metrics once, and showing them to customers safely.

Run one typed query against your own schema

The CLI reads your ClickHouse schema and writes the types. Open source, and it runs in your own backend.

Get early access to hypequery cloud.

Cloud hosts the same model you run in your backend, with a managed API and MCP server, versions, and rollback. We're letting teams in a few at a time. Join the waitlist and we'll reach out when your project can go live.

How do you want to build your analytics layer? (Optional)
What features do you most need? (Optional)

Pick as many as you like.

Only your email is required. All other questions are optional.