Cube logo

Cube

Semantic layer and headless BI for building data apps on any database

18k TypeScript Apache-2.0 22 days ago

Overview

Cube (formerly Cube.js) is an open-source semantic layer that sits between your database and any frontend BI or data app. It provides a schema-driven data model, automatic caching with pre-aggregations, multi-tenant access control, and REST/GraphQL/SQL APIs. Deployed as a Node.js service via Docker, it connects to Postgres, BigQuery, Snowflake, DuckDB, and dozens more.

Where it falls short of Retool

  • Not an end-user spreadsheet; requires developer effort to define data models in YAML or JavaScript
  • No built-in visual grid editor; intended to power custom-built frontends, not replace Airtable directly
  • Pre-aggregation setup for large datasets requires careful tuning and database-specific knowledge

We list the gaps honestly so you can decide if the trade-off is worth owning your data.

Tags

semantic-layer
bi
database
api
analytics
Maintain Cube?

Claim this listing to keep it accurate, add a deploy template, or feature it on relevant pages.

Show off your self-host difficulty score

Embed the Cube difficulty badge in your README — it links back here.

Self-host difficulty badge← add this to your README
[![Self-host difficulty](https://openreplace.com/api/badge/cube)](https://openreplace.com/cube)

Similar open-source projects

Other self-hostable tools in the same space worth comparing.

Open-source Firebase alternative built on PostgreSQL with realtime and auth

78k TypeScript Apache-2.0 17 days ago
3/5
Cube vs Supabase

Free and self-hostable no-code database that turns any SQL DB into a smart spreadsheet

64k TypeScript AGPL-3.0 5 days ago
2/5
1-click
Cube vs NocoDB

Single-file open-source backend: SQLite database, auth, file storage, realtime

43k Go MIT 1 month ago
1/5
Cube vs PocketBase

Open-source low-code platform to build internal apps and admin panels fast

40k TypeScript Apache-2.0 5 days ago
3/5
1-click
Cube vs Appsmith