firebase / firebase-admin-node
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 90 files with 13,083 lines of code.
    • 1 very long files (1,522 lines of code)
    • 4 long files (2,822 lines of code)
    • 16 medium size files (4,648 lines of codeclsfd_ftr_w_mp_ins)
    • 15 small files (2,132 lines of code)
    • 54 very small files (1,959 lines of code)
11% | 21% | 35% | 16% | 14%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
ts11% | 22% | 36% | 15% | 14%
js0% | 0% | 0% | 42% | 57%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/auth33% | 17% | 30% | 15% | 2%
src/utils0% | 67% | 12% | 14% | 5%
src/messaging0% | 38% | 40% | 0% | 21%
src/remote-config0% | 0% | 82% | 0% | 17%
src/machine-learning0% | 0% | 85% | 0% | 14%
src/app0% | 0% | 61% | 30% | 8%
src/security-rules0% | 0% | 48% | 40% | 10%
src/project-management0% | 0% | 36% | 45% | 18%
src/database0% | 0% | 81% | 0% | 18%
src/app-check0% | 0% | 0% | 57% | 42%
docgen0% | 0% | 0% | 100% | 0%
ROOT0% | 0% | 0% | 0% | 100%
src/firestore0% | 0% | 0% | 0% | 100%
src/installations0% | 0% | 0% | 0% | 100%
src/storage0% | 0% | 0% | 0% | 100%
src0% | 0% | 0% | 0% | 100%
src/instance-id0% | 0% | 0% | 0% | 100%
src/credential0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
auth-api-request.ts
in src/auth
1522 59
auth-config.ts
in src/auth
768 22
error.ts
in src/utils
753 17
api-request.ts
in src/utils
675 61
messaging.ts
in src/messaging
626 24
user-import-builder.ts
in src/auth
454 9
messaging-internal.ts
in src/messaging
430 19
base-auth.ts
in src/auth
412 28
machine-learning-api-client.ts
in src/machine-learning
341 18
remote-config-api-client-internal.ts
in src/remote-config
341 17
credential-internal.ts
in src/app
320 19
user-record.ts
in src/auth
269 17
jwt.ts
in src/utils
257 19
token-verifier.ts
in src/auth
251 9
remote-config.ts
in src/remote-config
240 16
security-rules-api-client-internal.ts
in src/security-rules
234 14
project-management-api-request-internal.ts
in src/project-management
229 16
machine-learning.ts
in src/machine-learning
222 28
firebase-namespace.ts
in src/app
220 21
messaging-api.ts
in src/messaging
216 -
database.ts
in src/database
212 15
security-rules.ts
in src/security-rules
195 19
validator.ts
in src/utils
176 18
project-management.ts
in src/project-management
174 15
firebase-app.ts
in src/app
161 15
tenant.ts
in src/auth
161 7
token-generator.ts
in src/auth
157 8
app-check-api-client-internal.ts
in src/app-check
149 8
crypto-signer.ts
in src/utils
136 11
action-code-settings-builder.ts
in src/auth
135 2
post-process.js
in docgen
125 14
auth-namespace.ts
in src/auth
120 -
android-app.ts
in src/project-management
115 7
tenant-manager.ts
in src/auth
112 11
token-verifier.ts
in src/app-check
110 8
lifecycle.ts
in src/app
106 11
token-generator.ts
in src/app-check
98 4
index.ts
in src/utils
96 8
messaging-api-request-internal.ts
in src/messaging
84 4
index.ts
in src/auth
82 1
installations-request-handler.ts
in src/installations
82 4
storage.ts
in src/storage
76 3
batch-request-internal.ts
in src/messaging
75 4
messaging-namespace.ts
in src/messaging
72 -
firestore-internal.ts
in src/firestore
64 5
messaging-errors-internal.ts
in src/messaging
64 3
ios-app.ts
in src/project-management
63 3
generate-reports.js
in root
61 2
remote-config-api.ts
in src/remote-config
60 -
generate-esm-wrapper.js
in root
55 6
Files With Most Units (Top 20)
File# lines# units
api-request.ts
in src/utils
675 61
auth-api-request.ts
in src/auth
1522 59
machine-learning.ts
in src/machine-learning
222 28
base-auth.ts
in src/auth
412 28
messaging.ts
in src/messaging
626 24
auth-config.ts
in src/auth
768 22
firebase-namespace.ts
in src/app
220 21
credential-internal.ts
in src/app
320 19
messaging-internal.ts
in src/messaging
430 19
jwt.ts
in src/utils
257 19
security-rules.ts
in src/security-rules
195 19
machine-learning-api-client.ts
in src/machine-learning
341 18
validator.ts
in src/utils
176 18
user-record.ts
in src/auth
269 17
error.ts
in src/utils
753 17
remote-config-api-client-internal.ts
in src/remote-config
341 17
project-management-api-request-internal.ts
in src/project-management
229 16
remote-config.ts
in src/remote-config
240 16
project-management.ts
in src/project-management
174 15
firebase-app.ts
in src/app
161 15
Files With Long Lines (Top 2)

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

File# lines# units# long lines
token-generator.ts
in src/app-check
98 4 1
app-check-api-client-internal.ts
in src/app-check
149 8 1