cd /news/developer-tools/show-hn-the-typescript-semantic-laye… · home topics developer-tools article
[ARTICLE · art-41722] src=github.com ↗ pub= topic=developer-tools verified=true sentiment=· neutral

Show HN: The TypeScript Semantic Layer for ClickHouse

A developer released hypequery, a type-safe semantic layer for ClickHouse that compiles to SQL and runs as a library without additional infrastructure. The tool allows defining metrics once and reusing them across dashboards and APIs, with built-in multi-tenancy and LLM integration via an MCP server.

read1 min views1 publishedJun 27, 2026

I've built a type-safe semantic layer in code, for ClickHouse. If you're building analytics off ClickHouse in TypeScript, I would love your feedback.

With hypequery there is no platform to adopt, no YAML sprawl. It runs where your app runs.

Key features:

  • Define metrics once, reuse them everywhere: Declare dimensions and measures in one place and then pull from the same source of truth.

  • Compiles to ClickHouse SQL: No service, no proxy, no extra runtime to deploy. It's a library that generates SQL and runs where your app runs.

  • Multi-tenancy & Authentication ready: Cross-tenant queries are blocked at the query layer, helpers to plug into your existing auth.

  • Agent-native: A dataset is a declared set of dimensions and measures, so it doubles as an allowlist. Includes an MCP server to hand an LLM a typed catalog to query.

  • Runtime HTTP entry point: serve() exposes any dataset as an endpoint, so the same type-safe definitions back your dashboards and your API.

Comments URL: [https://news.ycombinator.com/item?id=48696675](https://news.ycombinator.com/item?id=48696675)

Points: 2

── more in #developer-tools 4 stories · sorted by recency
── more on @hypequery 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-the-typescri…] indexed:0 read:1min 2026-06-27 ·