{"slug": "show-hn-the-typescript-semantic-layer-for-clickhouse", "title": "Show HN: The TypeScript Semantic Layer for ClickHouse", "summary": "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.", "body_md": "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.\n\nWith hypequery there is no platform to adopt, no YAML sprawl. It runs where your app runs.\n\nKey features:\n\n- Define metrics once, reuse them everywhere: Declare dimensions and measures in one place and then pull from the same source of truth.\n\n- 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.\n\n- Multi-tenancy & Authentication ready: Cross-tenant queries are blocked at the query layer, helpers to plug into your existing auth.\n\n- 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.\n\n- Runtime HTTP entry point: serve() exposes any dataset as an endpoint, so the same type-safe definitions back your dashboards and your API.\n\nComments URL: [https://news.ycombinator.com/item?id=48696675](https://news.ycombinator.com/item?id=48696675)\n\nPoints: 2\n\n# Comments: 0", "url": "https://wpnews.pro/news/show-hn-the-typescript-semantic-layer-for-clickhouse", "canonical_source": "https://github.com/hypequery/hypequery", "published_at": "2026-06-27 09:37:39+00:00", "updated_at": "2026-06-27 10:05:24.980737+00:00", "lang": "en", "topics": ["developer-tools", "ai-tools", "large-language-models"], "entities": ["hypequery", "ClickHouse", "TypeScript", "MCP"], "alternates": {"html": "https://wpnews.pro/news/show-hn-the-typescript-semantic-layer-for-clickhouse", "markdown": "https://wpnews.pro/news/show-hn-the-typescript-semantic-layer-for-clickhouse.md", "text": "https://wpnews.pro/news/show-hn-the-typescript-semantic-layer-for-clickhouse.txt", "jsonld": "https://wpnews.pro/news/show-hn-the-typescript-semantic-layer-for-clickhouse.jsonld"}}