uber / cosmo
File Size

The distribution of size of files (measured in lines of code).

Intro
Learn more...
File Size Overall
18% | 18% | 23% | 19% | 20%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: grouped by folders | grouped by size | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
ts22% | 18% | 22% | 17% | 19%
tsx12% | 28% | 31% | 15% | 12%
go16% | 14% | 21% | 26% | 20%
proto82% | 0% | 12% | 3% | 1%
yaml0% | 0% | 30% | 18% | 50%
html0% | 0% | 56% | 43% | 0%
css0% | 0% | 40% | 29% | 29%
js0% | 0% | 0% | 75% | 24%
ftl0% | 0% | 0% | 51% | 48%
sql0% | 0% | 0% | 6% | 93%
mjs0% | 0% | 0% | 87% | 12%
scss0% | 0% | 0% | 100% | 0%
tf0% | 0% | 0% | 21% | 78%
tpl0% | 0% | 0% | 0% | 100%
toml0% | 0% | 0% | 0% | 100%
jsx0% | 0% | 0% | 0% | 100%
xml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
composition51% | 22% | 17% | 3% | 5%
controlplane16% | 15% | 25% | 16% | 25%
studio11% | 27% | 28% | 19% | 12%
router17% | 15% | 19% | 27% | 19%
proto82% | 0% | 12% | 3% | 1%
connect89% | 0% | 0% | 5% | 4%
playground0% | 42% | 23% | 7% | 26%
protographic0% | 68% | 16% | 7% | 6%
cli0% | 5% | 18% | 41% | 34%
helm0% | 0% | 22% | 19% | 58%
shared0% | 0% | 85% | 0% | 14%
graphqlmetrics0% | 0% | 24% | 25% | 49%
data_migrations0% | 0% | 94% | 0% | 5%
composition-go0% | 0% | 40% | 18% | 40%
cdn-server0% | 0% | 56% | 0% | 43%
router-plugin0% | 0% | 63% | 0% | 36%
keycloak0% | 0% | 0% | 57% | 42%
infrastructure0% | 0% | 0% | 21% | 78%
aws-lambda-router0% | 0% | 0% | 44% | 55%
ROOT0% | 0% | 0% | 0% | 100%
otelcollector0% | 0% | 0% | 0% | 100%
admission-server0% | 0% | 0% | 0% | 100%
docker0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
normalization-factory.ts
in composition/src/v1/normalization
3542 81
federation-factory.ts
in composition/src/v1/federation
2987 67
proto
platform.proto
in proto/wg/cosmo/platform/v1
2704 -
schema.ts
in controlplane/src/db
2255 727
router.go
in router/core
1817 105
node_pb.ts
in connect/src/wg/cosmo/node/v1
1759 300
index.tsx
in studio/src/pages/[organizationSlug]/[namespace]/graph/[slug]/schema
1578 6
FederatedGraphRepository.ts
in controlplane/src/core/repositories
1575 39
errors.ts
in composition/src/errors
1458 141
OrganizationRepository.ts
in controlplane/src/core/repositories
1452 46
graph_server.go
in router/core
1429 16
settings.tsx
in studio/src/pages/[organizationSlug]
1423 7
SubgraphRepository.ts
in controlplane/src/core/repositories
1408 37
index.tsx
in studio/src/pages/[organizationSlug]/[namespace]/graph/[slug]/checks/[checkId]
1230 -
playground.tsx
in studio/src/pages/[organizationSlug]/[namespace]/graph/[slug]
1161 5
1054 41
websocket.go
in router/core
1042 35
FeatureFlagRepository.ts
in controlplane/src/core/repositories
1001 33
custom-scripts.tsx
in studio/src/components/playground
998 -
sdl-to-proto-visitor.ts
in protographic/src
967 30
SchemaCheckRepository.ts
in controlplane/src/core/repositories
962 20
config.go
in router/pkg/config
898 11
graphql_prehandler.go
in router/core
878 13
constants.ts
in composition/src/v1/utils
864 120
metrics.tsx
in studio/src/components/analytics
833 3
apikeys.tsx
in studio/src/pages/[organizationSlug]
817 2
schema-helpers.ts
in studio/src/lib
799 12
routers.tsx
in studio/src/pages/[organizationSlug]/[namespace]/graph/[slug]
789 5
index.tsx
in studio/src/pages/[organizationSlug]/[namespace]/graph/[slug]/proposals/[proposalId]
781 -
clients.tsx
in studio/src/pages/[organizationSlug]/[namespace]/graph/[slug]
750 2
AnalyticsRequestViewRepository.ts
in controlplane/src/core/repositories/analytics
743 13
index.tsx
in studio/src/pages/[organizationSlug]/[namespace]/graph/[slug]/compositions/[compositionId]
742 -
directive-definition-data.ts
in composition/src/v1/normalization
714 9
composer.ts
in controlplane/src/core/composition
708 18
utils.ts
in composition/src/schema-building
697 49
ProposalRepository.ts
in controlplane/src/core/repositories
687 17
mocks.go
in router/pkg/pubsub/datasource
683 83
monaco-dark-theme.ts
in playground/src/components/playground
682 -
monaco-dark-theme.ts
in studio/src/components/schema
682 -
integrations.tsx
in studio/src/pages/[organizationSlug]
679 -
index.ts
in controlplane/src/types
672 -
SubgraphMetricsRepository.ts
in controlplane/src/core/repositories/analytics
670 18
PlatformService.ts
in controlplane/src/core/bufservices
663 2
trace-view.tsx
in studio/src/components/playground
651 1
MetricsRepository.ts
in controlplane/src/core/repositories/analytics
621 18
federatedgraphs-cards.tsx
in studio/src/components
614 1
trace-view.tsx
in playground/src/components/playground
608 2
extendSchema.ts
in composition/src/buildASTSchema
592 43
header_rule_engine.go
in router/core
592 24
factoryresolver.go
in router/core
591 12
Files With Most Units (Top 50)
File# lines# units
schema.ts
in controlplane/src/db
2255 727
node_pb.ts
in connect/src/wg/cosmo/node/v1
1759 300
errors.ts
in composition/src/errors
1458 141
constants.ts
in composition/src/v1/utils
864 120
router.go
in router/core
1817 105
mocks.go
in router/pkg/pubsub/datasource
683 83
normalization-factory.ts
in composition/src/v1/normalization
3542 81
federation-factory.ts
in composition/src/v1/federation
2987 67
context.go
in router/core
518 56
utils.ts
in composition/src/schema-building
697 49
OrganizationRepository.ts
in controlplane/src/core/repositories
1452 46
extendSchema.ts
in composition/src/buildASTSchema
592 43
walkers.ts
in composition/src/v1/normalization
584 42
1054 41
FederatedGraphRepository.ts
in controlplane/src/core/repositories
1575 39
SubgraphRepository.ts
in controlplane/src/core/repositories
1408 37
websocket.go
in router/core
1042 35
FeatureFlagRepository.ts
in controlplane/src/core/repositories
1001 33
sdl-to-proto-visitor.ts
in protographic/src
967 30
mocks.go
in router/pkg/pubsub/nats
245 27
utils.ts
in composition/src/v1/utils
409 25
sdl-to-mapping-visitor.ts
in protographic/src
233 25
util.ts
in controlplane/src/core
461 25
header_rule_engine.go
in router/core
592 24
OperationsRepository.ts
in controlplane/src/core/repositories
420 24
engine_stats.go
in router/pkg/statistics
115 23
server.go
in router/pkg/mcpserver
528 22
plugin_logger.go
in router/pkg/grpcconnector
80 22
mocks.go
in router/pkg/pubsub/kafka
195 22
mocks.go
in router/pkg/pubsub/redis
195 22
ast.ts
in composition/src/schema-building
264 21
metric_store.go
in router/pkg/metric
350 21
SchemaCheckRepository.ts
in controlplane/src/core/repositories
962 20
toolchain.ts
in cli/src/commands/router/commands/plugin
346 19
client.go
in router-plugin/httpclient
222 19
json_schema.go
in router/pkg/config
447 19
CacheWarmerRepository.ts
in controlplane/src/core/repositories
589 19
utils.ts
in composition/src/utils
211 18
utils.ts
in composition/src/ast
265 18
MetricsRepository.ts
in controlplane/src/core/repositories/analytics
621 18
AnalyticsDashboardViewRepository.ts
in controlplane/src/core/repositories/analytics
293 18
SubgraphMetricsRepository.ts
in controlplane/src/core/repositories/analytics
670 18
RBACEvaluator.ts
in controlplane/src/core/services
207 18
composer.ts
in controlplane/src/core/composition
708 18
mocks_resolve.go
in router/pkg/pubsub/datasource
107 17
test-util.ts
in controlplane/src/core
248 17
ProposalRepository.ts
in controlplane/src/core/repositories
687 17
BillingService.ts
in controlplane/src/core/services
341 17
compose.ts
in cli/src/commands/router/commands
575 16
prom_metric_store.go
in router/pkg/metric
175 16
Files With Long Lines (Top 50)

There are 429 files with lines longer than 120 characters. In total, there are 1534 long lines.

File# lines# units# long lines
config.go
in router/pkg/config
898 11 109
node_pb.ts
in connect/src/wg/cosmo/node/v1
1759 300 62
graph_server.go
in router/core
1429 16 43
mocks.go
in router/pkg/pubsub/datasource
683 83 37
1054 41 36
proto
platform.proto
in proto/wg/cosmo/platform/v1
2704 - 35
router_config.go
in router/core
287 1 30
router.go
in router/core
1817 105 27
0105_flippant_grey_gargoyle.sql
in controlplane/migrations
92 - 26
graphql_prehandler.go
in router/core
878 13 25
websocket.go
in router/core
1042 35 22
errors.ts
in composition/src/errors
1458 141 18
factoryresolver.go
in router/core
591 12 17
header_rule_engine.go
in router/core
592 24 14
0091_conscious_sway.sql
in controlplane/migrations
88 - 14
plugin.ts
in cli/src/commands/router/commands/plugin/templates
319 6 13
metric_store.go
in router/pkg/metric
350 21 13
planner.go
in router/pkg/pubsub/datasource
169 11 12
0123_unusual_omega_red.sql
in controlplane/migrations
87 - 12
0118_old_callisto.sql
in controlplane/migrations
106 - 11
migrate.go
in data_migrations/controlplane/1726744316_add_span_id_to_trace/files
345 9 10
noop_metrics.go
in router/pkg/metric
39 13 10
0000_slimy_vargas.sql
in controlplane/migrations
104 - 10
server.go
in router/pkg/mcpserver
528 22 9
mocks.go
in router/pkg/pubsub/nats
245 27 9
provider_builder.go
in router/pkg/pubsub/nats
131 6 9
graphql_handler.go
in router/core
392 7 9
0117_calm_raider.sql
in controlplane/migrations
57 - 9
authorizer.go
in router/core
163 14 8
plan_generator.go
in router/core
301 15 8
0093_serious_starfox.sql
in controlplane/migrations
49 - 8
0098_flowery_gunslinger.sql
in controlplane/migrations
67 - 8
0028_foamy_magdalene.sql
in controlplane/migrations
76 - 8
federatedgraphs-cards.tsx
in studio/src/components
614 1 7
cache_metrics.go
in router/pkg/metric
176 6 7
mocks.go
in router/pkg/pubsub/kafka
195 22 7
mocks.go
in router/pkg/pubsub/redis
195 22 7
adapter.go
in router/pkg/pubsub/nats
249 9 7
0046_late_arclight.sql
in controlplane/migrations
61 - 7
0057_late_golden_guardian.sql
in controlplane/migrations
58 - 7
select.tsx
in playground/src/components/ui
103 - 6
utils.ts
in composition/src/resolvability-graph
218 8 6
layout-cloud-iam.ftl
in keycloak/theme/src/main/resources/theme/cosmo/login
154 - 6
login-update-password.ftl
in keycloak/theme/src/main/resources/theme/cosmo/login
54 - 6
login.ftl
in keycloak/theme/src/main/resources/theme/cosmo/login
94 - 6
playground.tsx
in studio/src/pages/[organizationSlug]/[namespace]/graph/[slug]
1161 5 6
dropdown-menu.tsx
in studio/src/components/ui
165 - 6
select.tsx
in studio/src/components/ui
120 - 6
create.ts
in cli/src/commands/graph/federated-graph/commands
158 3 6
update.ts
in cli/src/commands/graph/federated-graph/commands
156 3 6