cube-js/cube · Architecture
A static read of how cube-js/cube is wired together — module coupling, layering, and circular dependencies — derived from its import graph.
C
Architecture grade
score 67/100
7
Import cycles
lower is better
400
Modules parsed
665 edges
93%
Layeredness
clean-layer ratio
Most-depended-on modules
These are the highest-fan-in files — change them and the blast radius is largest. Read them first.
- packages/cubejs-playground/src/QueryBuilderV2/hooks/index.ts27 importers · radius 37
- packages/cubejs-playground/src/QueryBuilderV2/types.ts23 importers · radius 56
- packages/cubejs-playground/src/QueryBuilderV2/context.tsx20 importers · radius 23
- packages/cubejs-playground/src/QueryBuilderV2/utils/index.ts13 importers · radius 56
- packages/cubejs-client-react/src/types.ts11 importers · radius 12
- packages/cubejs-cli/src/utils.ts10 importers · radius 11
- packages/cubejs-playground/src/QueryBuilderV2/hooks/event.ts9 importers · radius 66
- packages/cubejs-playground/src/QueryBuilderV2/components/ListMemberButton.tsx7 importers · radius 13
Modules (24)
Source directories grouped from the import graph. Each links to a per-module page with its files and how it couples to the rest.
- packages/cubejs-playground/src/QueryBuilderV2/components28 files · 71 in-degree
- packages/cubejs-playground/src/QueryBuilderV218 files · 64 in-degree · in cycle
- packages/cubejs-playground/src/QueryBuilderV2/hooks14 files · 59 in-degree · in cycle
- packages/cubejs-playground/src/QueryBuilderV2/utils12 files · 34 in-degree · in cycle
- packages/cubejs-api-gateway/src/types7 files · 28 in-degree
- packages/cubejs-api-gateway/src10 files · 26 in-degree · in cycle
- packages/cubejs-backend-shared/src12 files · 24 in-degree · in cycle
- packages/cubejs-client-react/src6 files · 23 in-degree
- packages/cubejs-client-ngx/src/query-builder7 files · 16 in-degree · in cycle
- packages/cubejs-playground/src/QueryBuilderV2/components/Accordion7 files · 14 in-degree
- packages/cubejs-playground/src/QueryBuilder4 files · 12 in-degree
- packages/cubejs-playground/src/QueryBuilderV2/icons3 files · 12 in-degree
- packages/cubejs-client-react/src/hooks7 files · 11 in-degree
- packages/cubejs-cli/src2 files · 11 in-degree
- packages/cubejs-cli/src/command9 files · 9 in-degree
- packages/cubejs-cubestore-driver/src4 files · 8 in-degree
- packages/cubejs-backend-cloud/src4 files · 8 in-degree
- packages/cubejs-base-driver/src4 files · 8 in-degree
- packages/cubejs-api-gateway/src/ws3 files · 7 in-degree · in cycle
- packages/cubejs-playground/src3 files · 7 in-degree
- packages/cubejs-playground/src/QueryBuilderV2/Pivot4 files · 6 in-degree
- packages/cubejs-clickhouse-driver/src4 files · 6 in-degree
- packages/cubejs-playground/src/atoms2 files · 6 in-degree
- packages/cubejs-playground/src/components2 files · 6 in-degree
Circular dependencies (7)
- packages/cubejs-api-gateway/src/gateway.ts to packages/cubejs-api-gateway/src/ws/subscription-server.ts to packages/cubejs-api-gateway/src/gateway.ts
- packages/cubejs-api-gateway/src/gateway.ts to packages/cubejs-api-gateway/src/sql-server.ts to packages/cubejs-api-gateway/src/gateway.ts
- packages/cubejs-backend-shared/src/env.ts to packages/cubejs-backend-shared/src/platform.ts to packages/cubejs-backend-shared/src/errors.ts to packages/cubejs-backend-shared/src/env.ts
- packages/cubejs-client-ngx/src/query-builder/query.ts to packages/cubejs-client-ngx/src/query-builder/query-members.ts to packages/cubejs-client-ngx/src/query-builder/query.ts
- packages/cubejs-databricks-jdbc-driver/src/DatabricksDriver.ts to packages/cubejs-databricks-jdbc-driver/src/helpers.ts to packages/cubejs-databricks-jdbc-driver/src/DatabricksDriver.ts
- packages/cubejs-playground/src/QueryBuilderV2/types.ts to packages/cubejs-playground/src/QueryBuilderV2/hooks/query-builder.ts to packages/cubejs-playground/src/QueryBuilderV2/utils/index.ts to packages/cubejs-playground/src/QueryBuilderV2/utils/get-member-search-name.ts to packages/cubejs-playground/src/QueryBuilderV2/types.ts
Ask AI about cube-js/cube
Grounded in the actual source code. Pick a starter question or write your own.
What does this repo do, in one paragraph?How would I get started using it?What are the main alternatives?Show me the entry point.
Or write your own questionInformational only. RepoPilot summarises public signals at the time of analysis; they can be incomplete or stale. Not professional, security, or legal advice.