• Stars21.1k+40 tuần này
  • Forks2.2k
  • Watchers160
  • Issues618
  • Ngày tạo17/09/2018
  • Cập nhật gần nhất28/10/2026
  • Ngôn ngữRust
  • Giấy phép—
README.md13.1 KBRaw

Cube Core — Open-Source Semantic Layer


Website • Docs • Examples • Blog • Slack • X

npm version GitHub Actions FOSSA Status

Cube Core is the open-source semantic layer. Define metrics, dimensions, joins, and access rules once in code, then expose them through SQL, REST, and GraphQL APIs to anything downstream — BI tools, custom applications, or AI agents. Cube Core is headless: it doesn't ship a UI, so you can build the analytics experience that fits your product.

Cube Core works with all SQL data sources, including cloud data warehouses like Snowflake, Databricks, and BigQuery; query engines like Presto and Amazon Athena; and application databases like Postgres. It has a built-in relational caching engine to provide sub-second latency and high concurrency for API requests.

Cube Core — semantic layer connecting data sources to embedded analytics, BI tools, and AI agents

Learn more about connecting Cube to data sources and analytics & visualization tools.

Why Cube Core?

Every BI tool relies on a semantic layer as its core engine — the component that defines metrics, dimensions, and business logic and hides the complexity of the underlying data sources. Most semantic layers are proprietary, tightly coupled to a single BI platform, and can't be reused across other tools.

Cube Core is an open, standalone semantic layer that any analytics application or AI agent can consume through standard APIs. Define your metrics once and use them everywhere — internal BI, embedded analytics, AI agents — without re-implementing the model in each place.

Getting Started

You can run Cube Core locally or self-host it with Docker.

Once Docker is installed, in a new folder for your project, run:

docker run -p 4000:4000 \
  -p 15432:15432 \
  -v ${PWD}:/cube/conf \
  -e CUBEJS_DEV_MODE=true \
  cubejs/cube

Then open http://localhost:4000 in your browser to continue setup.

Development mode is an authentication bypass. In the official images — whose entrypoint is the cubejs CLI — CUBEJS_DEV_MODE=true also forces NODE_ENV=development, which switches off JWT verification on the REST (JSON) and GraphQL APIs, so they accept requests with no token at all. Playground and its supporting endpoints are served with no authentication either, so anyone who can reach the instance is handed a ready-to-use API token (and can mint others carrying any security context, signed with your API secret), can read your data model, and can overwrite it and your

Nội dung README thuộc về cube-js và cộng đồng đóng góp, giấy phép Không có giấy phép. Nguồn: github.com/cube-js/cube