aws-amplify / amplify-js
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 718 files with 65,855 lines of code.
    • 4 very long files (9,181 lines of code)
    • 15 long files (9,976 lines of code)
    • 66 medium size files (19,028 lines of codeclsfd_ftr_w_mp_ins)
    • 93 small files (13,391 lines of code)
    • 540 very small files (14,279 lines of code)
13% | 15% | 28% | 20% | 21%
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
c100% | 0% | 0% | 0% | 0%
ts9% | 17% | 33% | 18% | 20%
js24% | 34% | 10% | 7% | 22%
tsx0% | 8% | 36% | 33% | 22%
h0% | 70% | 20% | 0% | 9%
vue0% | 0% | 28% | 51% | 20%
java0% | 0% | 55% | 13% | 31%
m0% | 0% | 54% | 35% | 9%
css0% | 0% | 0% | 42% | 57%
scss0% | 0% | 0% | 0% | 100%
py0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
packages/amazon-cognito-identity-js62% | 15% | 7% | 4% | 9%
packages/auth74% | 0% | 10% | 6% | 9%
packages/datastore17% | 44% | 29% | 3% | 4%
packages/aws-amplify-react0% | 15% | 39% | 33% | 11%
packages/aws-amplify-angular0% | 13% | 23% | 22% | 40%
packages/aws-amplify-vue0% | 22% | 24% | 33% | 19%
packages/pubsub0% | 54% | 16% | 19% | 8%
packages/storage0% | 28% | 42% | 22% | 6%
packages/analytics0% | 21% | 23% | 39% | 15%
packages/core0% | 17% | 29% | 13% | 39%
packages/predictions0% | 0% | 87% | 0% | 12%
packages/amplify-ui-components0% | 0% | 21% | 24% | 53%
packages/aws-amplify-react-native0% | 0% | 42% | 38% | 19%
packages/pushnotification0% | 0% | 70% | 10% | 18%
packages/datastore-storage-adapter0% | 0% | 81% | 14% | 4%
packages/api-graphql0% | 0% | 87% | 0% | 12%
packages/api-rest0% | 0% | 53% | 37% | 8%
packages/xr0% | 0% | 48% | 32% | 19%
scripts0% | 0% | 42% | 34% | 22%
packages/amplify-ui0% | 0% | 0% | 41% | 58%
packages/interactions0% | 0% | 0% | 69% | 30%
packages/geo0% | 0% | 0% | 49% | 50%
packages/amplify-ui-storybook0% | 0% | 0% | 100% | 0%
packages/amplify-ui-angular0% | 0% | 0% | 81% | 18%
packages/aws-amplify0% | 0% | 0% | 0% | 100%
packages/api0% | 0% | 0% | 0% | 100%
packages/amplify-ui-react0% | 0% | 0% | 0% | 100%
vscode0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
packages/amplify-ui-vue0% | 0% | 0% | 0% | 100%
vscode/src0% | 0% | 0% | 0% | 100%
vscode/out0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
tommath.c
in packages/amazon-cognito-identity-js/ios/JKBigInteger/LibTomMath
4455 86
Auth.ts
in packages/auth/src
1946 69
CognitoUser.js
in packages/amazon-cognito-identity-js/src
1522 61
datastore.ts
in packages/datastore/src/datastore
1258 22
tommath_class.h
in packages/amazon-cognito-identity-js/ios/JKBigInteger/LibTomMath
874 -
index.ts
in packages/datastore/src/sync
803 15
aws-lex-audio.tsx
in packages/aws-amplify-react/src/Interactions
761 69
aws-lex-audio.js
in packages/aws-amplify-angular/src/components/interactions/chatbot
758 69
aws-lex-audio.js
in packages/aws-amplify-vue/src/components/interactions
758 69
AWSAppSyncRealTimeProvider.ts
in packages/pubsub/src/Providers
729 25
AWSS3Provider.ts
in packages/storage/src/providers
691 15
IndexedDBAdapter.ts
in packages/datastore/src/storage/adapter
681 31
types.ts
in packages/datastore/src
670 15
BigInteger.js
in packages/amazon-cognito-identity-js/src
618 41
AWSPinpointProvider.ts
in packages/analytics/src/Providers
576 28
ChatBot.tsx
in packages/aws-amplify-react/src/Interactions
528 17
utils.ts
in packages/datastore/src/sync
513 17
Credentials.ts
in packages/core/src
512 25
AsyncStorageAdapter.ts
in packages/datastore/src/storage/adapter
504 27
subscription.ts
in packages/datastore/src/sync/processors
490 6
AWSS3UploadTask.ts
in packages/storage/src/providers
471 26
mutation.ts
in packages/datastore/src/sync/processors
464 8
AmazonAIIdentifyPredictionsProvider.ts
in packages/predictions/src/Providers
411 22
AWSCloudWatchProvider.ts
in packages/core/src/Providers
409 23
storage.ts
in packages/datastore/src/storage
402 20
SQLiteAdapter.ts
in packages/datastore-storage-adapter/src/SQLiteAdapter
386 15
Amplify-UI-Components-React.tsx
in packages/aws-amplify-react/src/Amplify-UI
386 -
amplify-sign-up.tsx
in packages/amplify-ui-components/src/components/amplify-sign-up
383 14
AmazonAIConvertPredictionsProvider.ts
in packages/predictions/src/Providers
381 14
PushNotification.ts
in packages/pushnotification/src
374 18
Chatbot.vue
in packages/aws-amplify-vue/src/components/interactions
372 -
RNPushNotificationHelper.java
in packages/pushnotification/android/src/main/java/com/amazonaws/amplify/pushnotification/modules
359 13
sign-up.component.core.ts
in packages/aws-amplify-angular/src/components/authenticator/sign-up-component
358 18
amplify-chatbot.tsx
in packages/amplify-ui-components/src/components/amplify-chatbot
343 20
SQLiteUtils.ts
in packages/datastore-storage-adapter/src/SQLiteAdapter
337 16
AmplifyUI.tsx
in packages/aws-amplify-react/src
336 -
sync.ts
in packages/datastore/src/sync/processors
334 4
GraphQLAPI.ts
in packages/api-graphql/src
323 12
AmazonPersonalizeProvider.ts
in packages/analytics/src/Providers
315 16
SignUp.tsx
in packages/aws-amplify-react/src/Auth
309 7
chatbot.component.core.ts
in packages/aws-amplify-angular/src/components/interactions/chatbot
308 13
Predictions.ts
in packages/predictions/src/types
305 12
Authenticator.tsx
in packages/aws-amplify-react/src/Auth
303 9
Analytics.ts
in packages/analytics/src
294 14
AmplifyI18n.tsx
in packages/aws-amplify-react/src
293 -
amplify-sign-in.tsx
in packages/amplify-ui-components/src/components/amplify-sign-in
286 9
JKBigInteger.m
in packages/amazon-cognito-identity-js/ios/JKBigInteger
285 -
Storage.ts
in packages/storage/src
282 15
amplify-forgot-password.tsx
in packages/amplify-ui-components/src/components/amplify-forgot-password
279 9
AWSS3ProviderManagedUpload.ts
in packages/storage/src/providers
278 14
Files With Most Units (Top 20)
File# lines# units
tommath.c
in packages/amazon-cognito-identity-js/ios/JKBigInteger/LibTomMath
4455 86
aws-lex-audio.js
in packages/aws-amplify-angular/src/components/interactions/chatbot
758 69
aws-lex-audio.js
in packages/aws-amplify-vue/src/components/interactions
758 69
Auth.ts
in packages/auth/src
1946 69
aws-lex-audio.tsx
in packages/aws-amplify-react/src/Interactions
761 69
CognitoUser.js
in packages/amazon-cognito-identity-js/src
1522 61
BigInteger.js
in packages/amazon-cognito-identity-js/src
618 41
IndexedDBAdapter.ts
in packages/datastore/src/storage/adapter
681 31
AWSPinpointProvider.ts
in packages/analytics/src/Providers
576 28
AsyncStorageAdapter.ts
in packages/datastore/src/storage/adapter
504 27
AWSS3UploadTask.ts
in packages/storage/src/providers
471 26
Credentials.ts
in packages/core/src
512 25
AWSAppSyncRealTimeProvider.ts
in packages/pubsub/src/Providers
729 25
IdentifyTextUtils.ts
in packages/predictions/src/Providers
220 23
AWSCloudWatchProvider.ts
in packages/core/src/Providers
409 23
AmazonAIIdentifyPredictionsProvider.ts
in packages/predictions/src/Providers
411 22
Predictions.ts
in packages/predictions/src
206 22
datastore.ts
in packages/datastore/src/datastore
1258 22
amplify-chatbot.tsx
in packages/amplify-ui-components/src/components/amplify-chatbot
343 20
storage.ts
in packages/datastore/src/storage
402 20
Files With Long Lines (Top 20)

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

File# lines# units# long lines
sumerian-scene-loading.component.core.ts
in packages/aws-amplify-angular/src/components/xr/sumerian-scene-component
81 1 36
sumerian-scene-loading.component.ionic.ts
in packages/aws-amplify-angular/src/components/xr/sumerian-scene-component
77 1 36
SetMFA.vue
in packages/aws-amplify-vue/src/components/authenticator
170 - 9
aws-amplify-angular.module.ts
in packages/aws-amplify-angular/src
74 - 7
ForgotPassword.vue
in packages/aws-amplify-vue/src/components/authenticator
120 - 7
aws-amplify-ionic-module.ts
in packages/aws-amplify-angular/src
47 - 6
ConfirmSignUp.vue
in packages/aws-amplify-vue/src/components/authenticator
104 - 6
SignUp.vue
in packages/aws-amplify-vue/src/components/authenticator
249 - 6
Authenticator.vue
in packages/aws-amplify-vue/src/components/authenticator
95 - 6
RNPushNotificationHelper.java
in packages/pushnotification/android/src/main/java/com/amazonaws/amplify/pushnotification/modules
359 13 6
AmplifyAuthenticator.stories.tsx
in packages/amplify-ui-storybook/src/stories
161 3 5
RNPushNotificationMessagingService.java
in packages/pushnotification/android/src/main/java/com/amazonaws/amplify/pushnotification
150 9 5
RequireNewPassword.vue
in packages/aws-amplify-vue/src/components/authenticator
114 - 4
SignIn.vue
in packages/aws-amplify-vue/src/components/authenticator
144 - 4
ConfirmSignIn.vue
in packages/aws-amplify-vue/src/components/authenticator
85 - 4
withGoogle.tsx
in packages/aws-amplify-react/src/Auth/Provider
174 8 4
AmazonLocationServiceProvider.ts
in packages/geo/src/Providers
193 13 3
amplify-form-field.stories.tsx
in packages/amplify-ui-components/src/components/amplify-form-field
31 - 3
datastore.ts
in packages/datastore/src/datastore
1258 22 3
username-field.component.ionic.ts
in packages/aws-amplify-angular/src/components/authenticator/username-field-component
42 1 2