selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

cube logo

Self-host cube

v1.6.77

Open-source semantic layer for AI, BI and embedded analytics

ReleaseOpen SourceOther
Updatedyesterday
LanguageRust
Setup difficultyAdvanced
Stars
21 190
Ports
4000 (HTTP API (JSON/GraphQL)), 15432 (PostgreSQL-compatible SQL API)

What is cube?

Cube Core is an open-source semantic layer that lets teams define metrics, dimensions, joins, and access rules once in code, then expose them through SQL, REST, and GraphQL APIs to any downstream application — BI tools, custom embedded analytics, or AI agents. It works with cloud data warehouses like Snowflake, Databricks, and BigQuery, query engines like Presto and Amazon Athena, and application databases like Postgres. Cube Core has a built-in relational caching engine called Cube Store for sub-second latency and high concurrency. Unlike most proprietary semantic layers tied to a single platform, Cube Core is standalone and headless without its own UI, enabling developers to build their own analytics experience.

cube alternatives

All self-hosted alternatives to dbt Semantic Layer → All self-hosted alternatives to LookML →

Should you self-host cube?

cube scores 72/100 on selfhost.directory (how scoring works) and ranks #4 of 10 in Data Management. It has 21 190 GitHub stars, +237 in the last 30 days.

It shipped 102 stable releases in the past year. The latest, v1.6.77, came out on 6 November 2026. New versions land roughly every 1 days.

Setup is advanced: plan for several services and some ongoing maintenance. It is Other-licensed and written mostly in Rust.

Its closest alternative on selfhost.directory is OpenBB (87/100, 75 209 stars). It scores higher overall, so compare the two before you pick. See cube vs OpenBB side by side.

Features

  • GraphQL API
  • Query caching
  • REST API
  • Semantic Layer
  • SQL API

cube README

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.

How to configure cube

  • CUBEJS_API_SECRETAPI secret for JWT token verification
  • CUBEJS_CACHE_AND_QUEUE_DRIVERmemoryCache and queue driver (cubestore or memory)

    values: cubestore, memory

  • CUBEJS_CUBESTORE_HOSTCube Store host
  • CUBEJS_CUBESTORE_PORTCube Store port
  • CUBEJS_DEV_MODEfalseEnable development mode which bypasses authentication

    values: true, false

cube releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

More in Data Management

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…