# cube-js/cube

📊 Cube Core is open-source semantic layer for AI, BI and embedded analytics

Repository: https://github.com/cube-js/cube
Canonical: https://ross.abutalabs.com/products/cube
Homepage: https://cube.dev
Language: Rust
License: NOASSERTION
License Family: other
Topics: analytics, cube, postgresql, mysql, bigquery, sql, rust, headless-bi, semantic-layer, databricks, snowflake, business-intelligence, businessintelligence, embedded-analytics, bi, agentic-analytics, conversational-analytics, agents, ai
Last push: 2026-08-27T00:29:26+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 87, longevity 100
- inputs: {"age_days": 2908, "days_push": 7, "days_rel": 7, "gap_med": 1.0, "n_releases_24m": 297}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 20711, forks 2125 (observed 2026-08-28T04:11:30.385274+00:00)

## What it is
Cube Core is an open-source semantic layer that lets teams define metrics, dimensions, joins, and access rules in code, then serve them through SQL, REST, and GraphQL APIs to BI tools, applications, and AI agents. It connects to virtually any SQL data source (Snowflake, BigQuery, Databricks, Postgres, etc.) and includes a relational caching engine for sub-second query latency at high concurrency.

## Use cases
- define business metrics once and reuse them across BI tools and apps
- build embedded customer-facing analytics inside a SaaS product
- expose a governed semantic model to AI agents via MCP or Chat API
- add caching and sub-second query latency over a slow data warehouse
- provide a SQL/REST/GraphQL analytics API for custom applications
- centralize access control and row-level security for analytics queries
- enable natural-language question answering grounded in a governed data model

## When to choose
- you need a single governed metric layer shared by BI tools, embedded apps, and AI agents
- you want to ship multi-tenant embedded analytics without rebuilding your BI stack
- your warehouse queries are slow and you need caching with high concurrency
- you want AI agents to answer data questions without writing raw SQL against the warehouse
- you prefer defining metrics as code that lives in version control

## When to avoid
- you need a full out-of-the-box BI UI - Cube Core is headless and ships no dashboards
- your analytics needs are simple single-database reporting that a charting library covers
- you want a lightweight in-process library rather than a standalone service to deploy
- your team cannot operate an additional server component in the data stack

## Facets
- artifact type: service
- maturity: active
- function: analytics, api-framework, caching, rag, mcp, data-visualization
- domain: analytics, large-language-models, self-hosted
- platform: self-hosted, cloud, rust
- tags: semantic-layer, headless-bi, embedded-analytics, metrics-as-code, data-warehouse, conversational-analytics, agentic-analytics, sql-api, graphql-api, rest-api, sql, business-intelligence, data-engineering, ai-agents, docker, nodejs, web-server

## Member repositories
- cube-js/cube (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:30.385274+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:58:33.673714+00:00, confidence not recorded.
  - readme: https://github.com/cube-js/cube (fetched 2026-08-28T04:11:30.385274+00:00, sha 20206b625672)
  - homepage: https://cube.dev (fetched 2026-08-29T07:57:19.034407+00:00, sha d0e7901d34f6)
  - site_page: https://cube.dev/about (fetched 2026-08-29T07:57:19.045492+00:00, sha 3241ec5c163c)
  - site_page: https://docs.cube.dev/docs/introduction (fetched 2026-08-29T07:57:19.046946+00:00, sha 630f6491d106)
  - site_page: https://docs.cube.dev/docs/explore-analyze/analytics-chat (fetched 2026-08-29T07:57:19.053017+00:00, sha 6dded6054ad8)
  - site_page: https://docs.cube.dev/docs/explore-analyze/workbooks (fetched 2026-08-29T07:57:19.054721+00:00, sha 6425163e983b)
  - site_page: https://docs.cube.dev/docs/explore-analyze/dashboards (fetched 2026-08-29T07:57:19.056570+00:00, sha 3eea8b2b767a)
  - site_page: https://cube.dev/pricing (fetched 2026-08-29T07:57:19.043700+00:00, sha b44626cb1181)
  - site_page: https://cube.dev/changelog (fetched 2026-08-29T07:57:19.048686+00:00, sha bfc4f1f1a5c3)
  - site_page: https://cube.dev/integrations (fetched 2026-08-29T07:57:19.051436+00:00, sha bdb28fb5c838)
- Data as of 2026-08-30T08:39:29.467469+00:00.
