
Building the analytics layer for ClickHouse @hypequery
Valencia, Spain
Joined October 2023
- Tweets96
- Following231
- Followers25
- Likes66
Pinned Tweet
hypequery datasets are live.
Model your ClickHouse data in typescript and callers pick what they want at query time.
Expose via typed HTTP APIs, react hooks or MCP your agents can query.
Read the launch post here: hypequery.com/blog/introduci…
1
253
add @hypequery on top and agents query typed datasets by name: metrics and dimensions, not raw SQL.
tl;dr -- archil hosts clickhouse for 50% less than clickhouse.
traditionally, "commercial open source" meant that the provider open-sourced a worse version of the product, to disincentivize people from self hosting. frequently (as with clickhouse here), the OSS version requires local disks and doesn't work with s3.
unfortunately for these folks, archil has solved the problem of using s3 as a local disk. so, you can use open-source clickhouse with s3-backed data and save 50% of your clickhouse costs
DM me if you want some credits to move your clickhouse workload to Archil
guide here: docs.archil.com/guides/analy…
43
Luke retweeted
One Python dataset definition can now drive an authorized HTTP API, generated React types, and MCP for agents.
The beta's tutorial walks the whole path: Python, then generated React client, then HTTP MCP, with tenant-scoped ClickHouse serving.
just shipped the python sdk for hypequery.
Build your ClickHouse analytics layer in your python backend. Define your metrics once, query them by name, and serve them from FastAPI, Django or Flask.
hypequery.com/blog/introduci…
Lots coming over the next few weeks for hypequery’s ClickHouse MCP:
• Local + hosted MCP from one semantic model
• OAuth, tenant isolation + query limits
• Structured results + richer dataset metadata
• Evals, tracing + versioned deployments
No raw SQL access!
3
88
📈 hypequery up to 30k weekly downloads.
Check it out if you're working with ClickHouse in TypeScript
1
78
hypequery's chDB adapter has a nice property: the same TypeScript query builder runs on embedded ClickHouse or a remote server, and renders byte-identical SQL either way. So CI tests hit a real engine with no container.
hypequery.com/docs/chdb
@lureilly_
Luke retweeted
Always loved this glass effect.
I built this interactive version with html-in-canvas and Three.js.
hypequery just crossed 10,000 weekly npm downloads 📈
The TypeScript SDK for ClickHouse.
Query builder is live. Migrations coming. Agents next.
Just getting started.
github.com/hypequery/hypeque…
1
1
275
ClickHouse migrations in TypeScript shouldn’t require a Go binary.
npx hypequery generate
npx hypequery migrate
Schema-first. MV-aware. Coming soon to hypequery!
175
First SEO experiment
0 → 26K impressions in ~2 weeks
Just programmatic pages + indexing.
Now the real work begins.
106
Every TypeScript app on ClickHouse is going to need a query builder within 2 years.
The Postgres-for-everything era is ending for analytics workloads.
ClickHouse handles 5-20x the throughput for aggregations. Anthropic, Vercel, and Supabase already use it.
1
1
119
Most teams should use BOTH Postgres and ClickHouse.
Postgres for your app data. ClickHouse for analytics.
The problem isn't choosing one — it's that ClickHouse tooling makes the "both" architecture painful to build in TypeScript.
67
The worst part of ClickHouse + TypeScript:
You write an interface for your query result.
You change a column name in ClickHouse.
Your interface doesn't update.
Your app silently returns undefined for that field.
hypequery solves this pain
50
ClickHouse developer experience is 10 years behind Postgres.
Postgres has Prisma, Drizzle, Knex, TypeORM, Kysely.
ClickHouse has... raw SQL strings and `unknown` return types.
That's why I'm building hypequery. The ecosystem gap is massive.
3
91
Just pushed a big hypequery release: Define metrics once in TypeScript. Reuse across APIs, jobs, dashboards, and AI agents. Authentication and multi-tenancy baked in.
github.com/hypequery/hypeque…
46
I wrote about how 7 companies unknowingly arrived at the same ClickHouse arhitecture.
Uber, Cloudflare, Instacart, GitLab, Lyft, Microsoft, Contentsquare.
Here is a summary of their identical stack 🧵
1
95
AI is joining the stack, not sitting on top.
ClickHouse 25.7: text-to-SQL in the CLI
Shopify: 30+ MCP servers for governed natural language queries
Lightdash: AI agents that respect semantic layer rules
1
85





