Skip to content
Cube logo

Cube

Define a metric once and let every tool and app agree on it.

AnalyticsOpen source
9 votes

About Cube

What Cube is

Cube is a semantic layer. You define measures, dimensions and joins once in version-controlled files, and every consumer, dashboards, applications or notebooks, queries those definitions rather than writing its own SQL.

The problem it addresses

Metrics drift. One dashboard counts active users as anybody who logged in; another excludes internal accounts; a third filters to the last thirty days. All three were correct when written and none agrees now, so meetings spend their first ten minutes establishing whose number to believe. The second problem is cost and latency: a customer-facing chart that runs a warehouse query on every page load is both slow and expensive, and caching it correctly is work nobody wants to repeat per chart.

Definitions as code

Measures live in files, reviewed and versioned like anything else. Changing what revenue means becomes a pull request with a diff rather than an edit somebody made in a dashboard and nobody noticed.

Many interfaces

REST, GraphQL and SQL all expose the same model, so a dashboard tool and an application front end consume identical definitions without either knowing about the other.

Pre-aggregations

Rollups are built and refreshed ahead of time, so repeated questions are answered from a cache rather than the warehouse. That is what makes embedded analytics affordable.

Access control

Rules apply per query context, so the same definition serves an internal analyst and a customer seeing only their own rows.

Where it stops

This is infrastructure, not a product anybody looks at. It needs a warehouse, somebody to own the model, and discipline about where definitions live. Small teams with one analyst gain little. Pre-aggregation strategy is a genuine skill, and getting it wrong produces stale numbers that are harder to spot than slow ones.

Development workflow

Models are plain files, so branches, review and automated testing apply exactly as they do elsewhere in a repository. A playground executes queries against the current definitions during authoring, catching join mistakes immediately rather than in somebody's dashboard. Generated documentation lists available measures with their descriptions, giving consumers a reference instead of asking an analyst repeatedly.

Cube interface

Key features

  • A semantic layer defining measures and dimensions once, in version-controlled files
  • REST, GraphQL and SQL interfaces over the same definitions
  • Pre-aggregations that cache rollups so dashboards do not hammer the warehouse
  • Access control expressed per query context rather than per dashboard
  • Self-hosting as a container alongside your existing warehouse
  • Connectors for the common warehouses and databases

What people use it for

  • Stopping two dashboards from disagreeing about what revenue means
  • Powering customer-facing analytics in a product without hand-written queries
  • Keeping warehouse costs down by serving repeated questions from rollups

Key facts

Key facts about Cube
CategoryAnalytics
PricingOpen source
Free tierYes
Upvotes9
Listed26 October 2026

Questions

What is a semantic layer for?

Agreement. When each dashboard contains its own SQL, definitions drift and two reports disagree about active users. Defining the measure once and having every consumer read it means the argument happens in a code review rather than in a meeting six months later.

Does it replace the business intelligence tool?

No, it sits underneath one. Visualisation still happens in a dashboard product or in your own application. What changes is that both are querying the same definitions rather than reinventing them, which is the problem it exists to solve.

When is it overkill?

When one person writes all the queries and nobody has yet disagreed about a number. The layer earns its keep at the point several teams consume the same data through different tools, and before that it is infrastructure maintained for a problem you do not have.

Summarise with AI

Is this your product?

Claim the listing to correct anything wrong with it, add features and a changelog, and answer questions from people deciding whether to try it. Free, and it stays yours.

Claim this listing
  • Product analytics, replays, flags and experiments in one open-source stack.

    Freemium
  • Event analytics for questions that start with “how many users who”.

    Freemium
  • Web analytics with no cookies, no banner and a script under 1KB.

    Paid
  • Simple, private analytics on one screen you can read in ten seconds.

    Paid

Best analytics tools, ranked

Nobody from Cube has claimed this listing. We wrote it from their own website. Work there? Claim it.