Compare
Metabase Alternative for Embedded Analytics: hypequery vs Metabase
What Metabase embedding offers on each plan, when Metabase is the better choice, and when developers are better served by a code-first ClickHouse layer and their own React components.
Updated
Decision type
Architecture and workflow fit
Audience
TypeScript teams building on ClickHouse
Outcome
Choose a path and move into implementation
Category
Code-first analytics layer behind your own UI
Best for
Customer-facing analytics that ships inside your product
Who builds charts
Engineers, in TypeScript or Python plus React
What this page is for
Use this page when the real question is how one tool changes the shape of your ClickHouse application code, not just which syntax looks nicer.
What this page is not
It is not a broad ecosystem roundup. It stays narrow on the tradeoff a ClickHouse-heavy TypeScript team is actually deciding.
Recommended next move
If the tradeoff already looks clear, stop reading comparisons and test the fit against one real query in your own schema.
When to pick Metabase instead
- Non-engineers need to build and change dashboards themselves, without waiting on a deploy.
- The audience is internal: leadership dashboards, ops exploration and ad-hoc questions.
- You need charts live this week, and Metabase’s look inside your product is acceptable.
- You want alerts and scheduled email or Slack subscriptions without building them.
- Guest embeds with tenant filters locked in a signed token cover your isolation needs, and either the “Powered by Metabase” banner is fine or you are on Pro.
Published · Updated
Short answer: Metabase is the faster path when people need charts this week, and the right tool when non-engineers build the dashboards. It is a BI application with an official ClickHouse connector and several embedding options. If you are a developer building customer-facing analytics into your own product, with typed queries, tenant rules in your own auth and charts drawn by your own React components, a code-first layer fits better. hypequery is that layer for ClickHouse, in TypeScript or Python.
These are different categories. Metabase is an application you run, or rent on Metabase Cloud. hypequery is a library you add to the backend you already have. This page covers what Metabase embedding gives you on each plan, when Metabase is the better choice, and when it isn't.
What Metabase embedding is
Metabase has three ways to embed signed-in or signed content in another app, plus public links. This is from the Metabase docs and pricing page, checked on 8 November 2026.
| Option | What it does | Plans |
|---|---|---|
| Guest embeds | A dashboard or question rendered as a web component (<metabase-dashboard>, <metabase-question>), authorized by a JWT your server signs. Filters such as a tenant ID can be locked in the token. Viewers cannot drill through or use the query builder. | Every plan, including Open Source. On Open Source and Starter they show a "Powered by Metabase" banner |
| Modular embedding with SSO | Individual components (dashboard, chart, query builder, collection browser, AI chat) placed in your app with web components or the React SDK, with people signed in through SSO | Pro and Enterprise |
| Full app embedding | The whole Metabase app in an iframe, with SSO tied to your app's login | Pro and Enterprise |
Public links share a question or dashboard with anyone who has the link, with no authentication. Static embedding, the older signed-iframe option, is deprecated in favor of guest embeds, and existing static embeds keep working.
A few details matter for product teams. The React SDK supports React 18 and 19 and does not support server-side rendering. Per-tenant data rules for signed-in users come from row and column security (formerly called data sandboxing), which maps user attributes to row filters and requires Pro or Enterprise.
On pricing, Open Source is free; Starter is $100 a month with 5 users included; Pro is $575 a month with 10 users included; Enterprise starts at $20,000 a year.
When Metabase is the better choice
- Non-engineers build the dashboards. Analysts, PMs, and support staff can slice data, save questions, and build dashboards without waiting on the engineering team. That is the point of a BI tool, and it's a capability hypequery deliberately does not have.
- The audience is internal. Leadership dashboards, ops exploration, and ad-hoc questions are what Metabase is for.
- You need charts this week. Connect ClickHouse through the official connector, build a question, embed it. No code, no deploy, no schema generation step.
- You want the extras without building them. Alerts, scheduled email and Slack subscriptions, a permissions model, and a query editor with visual and SQL modes. Metabase also ships an MCP server on every plan, scoped to the connecting person's permissions.
- Guest embeds cover your tenant needs. If view-only charts with a tenant filter locked in a signed token are enough, embedding works on any plan.
If the job is "put an internal revenue dashboard in front of the leadership team," or "let ops explore event data without writing SQL," Metabase wins on almost every axis. Reaching for a library there would be over-engineering.
Where embedding a BI tool gets harder for product teams
The friction shows up when the dashboard is your product, shipped to your customers, rather than an internal tool.
The UI is Metabase's, not yours. You can theme embeds, and modular embedding lets you place individual components, but they are still Metabase charts. On Open Source and Starter, guest embeds carry a "Powered by Metabase" banner. For a polished, customer-facing surface that has to match your product's design system, that ceiling gets real.
Interactive, per-user embedding is a paid feature. Guest embeds are view-only. Interactive embeds tied to your users, the React SDK, and row and column security need Pro or Enterprise, which start at $575 a month.
Per-tenant governance lives in Metabase. Row and column security enforces row-level rules by mapping user attributes to filters inside Metabase's permission model. For a multi-tenant SaaS product, that's a second source of truth for "who can see what," configured separately from the authorization your application already has. When your app already knows the tenant from the request, injecting that scope in your own code is often simpler and easier to audit.
Queries aren't code. Questions authored in the Metabase UI don't live in your repo, don't go through code review, and aren't covered by your CI. There are no compile-time types tying a chart to your ClickHouse schema, so a column rename surfaces as a broken dashboard at runtime rather than a type error at build time.
None of these are bugs. They're the natural shape of a BI tool. They just point at a different set of jobs than product analytics.
What the code-first route looks like
hypequery assumes you own the ClickHouse and you're building the analytics surface yourself, in TypeScript or Python. The examples here are TypeScript.
- Run
hypequery generateagainst your live ClickHouse. It introspects the schema and produces TypeScript types with correct runtime mappings —DateTimecomes back as a string,UInt64as a string,Nullable(T)asT | null. - Write queries with a fully typed builder. Runtime parameters — date ranges, tenant IDs, filters — are just function arguments.
- Serve them as typed REST endpoints with input validation and generated OpenAPI docs via
@hypequery/serve. - Build the dashboard from your own components, consuming the same typed contract through
@hypequery/reacthooks.
A tenant-scoped query looks like ordinary application code:
import { createQueryBuilder } from '@hypequery/clickhouse'; import type { IntrospectedSchema } from './generated/schema.js'; const db = createQueryBuilder<IntrospectedSchema>({ url: process.env.CLICKHOUSE_URL!, username: process.env.CLICKHOUSE_USERNAME!, password: process.env.CLICKHOUSE_PASSWORD, database: process.env.CLICKHOUSE_DATABASE!, }); const revenueByDay = (tenantId: string) => db .table('orders') .where('tenant_id', 'eq', tenantId) .groupByTimeInterval('created_at', '1 day') .sum('total', 'revenue') .orderBy('created_at', 'ASC') .execute();
The tenant_id filter comes from your request context — the same auth you already trust for the rest of the app. There's no second permission system to keep in sync. And because the return type is generated from the real schema, renaming total in ClickHouse and re-running generate turns every stale query into a compile error, not a broken customer dashboard.
Serving it is a small step from there:
import { initServe } from '@hypequery/serve'; import { db } from './client.js'; import { verifyAuth } from './auth.js'; // your session or JWT check const { query, serve } = initServe({ context: () => ({ db }), basePath: '/api/analytics' }); const revenue = query({ description: 'Daily revenue for the current tenant', query: ({ ctx }) => ctx.db .table('orders') .groupByTimeInterval('created_at', '1 day') .sum('total', 'revenue') .execute(), }); export const api = serve({ // The tenant comes from the verified session, and every query is scoped to it auth: verifyAuth, tenant: { extract: (auth) => auth.tenantId, column: 'tenant_id', mode: 'auto-inject' }, queries: { revenue }, });
That endpoint is validated, documented, and consumed by typed React hooks in your own charts. The trade you're making: you build the UI and wire the auth, instead of getting them from a BI tool. The same datasets can also be served from FastAPI, Django or Flask with the Python SDK, and exposed to AI agents through @hypequery/mcp.
The honest comparison
| Metabase | hypequery | |
|---|---|---|
| Category | BI tool with an official ClickHouse connector | Code-first analytics layer behind your own UI |
| Best for | Internal dashboards, self-serve exploration | Customer-facing product analytics |
| Who authors queries | Anyone, in the UI | Engineers, in TypeScript or Python |
| Embedding | Guest embeds on every plan; modular embedding, the React SDK and full app embedding on Pro and Enterprise | Your own React components on typed hooks |
| Branding | "Powered by Metabase" on guest embeds in Open Source and Starter | Your design system |
| Type safety | None; queries live in the BI UI | Generated from your ClickHouse schema |
| Multi-tenancy | Locked filters in signed tokens; row and column security on Pro and Enterprise | Tenant scope from your auth, per request |
| In your repo / code review | No | Yes |
| Agents | MCP server on every plan | @hypequery/mcp over your datasets and metrics |
| Ops | Run Metabase, or use Metabase Cloud | Add packages to your existing app |
| Pricing | Open Source free; Starter $100/month; Pro $575/month; Enterprise from $20,000/year | Open source; you pay for your infra |
How to actually decide
Is the audience internal? Metabase, almost every time. Self-serve exploration for non-engineers is exactly what it's for, and building that with a library would be wasted effort.
Is the dashboard a feature of your product, shipped to customers? This is hypequery's home turf. When the analytics surface has to match your design system, respect your existing auth, and ship through your normal review-and-deploy pipeline, owning it in code pays off. The ClickHouse dashboard guide walks through building one, and ClickHouse React covers the hooks side of the contract.
Do per-tenant rules already live in your app? If your backend already knows the tenant from the request, enforcing that scope in your own query code keeps one source of truth. Our write-up on multi-tenant embedded analytics covers the isolation patterns, and ClickHouse SaaS analytics covers the broader tenant story.
Do non-engineers need to build their own charts? Metabase — that's a job hypequery deliberately doesn't do.
Can you use both?
Yes, and it's a common, sensible split. Metabase for internal BI and ad-hoc exploration; hypequery for the customer-facing analytics baked into the product. Both point at the same ClickHouse, and they serve genuinely different audiences from it. Running both isn't redundant the way two application layers would be — one is for your team, one is for your users.
Getting started with hypequery
If the customer-facing, code-first side is the one you're weighing, the quick start takes you from schema introspection to a typed, served endpoint in a few minutes — enough to see whether owning the analytics layer in your repo fits how your team ships. From there, ClickHouse React shows the dashboard hooks, and the multi-tenant analytics write-up covers per-tenant governance in your own stack.
Decision checkpoint
If the tradeoff is already clear, move into implementation
Most teams do not need another round of comparison content after this point. The better test is whether the workflow holds up on your own schema and your own query complexity.
Related content
Continue into implementation
FAQ
What is Metabase embedding?
Metabase offers four ways to put its charts in your app. Guest embeds render a dashboard or question as a web component, authorized by a JWT your server signs. Modular embedding places individual components, such as a dashboard, chart or query builder, using web components or the React SDK, with SSO. Full app embedding puts the whole Metabase app in an iframe. Public links share an item with anyone who has the link. Static embedding is deprecated in favor of guest embeds.
Which Metabase plans include embedding?
Guest embeds work on every plan, including Open Source and Starter, where they show a Powered by Metabase banner. Modular embedding with SSO, the React SDK, full app embedding, and row and column security require Pro or Enterprise. Pro is listed at $575 per month with 10 users included, and Enterprise starts at $20,000 per year (checked 8 November 2026).
Can I embed Metabase in a customer-facing SaaS product?
Yes. On any plan, guest embeds let your server lock a tenant filter into the signed token, but viewers cannot drill through or use the query builder. For interactive embeds tied to your users, with row and column security from user attributes, you need Pro or Enterprise. Either way the charts are Metabase components and the tenant rules are configured in Metabase.
Is Metabase or hypequery faster to get a first dashboard?
Metabase. Connect ClickHouse, build a question, embed it, and a chart can be live in an afternoon with no code. hypequery pays off over time when you need typed queries, tenant rules in your own auth, and UI that matches your product.
What is a good Metabase alternative for embedded analytics?
For developers who want analytics to be part of the product rather than an embedded BI tool, a code-first layer works better: hypequery serves typed, tenant-scoped ClickHouse queries as API endpoints and React hooks, and you draw the charts with your own components. If non-engineers must author the dashboards, stay with a BI tool.
Do I have to choose one?
No. A common split is Metabase for internal BI and ad-hoc exploration, and hypequery for the customer-facing analytics baked into your product. Both point at the same ClickHouse.
Next step
Move from evaluation into a typed ClickHouse workflow
Generate schema types, define your first reusable query, and decide whether it should run locally or over HTTP.