openai / openai-apps-sdk-examples
File Size

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

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 88 files with 13,922 lines of code.
    • 2 very long files (2,801 lines of code)
    • 5 long files (3,871 lines of code)
    • 11 medium size files (3,510 lines of code)
    • 18 small files (2,571 lines of code)
    • 52 very small files (1,169 lines of code)
20% | 27% | 25% | 18% | 8%
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
ts37% | 34% | 17% | 0% | 10%
tsx26% | 14% | 20% | 30% | 7%
jsx0% | 34% | 27% | 27% | 10%
css0% | 88% | 0% | 0% | 11%
py0% | 0% | 76% | 23% | 0%
yaml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
mcp_app_basics_node100% | 0% | 0% | 0% | 0%
src14% | 27% | 19% | 24% | 12%
cards_against_ai_server_node0% | 99% | 0% | 0% | <1%
authenticated_server_python0% | 0% | 100% | 0% | 0%
kitchen_sink_server_node0% | 0% | 100% | 0% | 0%
pizzaz_server_node0% | 0% | 100% | 0% | 0%
solar-system_server_python0% | 0% | 100% | 0% | 0%
pizzaz_server_python0% | 0% | 100% | 0% | 0%
shopping_cart_python0% | 0% | 0% | 100% | 0%
kitchen_sink_server_python0% | 0% | 0% | 100% | 0%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
server.ts
in mcp_app_basics_node/src
1459 2
index.tsx
in src/pizzaz-shop
1342 4
todo.jsx
in src/todo
948 -
todo.css
in src/todo
836 -
kitchen-sink-lite.tsx
in src/kitchen-sink-lite
756 8
server.ts
in cards_against_ai_server_node/src
740 12
GameInstance.ts
in cards_against_ai_server_node/src
591 17
solar-system.jsx
in src/solar-system
484 -
main.py
in authenticated_server_python
461 10
index.tsx
in src/shopping-cart
353 5
server.ts
in kitchen_sink_server_node/src
349 12
server.ts
in pizzaz_server_node/src
347 16
main.py
in solar-system_server_python
276 7
index.jsx
in src/pizzaz
275 -
main.py
in pizzaz_server_python
259 6
App.tsx
in src/cards-against-ai
253 5
PlayArea.tsx
in src/cards-against-ai
248 3
App.tsx
in src/host-theming
205 -
main.py
in shopping_cart_python
184 6
App.tsx
in src/streaming-tool-input
170 1
App.tsx
in src/call-server-tool
170 -
App.tsx
in src/get-host-context
169 -
App.tsx
in src/request-display-mode
166 -
App.tsx
in src/open-link
165 -
Sidebar.jsx
in src/pizzaz
159 -
App.tsx
in src/send-message
147 -
index.jsx
in src/pizzaz-albums
145 -
Cards.tsx
in src/cards-against-ai
139 2
icons.tsx
in src/shopping-cart
138 4
App.tsx
in src/get-host-capabilities
135 -
App.tsx
in src/get-host-version
124 -
index.jsx
in src/pizzaz-carousel
117 -
main.py
in kitchen_sink_server_python
115 4
index.jsx
in src/pizzaz-list
112 -
index.jsx
in src/mixed-auth-search
110 -
Inspector.jsx
in src/pizzaz
106 -
App.tsx
in src/show-tool-result
96 -
index.css
in src
92 -
App.tsx
in src/update-model-context
91 -
83 2
index.jsx
in src/mixed-auth-past-orders
78 -
types.ts
in src/cards-against-ai
78 -
types.ts
in src
75 -
Scoreboard.tsx
in src/cards-against-ai
56 1
SplashScreen.tsx
in src/cards-against-ai
55 -
SliceCard.jsx
in src/mixed-auth-search
43 -
api-base-url.ts
in src/cards-against-ai
43 4
AlbumCard.jsx
in src/pizzaz-albums
43 -
PlaceCard.jsx
in src/pizzaz-carousel
39 -
FullscreenViewer.jsx
in src/pizzaz-albums
39 -
Files With Most Units (Top 23)
File# lines# units
GameInstance.ts
in cards_against_ai_server_node/src
591 17
server.ts
in pizzaz_server_node/src
347 16
server.ts
in kitchen_sink_server_node/src
349 12
server.ts
in cards_against_ai_server_node/src
740 12
main.py
in authenticated_server_python
461 10
kitchen-sink-lite.tsx
in src/kitchen-sink-lite
756 8
main.py
in solar-system_server_python
276 7
main.py
in pizzaz_server_python
259 6
main.py
in shopping_cart_python
184 6
index.tsx
in src/shopping-cart
353 5
App.tsx
in src/cards-against-ai
253 5
main.py
in kitchen_sink_server_python
115 4
index.tsx
in src/pizzaz-shop
1342 4
icons.tsx
in src/shopping-cart
138 4
api-base-url.ts
in src/cards-against-ai
43 4
38 3
PlayArea.tsx
in src/cards-against-ai
248 3
server.ts
in mcp_app_basics_node/src
1459 2
11 2
83 2
Cards.tsx
in src/cards-against-ai
139 2
App.tsx
in src/streaming-tool-input
170 1
Scoreboard.tsx
in src/cards-against-ai
56 1
Files With Long Lines (Top 35)

There are 35 files with lines longer than 120 characters. In total, there are 141 long lines.

File# lines# units# long lines
server.ts
in mcp_app_basics_node/src
1459 2 13
index.tsx
in src/pizzaz-shop
1342 4 13
icons.tsx
in src/shopping-cart
138 4 11
server.ts
in cards_against_ai_server_node/src
740 12 8
App.tsx
in src/request-display-mode
166 - 8
todo.jsx
in src/todo
948 - 8
main.py
in solar-system_server_python
276 7 7
index.tsx
in src/shopping-cart
353 5 7
solar-system.jsx
in src/solar-system
484 - 6
GameInstance.ts
in cards_against_ai_server_node/src
591 17 4
App.tsx
in src/get-host-capabilities
135 - 4
App.tsx
in src/open-link
165 - 4
App.tsx
in src/cards-against-ai
253 5 4
Cards.tsx
in src/cards-against-ai
139 2 4
App.tsx
in src/send-message
147 - 3
index.jsx
in src/mixed-auth-search
110 - 3
App.tsx
in src/get-host-context
169 - 3
Sidebar.jsx
in src/pizzaz
159 - 3
Inspector.jsx
in src/pizzaz
106 - 3
PlayArea.tsx
in src/cards-against-ai
248 3 3
SplashScreen.tsx
in src/cards-against-ai
55 - 3
App.tsx
in src/update-model-context
91 - 2
App.tsx
in src/get-host-version
124 - 2
index.jsx
in src/mixed-auth-past-orders
78 - 2
SliceCard.jsx
in src/mixed-auth-search
43 - 2
App.tsx
in src/call-server-tool
170 - 2
main.py
in authenticated_server_python
461 10 1
App.tsx
in src/show-tool-result
96 - 1
PlaceCard.jsx
in src/pizzaz-carousel
39 - 1
kitchen-sink-lite.tsx
in src/kitchen-sink-lite
756 8 1
index.jsx
in src/pizzaz-list
112 - 1
App.tsx
in src/streaming-tool-input
170 1 1
FullscreenViewer.jsx
in src/pizzaz-albums
39 - 1
FilmStrip.jsx
in src/pizzaz-albums
29 - 1
AlbumCard.jsx
in src/pizzaz-albums
43 - 1
Correlations

File Size vs. Commits (all time): 80 points

.pre-commit-config.yaml x: 4 commits (all time) y: 14 lines of code cards_against_ai_server_node/src/GameInstance.ts x: 8 commits (all time) y: 591 lines of code cards_against_ai_server_node/src/server.ts x: 10 commits (all time) y: 740 lines of code cards_against_ai_server_node/src/shared-types.ts x: 5 commits (all time) y: 11 lines of code src/cards-against-ai/App.tsx x: 13 commits (all time) y: 253 lines of code src/cards-against-ai/Cards.tsx x: 4 commits (all time) y: 139 lines of code src/cards-against-ai/PlayArea.tsx x: 11 commits (all time) y: 248 lines of code src/cards-against-ai/Scoreboard.tsx x: 2 commits (all time) y: 56 lines of code src/cards-against-ai/SplashScreen.tsx x: 6 commits (all time) y: 55 lines of code src/cards-against-ai/api-base-url.ts x: 5 commits (all time) y: 43 lines of code src/cards-against-ai/index.tsx x: 3 commits (all time) y: 5 lines of code src/cards-against-ai/types.ts x: 8 commits (all time) y: 78 lines of code src/index.css x: 12 commits (all time) y: 92 lines of code src/kitchen-sink-lite/kitchen-sink-lite.tsx x: 6 commits (all time) y: 756 lines of code src/types.ts x: 10 commits (all time) y: 75 lines of code src/use-openai-global.ts x: 3 commits (all time) y: 83 lines of code mcp_app_basics_node/src/server.ts x: 4 commits (all time) y: 1459 lines of code src/call-server-tool/App.tsx x: 3 commits (all time) y: 170 lines of code src/get-host-capabilities/App.tsx x: 3 commits (all time) y: 135 lines of code src/get-host-version/App.tsx x: 3 commits (all time) y: 124 lines of code src/highlight-code.tsx x: 3 commits (all time) y: 16 lines of code src/host-theming/App.tsx x: 3 commits (all time) y: 205 lines of code src/open-link/App.tsx x: 3 commits (all time) y: 165 lines of code src/send-message/App.tsx x: 3 commits (all time) y: 147 lines of code src/show-tool-result/App.tsx x: 3 commits (all time) y: 96 lines of code src/update-model-context/App.tsx x: 3 commits (all time) y: 91 lines of code authenticated_server_python/main.py x: 9 commits (all time) y: 461 lines of code kitchen_sink_server_python/main.py x: 9 commits (all time) y: 115 lines of code pizzaz_server_python/main.py x: 21 commits (all time) y: 259 lines of code shopping_cart_python/main.py x: 7 commits (all time) y: 184 lines of code solar-system_server_python/main.py x: 13 commits (all time) y: 276 lines of code src/pizzaz-albums/AlbumCard.jsx x: 4 commits (all time) y: 43 lines of code src/pizzaz-albums/index.jsx x: 4 commits (all time) y: 145 lines of code src/pizzaz-carousel/PlaceCard.jsx x: 4 commits (all time) y: 39 lines of code src/pizzaz-carousel/index.jsx x: 3 commits (all time) y: 117 lines of code src/pizzaz-list/index.jsx x: 3 commits (all time) y: 112 lines of code src/pizzaz-shop/index.tsx x: 9 commits (all time) y: 1342 lines of code src/pizzaz/Inspector.jsx x: 2 commits (all time) y: 106 lines of code src/pizzaz/Sidebar.jsx x: 3 commits (all time) y: 159 lines of code src/pizzaz/index.jsx x: 7 commits (all time) y: 275 lines of code src/mixed-auth-past-orders/index.jsx x: 2 commits (all time) y: 78 lines of code src/mixed-auth-search/SliceCard.jsx x: 2 commits (all time) y: 43 lines of code src/mixed-auth-search/index.jsx x: 2 commits (all time) y: 110 lines of code src/shopping-cart/index.tsx x: 10 commits (all time) y: 353 lines of code kitchen_sink_server_node/src/server.ts x: 7 commits (all time) y: 349 lines of code pizzaz_server_node/src/server.ts x: 12 commits (all time) y: 347 lines of code src/kitchen-sink-lite/index.tsx x: 4 commits (all time) y: 6 lines of code src/kitchen-sink-lite/kitchen-sink-lite.css x: 4 commits (all time) y: 5 lines of code src/shopping-cart/icons.tsx x: 3 commits (all time) y: 138 lines of code src/use-widget-state.ts x: 6 commits (all time) y: 38 lines of code src/pizzaz-albums/FilmStrip.jsx x: 2 commits (all time) y: 29 lines of code src/pizzaz-albums/FullscreenViewer.jsx x: 2 commits (all time) y: 39 lines of code src/use-display-mode.ts x: 1 commits (all time) y: 5 lines of code
1459.0
lines of code
  min: 1.0
  average: 145.07
  25th percentile: 5.0
  median: 65.5
  75th percentile: 165.75
  max: 1459.0
0 21.0
commits (all time)
min: 1.0 | average: 4.7 | 25th percentile: 3.0 | median: 3.0 | 75th percentile: 5.75 | max: 21.0

File Size vs. Contributors (all time): 80 points

.pre-commit-config.yaml x: 3 contributors (all time) y: 14 lines of code cards_against_ai_server_node/src/GameInstance.ts x: 2 contributors (all time) y: 591 lines of code cards_against_ai_server_node/src/server.ts x: 2 contributors (all time) y: 740 lines of code cards_against_ai_server_node/src/shared-types.ts x: 2 contributors (all time) y: 11 lines of code src/cards-against-ai/App.tsx x: 2 contributors (all time) y: 253 lines of code src/cards-against-ai/Cards.tsx x: 2 contributors (all time) y: 139 lines of code src/cards-against-ai/PlayArea.tsx x: 2 contributors (all time) y: 248 lines of code src/cards-against-ai/Scoreboard.tsx x: 2 contributors (all time) y: 56 lines of code src/cards-against-ai/api-base-url.ts x: 2 contributors (all time) y: 43 lines of code src/cards-against-ai/index.tsx x: 2 contributors (all time) y: 5 lines of code src/cards-against-ai/types.ts x: 2 contributors (all time) y: 78 lines of code src/index.css x: 4 contributors (all time) y: 92 lines of code src/kitchen-sink-lite/kitchen-sink-lite.tsx x: 3 contributors (all time) y: 756 lines of code src/types.ts x: 5 contributors (all time) y: 75 lines of code src/use-openai-global.ts x: 3 contributors (all time) y: 83 lines of code mcp_app_basics_node/src/server.ts x: 2 contributors (all time) y: 1459 lines of code src/call-server-tool/App.tsx x: 2 contributors (all time) y: 170 lines of code src/get-host-capabilities/App.tsx x: 2 contributors (all time) y: 135 lines of code src/get-host-version/App.tsx x: 2 contributors (all time) y: 124 lines of code src/highlight-code.tsx x: 2 contributors (all time) y: 16 lines of code src/host-theming/App.tsx x: 2 contributors (all time) y: 205 lines of code src/open-link/App.tsx x: 2 contributors (all time) y: 165 lines of code src/send-message/App.tsx x: 2 contributors (all time) y: 147 lines of code src/show-tool-result/App.tsx x: 2 contributors (all time) y: 96 lines of code src/update-model-context/App.tsx x: 2 contributors (all time) y: 91 lines of code authenticated_server_python/main.py x: 2 contributors (all time) y: 461 lines of code kitchen_sink_server_python/main.py x: 4 contributors (all time) y: 115 lines of code pizzaz_server_python/main.py x: 7 contributors (all time) y: 259 lines of code shopping_cart_python/main.py x: 4 contributors (all time) y: 184 lines of code solar-system_server_python/main.py x: 6 contributors (all time) y: 276 lines of code src/pizzaz-albums/index.jsx x: 3 contributors (all time) y: 145 lines of code src/pizzaz-carousel/PlaceCard.jsx x: 3 contributors (all time) y: 39 lines of code src/pizzaz-carousel/index.jsx x: 2 contributors (all time) y: 117 lines of code src/pizzaz-list/index.jsx x: 2 contributors (all time) y: 112 lines of code src/pizzaz-shop/index.tsx x: 3 contributors (all time) y: 1342 lines of code src/pizzaz/Inspector.jsx x: 2 contributors (all time) y: 106 lines of code src/pizzaz/Sidebar.jsx x: 3 contributors (all time) y: 159 lines of code src/pizzaz/index.jsx x: 5 contributors (all time) y: 275 lines of code src/mixed-auth-past-orders/index.jsx x: 1 contributors (all time) y: 78 lines of code src/mixed-auth-search/SliceCard.jsx x: 1 contributors (all time) y: 43 lines of code src/mixed-auth-search/index.jsx x: 1 contributors (all time) y: 110 lines of code src/shopping-cart/index.tsx x: 3 contributors (all time) y: 353 lines of code kitchen_sink_server_node/src/server.ts x: 3 contributors (all time) y: 349 lines of code pizzaz_server_node/src/server.ts x: 4 contributors (all time) y: 347 lines of code src/use-widget-state.ts x: 4 contributors (all time) y: 38 lines of code src/pizzaz-albums/FilmStrip.jsx x: 2 contributors (all time) y: 29 lines of code src/pizzaz-albums/FullscreenViewer.jsx x: 2 contributors (all time) y: 39 lines of code src/use-display-mode.ts x: 1 contributors (all time) y: 5 lines of code
1459.0
lines of code
  min: 1.0
  average: 145.07
  25th percentile: 5.0
  median: 65.5
  75th percentile: 165.75
  max: 1459.0
0 7.0
contributors (all time)
min: 1.0 | average: 2.36 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 2.0 | max: 7.0

File Size vs. Commits (30 days): 0 points

No data for "commits (30d)" vs. "lines of code".

File Size vs. Contributors (30 days): 0 points

No data for "contributors (30d)" vs. "lines of code".


File Size vs. Commits (90 days): 51 points

.pre-commit-config.yaml x: 3 commits (90d) y: 14 lines of code cards_against_ai_server_node/src/GameInstance.ts x: 1 commits (90d) y: 591 lines of code cards_against_ai_server_node/src/server.ts x: 1 commits (90d) y: 740 lines of code cards_against_ai_server_node/src/shared-types.ts x: 1 commits (90d) y: 11 lines of code src/cards-against-ai/App.tsx x: 1 commits (90d) y: 253 lines of code src/cards-against-ai/Cards.tsx x: 1 commits (90d) y: 139 lines of code src/cards-against-ai/PlayArea.tsx x: 1 commits (90d) y: 248 lines of code src/cards-against-ai/Scoreboard.tsx x: 1 commits (90d) y: 56 lines of code src/cards-against-ai/api-base-url.ts x: 1 commits (90d) y: 43 lines of code src/cards-against-ai/index.tsx x: 1 commits (90d) y: 5 lines of code src/cards-against-ai/types.ts x: 1 commits (90d) y: 78 lines of code src/index.css x: 1 commits (90d) y: 92 lines of code src/kitchen-sink-lite/kitchen-sink-lite.tsx x: 1 commits (90d) y: 756 lines of code src/use-openai-global.ts x: 1 commits (90d) y: 83 lines of code mcp_app_basics_node/src/server.ts x: 3 commits (90d) y: 1459 lines of code src/call-server-tool/App.tsx x: 2 commits (90d) y: 170 lines of code src/call-server-tool/index.css x: 2 commits (90d) y: 1 lines of code src/get-host-capabilities/App.tsx x: 2 commits (90d) y: 135 lines of code src/get-host-version/App.tsx x: 2 commits (90d) y: 124 lines of code src/highlight-code.tsx x: 2 commits (90d) y: 16 lines of code src/host-theming/App.tsx x: 2 commits (90d) y: 205 lines of code src/open-link/App.tsx x: 2 commits (90d) y: 165 lines of code src/send-message/App.tsx x: 2 commits (90d) y: 147 lines of code src/show-tool-result/App.tsx x: 2 commits (90d) y: 96 lines of code src/update-model-context/App.tsx x: 2 commits (90d) y: 91 lines of code
1459.0
lines of code
  min: 1.0
  average: 125.84
  25th percentile: 5.0
  median: 16.0
  75th percentile: 147.0
  max: 1459.0
0 3.0
commits (90d)
min: 1.0 | average: 1.75 | 25th percentile: 1.0 | median: 2.0 | 75th percentile: 2.0 | max: 3.0

File Size vs. Contributors (90 days): 51 points

.pre-commit-config.yaml x: 2 contributors (90d) y: 14 lines of code cards_against_ai_server_node/src/GameInstance.ts x: 1 contributors (90d) y: 591 lines of code cards_against_ai_server_node/src/server.ts x: 1 contributors (90d) y: 740 lines of code cards_against_ai_server_node/src/shared-types.ts x: 1 contributors (90d) y: 11 lines of code src/cards-against-ai/App.tsx x: 1 contributors (90d) y: 253 lines of code src/cards-against-ai/Cards.tsx x: 1 contributors (90d) y: 139 lines of code src/cards-against-ai/PlayArea.tsx x: 1 contributors (90d) y: 248 lines of code src/cards-against-ai/Scoreboard.tsx x: 1 contributors (90d) y: 56 lines of code src/cards-against-ai/api-base-url.ts x: 1 contributors (90d) y: 43 lines of code src/cards-against-ai/index.tsx x: 1 contributors (90d) y: 5 lines of code src/cards-against-ai/types.ts x: 1 contributors (90d) y: 78 lines of code src/index.css x: 1 contributors (90d) y: 92 lines of code src/kitchen-sink-lite/kitchen-sink-lite.tsx x: 1 contributors (90d) y: 756 lines of code src/use-openai-global.ts x: 1 contributors (90d) y: 83 lines of code mcp_app_basics_node/src/server.ts x: 2 contributors (90d) y: 1459 lines of code src/call-server-tool/App.tsx x: 1 contributors (90d) y: 170 lines of code src/get-host-capabilities/App.tsx x: 1 contributors (90d) y: 135 lines of code src/get-host-version/App.tsx x: 1 contributors (90d) y: 124 lines of code src/highlight-code.tsx x: 1 contributors (90d) y: 16 lines of code src/host-theming/App.tsx x: 1 contributors (90d) y: 205 lines of code src/open-link/App.tsx x: 1 contributors (90d) y: 165 lines of code src/send-message/App.tsx x: 1 contributors (90d) y: 147 lines of code src/update-model-context/App.tsx x: 1 contributors (90d) y: 91 lines of code
1459.0
lines of code
  min: 1.0
  average: 125.84
  25th percentile: 5.0
  median: 16.0
  75th percentile: 147.0
  max: 1459.0
0 2.0
contributors (90d)
min: 1.0 | average: 1.04 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 2.0