openai / openai-responses-starter-app
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 56 files with 3,585 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 3 medium size files (1,065 lines of code)
    • 4 small files (554 lines of code)
    • 49 very small files (1,966 lines of code)
0% | 0% | 29% | 15% | 54%
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
tsx0% | 0% | 27% | 21% | 51%
ts0% | 0% | 34% | 8% | 57%
css0% | 0% | 0% | 0% | 100%
mjs0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
components0% | 0% | 28% | 21% | 49%
lib0% | 0% | 65% | 0% | 34%
stores0% | 0% | 0% | 69% | 30%
app0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
config0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
482 1
327 -
file-upload.tsx
in components
256 1
tool-call.tsx
in components
195 4
chat.tsx
in components
126 -
command.tsx
in components/ui
121 -
112 -
96 -
94 3
dialog.tsx
in components/ui
94 -
tools.ts
in lib/tools
85 -
tools-panel.tsx
in components
83 -
81 1
mcp-config.tsx
in components
78 -
75 1
66 -
mcp-tools-list.tsx
in components
63 2
62 -
route.ts
in app/api/google/callback
61 1
assistant.tsx
in components
54 1
route.ts
in app/api/turn_response
51 4
49 -
panel-config.tsx
in components
47 1
button.tsx
in components/ui
46 -
route.ts
in app/api/google/auth
45 1
route.ts
in app/api/functions/get_weather
45 1
page.tsx
in app
45 1
message.tsx
in components
43 -
functions-view.tsx
in components
42 -
40 5
annotations.tsx
in components
39 -
mcp-approval.tsx
in components
39 1
37 1
constants.ts
in config
35 1
route.ts
in app/api/container_files/content
34 1
popover.tsx
in components/ui
26 -
switch.tsx
in components/ui
25 -
tooltip.tsx
in components/ui
25 -
tools-list.ts
in config
22 -
connectors.ts
in lib/tools
21 1
functions.ts
in config
20 -
route.ts
in app/api/vector_stores/upload_file
19 1
route.ts
in app/api/google/status
18 1
route.ts
in app/api/vector_stores/add_file
17 1
route.ts
in app/api/functions/get_joke
17 1
17 -
route.ts
in app/api/vector_stores/list_files
15 1
route.ts
in app/api/vector_stores/retrieve_store
15 1
route.ts
in app/api/vector_stores/create_store
14 1
textarea.tsx
in components/ui
14 -
Files With Most Units (Top 28)
File# lines# units
40 5
route.ts
in app/api/turn_response
51 4
tool-call.tsx
in components
195 4
94 3
mcp-tools-list.tsx
in components
63 2
37 1
route.ts
in app/api/vector_stores/create_store
14 1
route.ts
in app/api/vector_stores/upload_file
19 1
route.ts
in app/api/vector_stores/list_files
15 1
route.ts
in app/api/vector_stores/retrieve_store
15 1
route.ts
in app/api/vector_stores/add_file
17 1
route.ts
in app/api/google/callback
61 1
route.ts
in app/api/google/auth
45 1
route.ts
in app/api/google/status
18 1
route.ts
in app/api/container_files/content
34 1
route.ts
in app/api/functions/get_joke
17 1
route.ts
in app/api/functions/get_weather
45 1
page.tsx
in app
45 1
482 1
utils.ts
in lib
5 1
connectors.ts
in lib/tools
21 1
constants.ts
in config
35 1
mcp-approval.tsx
in components
39 1
panel-config.tsx
in components
47 1
file-upload.tsx
in components
256 1
assistant.tsx
in components
54 1
81 1
75 1
Files With Long Lines (Top 14)

There are 14 files with lines longer than 120 characters. In total, there are 24 long lines.

File# lines# units# long lines
command.tsx
in components/ui
121 - 4
chat.tsx
in components
126 - 3
dialog.tsx
in components/ui
94 - 3
annotations.tsx
in components
39 - 2
switch.tsx
in components/ui
25 - 2
file-upload.tsx
in components
256 1 2
constants.ts
in config
35 1 1
button.tsx
in components/ui
46 - 1
textarea.tsx
in components/ui
14 - 1
tooltip.tsx
in components/ui
25 - 1
popover.tsx
in components/ui
26 - 1
input.tsx
in components/ui
13 - 1
96 - 1
message.tsx
in components
43 - 1
Correlations

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

config/constants.ts x: 9 commits (all time) y: 35 lines of code components/file-upload.tsx x: 1 commits (all time) y: 256 lines of code app/api/google/auth/route.ts x: 3 commits (all time) y: 45 lines of code app/api/google/callback/route.ts x: 3 commits (all time) y: 61 lines of code app/api/turn_response/route.ts x: 5 commits (all time) y: 51 lines of code components/google-integration.tsx x: 3 commits (all time) y: 75 lines of code components/tool-call.tsx x: 13 commits (all time) y: 195 lines of code components/websearch-config.tsx x: 1 commits (all time) y: 81 lines of code config/functions.ts x: 1 commits (all time) y: 20 lines of code lib/assistant.ts x: 26 commits (all time) y: 482 lines of code lib/connectors-auth.ts x: 1 commits (all time) y: 94 lines of code lib/session.ts x: 3 commits (all time) y: 40 lines of code lib/tools/connectors.ts x: 4 commits (all time) y: 21 lines of code lib/tools/tools.ts x: 7 commits (all time) y: 85 lines of code stores/useToolsStore.ts x: 10 commits (all time) y: 112 lines of code app/api/google/status/route.ts x: 2 commits (all time) y: 18 lines of code app/page.tsx x: 2 commits (all time) y: 45 lines of code components/tools-panel.tsx x: 9 commits (all time) y: 83 lines of code stores/useConversationStore.ts x: 4 commits (all time) y: 49 lines of code components/message.tsx x: 5 commits (all time) y: 43 lines of code components/assistant.tsx x: 6 commits (all time) y: 54 lines of code components/chat.tsx x: 10 commits (all time) y: 126 lines of code components/loading-message.tsx x: 2 commits (all time) y: 12 lines of code app/api/container_files/content/route.ts x: 6 commits (all time) y: 34 lines of code components/annotations.tsx x: 6 commits (all time) y: 39 lines of code components/mcp-approval.tsx x: 5 commits (all time) y: 39 lines of code components/mcp-config.tsx x: 3 commits (all time) y: 78 lines of code components/mcp-tools-list.tsx x: 6 commits (all time) y: 63 lines of code components/panel-config.tsx x: 3 commits (all time) y: 47 lines of code next.config.mjs x: 3 commits (all time) y: 5 lines of code app/api/vector_stores/add_file/route.ts x: 2 commits (all time) y: 17 lines of code app/api/vector_stores/create_store/route.ts x: 2 commits (all time) y: 14 lines of code
482.0
lines of code
  min: 5.0
  average: 72.03
  25th percentile: 20.75
  median: 46.0
  75th percentile: 81.5
  max: 482.0
0 26.0
commits (all time)
min: 1.0 | average: 5.0 | 25th percentile: 2.0 | median: 3.0 | 75th percentile: 6.0 | max: 26.0

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

config/constants.ts x: 5 contributors (all time) y: 35 lines of code components/file-upload.tsx x: 1 contributors (all time) y: 256 lines of code app/api/google/auth/route.ts x: 3 contributors (all time) y: 45 lines of code app/api/google/callback/route.ts x: 3 contributors (all time) y: 61 lines of code app/api/turn_response/route.ts x: 4 contributors (all time) y: 51 lines of code components/google-integration.tsx x: 3 contributors (all time) y: 75 lines of code components/tool-call.tsx x: 2 contributors (all time) y: 195 lines of code components/websearch-config.tsx x: 1 contributors (all time) y: 81 lines of code config/functions.ts x: 1 contributors (all time) y: 20 lines of code lib/assistant.ts x: 5 contributors (all time) y: 482 lines of code lib/connectors-auth.ts x: 1 contributors (all time) y: 94 lines of code lib/session.ts x: 3 contributors (all time) y: 40 lines of code lib/tools/connectors.ts x: 3 contributors (all time) y: 21 lines of code lib/tools/tools.ts x: 2 contributors (all time) y: 85 lines of code stores/useToolsStore.ts x: 4 contributors (all time) y: 112 lines of code app/api/google/status/route.ts x: 2 contributors (all time) y: 18 lines of code app/page.tsx x: 2 contributors (all time) y: 45 lines of code components/tools-panel.tsx x: 4 contributors (all time) y: 83 lines of code stores/useConversationStore.ts x: 3 contributors (all time) y: 49 lines of code components/message.tsx x: 2 contributors (all time) y: 43 lines of code components/assistant.tsx x: 2 contributors (all time) y: 54 lines of code components/chat.tsx x: 3 contributors (all time) y: 126 lines of code components/loading-message.tsx x: 1 contributors (all time) y: 12 lines of code app/api/container_files/content/route.ts x: 2 contributors (all time) y: 34 lines of code components/annotations.tsx x: 2 contributors (all time) y: 39 lines of code components/mcp-config.tsx x: 2 contributors (all time) y: 78 lines of code components/mcp-tools-list.tsx x: 2 contributors (all time) y: 63 lines of code components/panel-config.tsx x: 2 contributors (all time) y: 47 lines of code next.config.mjs x: 2 contributors (all time) y: 5 lines of code app/api/vector_stores/add_file/route.ts x: 2 contributors (all time) y: 17 lines of code app/api/vector_stores/create_store/route.ts x: 2 contributors (all time) y: 14 lines of code
482.0
lines of code
  min: 5.0
  average: 72.03
  25th percentile: 20.75
  median: 46.0
  75th percentile: 81.5
  max: 482.0
0 5.0
contributors (all time)
min: 1.0 | average: 2.41 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 3.0 | max: 5.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): 0 points

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

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

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