aws-amplify / amplify-cli
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 1,579 files with 146,832 lines of code.
    • 7 very long files (9,128 lines of code)
    • 37 long files (25,338 lines of code)
    • 158 medium size files (47,241 lines of codeclsfd_ftr_w_mp_ins)
    • 201 small files (29,122 lines of code)
    • 1,176 very small files (36,003 lines of code)
6% | 17% | 32% | 19% | 24%
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
ts7% | 17% | 32% | 19% | 23%
ejs12% | 24% | 32% | 19% | 11%
js0% | 15% | 31% | 19% | 33%
tsx0% | 0% | 98% | 0% | 1%
yy0% | 0% | 100% | 0% | 0%
py0% | 0% | 0% | 75% | 24%
go0% | 0% | 0% | 100% | 0%
l0% | 0% | 0% | 100% | 0%
css0% | 0% | 0% | 70% | 29%
java0% | 0% | 0% | 0% | 100%
graphql0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
dart0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
packages/amplify-category-auth24% | 9% | 33% | 17% | 13%
packages/graphql-auth-transformer60% | 32% | 0% | 5% | <1%
packages/amplify-e2e-core20% | 31% | 20% | 10% | 16%
packages/amplify-graphql-model-transformer54% | 0% | 26% | 13% | 5%
packages/graphql-key-transformer99% | 0% | 0% | 0% | <1%
packages/amplify-category-storage0% | 37% | 36% | 14% | 12%
packages/amplify-provider-awscloudformation0% | 20% | 35% | 20% | 23%
packages/amplify-category-predictions0% | 43% | 22% | 15% | 19%
packages/graphql-dynamodb-transformer0% | 97% | 0% | 0% | 2%
packages/graphql-transformer-core0% | 43% | 25% | 16% | 15%
packages/amplify-category-api0% | 17% | 46% | 11% | 24%
packages/amplify-graphql-auth-transformer0% | 26% | 41% | 24% | 7%
packages/amplify-category-interactions0% | 40% | 35% | 7% | 16%
packages/amplify-graphql-index-transformer0% | 50% | 26% | 18% | 3%
packages/amplify-graphql-transformer-core0% | 14% | 35% | 24% | 25%
packages/amplify-graphql-predictions-transformer0% | 90% | 0% | 0% | 9%
packages/graphql-connection-transformer0% | 60% | 37% | 0% | 2%
packages/amplify-cli-core0% | 17% | 28% | 20% | 33%
packages/amplify-category-function0% | 8% | 45% | 25% | 20%
packages/amplify-frontend-javascript0% | 50% | 0% | 26% | 22%
packages/graphql-transformer-common0% | 39% | 27% | 17% | 15%
packages/graphql-elasticsearch-transformer0% | 43% | 0% | 48% | 7%
packages/amplify-cli0% | 0% | 31% | 22% | 45%
packages/amplify-appsync-simulator0% | 0% | 30% | 33% | 36%
packages/amplify-graphql-relational-transformer0% | 0% | 78% | 6% | 15%
packages/amplify-graphql-searchable-transformer0% | 0% | 61% | 22% | 15%
packages/amplify-velocity-template0% | 0% | 42% | 31% | 25%
packages/amplify-util-mock0% | 0% | 28% | 35% | 36%
packages/graphql-mapping-template0% | 0% | 85% | 0% | 14%
packages/amplify-graphiql-explorer0% | 0% | 78% | 0% | 21%
packages/amplify-category-analytics0% | 0% | 57% | 0% | 42%
packages/amplify-category-notifications0% | 0% | 31% | 34% | 33%
packages/graphql-relational-schema-transformer0% | 0% | 50% | 28% | 21%
packages/graphql-predictions-transformer0% | 0% | 63% | 20% | 15%
packages/amplify-container-hosting0% | 0% | 42% | 24% | 32%
packages/amplify-app0% | 0% | 50% | 34% | 14%
packages/amplify-frontend-android0% | 0% | 48% | 24% | 26%
packages/amplify-frontend-ios0% | 0% | 41% | 35% | 22%
packages/amplify-graphql-http-transformer0% | 0% | 99% | 0% | <1%
packages/amplify-frontend-flutter0% | 0% | 48% | 17% | 33%
scripts0% | 0% | 56% | 0% | 43%
packages/amplify-storage-simulator0% | 0% | 74% | 0% | 25%
packages/amplify-dotnet-function-template-provider0% | 0% | 20% | 26% | 52%
packages/amplify-category-hosting0% | 0% | 21% | 42% | 36%
packages/amplify-category-xr0% | 0% | 56% | 0% | 43%
packages/amplify-category-custom0% | 0% | 42% | 0% | 57%
packages/graphql-http-transformer0% | 0% | 49% | 35% | 15%
packages/amplify-prompts0% | 0% | 67% | 0% | 32%
packages/amplify-function-plugin-interface0% | 0% | 100% | 0% | 0%
packages/amplify-nodejs-function-template-provider0% | 0% | 20% | 37% | 42%
packages/amplify-dynamodb-simulator0% | 0% | 100% | 0% | 0%
packages/amplify-category-geo0% | 0% | 0% | 63% | 36%
packages/amplify-console-hosting0% | 0% | 0% | 28% | 71%
packages/amplify-graphql-transformer-migrator0% | 0% | 0% | 42% | 57%
packages/amplify-go-function-runtime-provider0% | 0% | 0% | 70% | 29%
packages/amplify-graphql-default-value-transformer0% | 0% | 0% | 96% | 3%
packages/graphql-versioned-transformer0% | 0% | 0% | 99% | <1%
packages/amplify-graphql-function-transformer0% | 0% | 0% | 99% | <1%
packages/amplify-graphql-maps-to-transformer0% | 0% | 0% | 45% | 54%
packages/graphql-function-transformer0% | 0% | 0% | 86% | 13%
packages/amplify-headless-interface0% | 0% | 0% | 30% | 69%
packages/amplify-graphql-transformer-interfaces0% | 0% | 0% | 21% | 78%
packages/amplify-util-uibuilder0% | 0% | 0% | 25% | 75%
packages/amplify-java-function-runtime-provider0% | 0% | 0% | 0% | 100%
packages/amplify-nodejs-function-runtime-provider0% | 0% | 0% | 0% | 100%
packages/amplify-python-function-runtime-provider0% | 0% | 0% | 0% | 100%
packages/amplify-dotnet-function-runtime-provider0% | 0% | 0% | 0% | 100%
packages/amplify-cli-extensibility-helper0% | 0% | 0% | 0% | 100%
packages/amplify-cli-logger0% | 0% | 0% | 0% | 100%
packages/amplify-util-headless-input0% | 0% | 0% | 0% | 100%
packages/amplify-java-function-template-provider0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
packages/amplify-go-function-template-provider0% | 0% | 0% | 0% | 100%
packages/amplify-python-function-template-provider0% | 0% | 0% | 0% | 100%
packages/amplify-util-import0% | 0% | 0% | 0% | 100%
cypress/integration0% | 0% | 0% | 0% | 100%
cypress/plugins0% | 0% | 0% | 0% | 100%
cypress/support0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
ModelAuthTransformer.ts
in packages/graphql-auth-transformer/src
1839 62
auth.ts
in packages/amplify-e2e-core/src/categories
1649 27
graphql-model-transformer.ts
in packages/amplify-graphql-model-transformer/src
1246 12
ejs
auth-template.yml.ejs
in packages/amplify-category-auth/resources/cloudformation-templates
1221 -
KeyTransformer.ts
in packages/graphql-key-transformer/src
1115 46
index.ts
in packages/amplify-category-auth/src/provider-utils/awscloudformation/import
1042 5
auth-cognito-stack-builder.ts
in packages/amplify-category-auth/src/provider-utils/awscloudformation/auth-stack-builder
1016 7
resources.ts
in packages/graphql-auth-transformer/src
999 49
appSync-walkthrough.ts
in packages/amplify-category-api/src/provider-utils/awscloudformation/service-walkthroughs
996 25
graphql-auth-transformer.ts
in packages/amplify-graphql-auth-transformer/src
994 17
push-resources.ts
in packages/amplify-provider-awscloudformation/src
944 22
s3-stack-builder.ts
in packages/amplify-category-storage/src/provider-utils/awscloudformation/cdk-stack-builder
916 36
ejs
s3-cloudformation-template.json.ejs
in packages/amplify-category-storage/resources/cloudformation-templates
849 -
identifyCFNGenerate.js
in packages/amplify-category-predictions/provider-utils/awscloudformation/assets
826 7
configuration-manager.ts
in packages/amplify-provider-awscloudformation/src
810 33
resources.ts
in packages/graphql-dynamodb-transformer/src
784 72
ejs
s3-cloudformation-template.json.ejs
in packages/amplify-category-predictions/provider-utils/awscloudformation/cloudformation-templates
767 -
api.ts
in packages/amplify-e2e-core/src/categories
749 28
lex-walkthrough.js
in packages/amplify-category-interactions/provider-utils/awscloudformation/service-walkthroughs
736 11
resolvers.ts
in packages/amplify-graphql-index-transformer/src
732 41
storage.ts
in packages/amplify-e2e-core/src/categories
703 22
ejs
identify-template.json.ejs
in packages/amplify-category-predictions/provider-utils/awscloudformation/cloudformation-templates
695 -
transform.ts
in packages/amplify-graphql-transformer-core/src/transformation
676 16
definitions.ts
in packages/graphql-dynamodb-transformer/src
675 39
string-maps.js
in packages/amplify-category-auth/src/provider-utils/awscloudformation/assets
644 -
graphql-predictions-transformer.ts
in packages/amplify-graphql-predictions-transformer/src
641 55
dynamoDb-walkthrough.ts
in packages/amplify-category-storage/src/provider-utils/awscloudformation/service-walkthroughs
623 18
auth-questions.js
in packages/amplify-category-auth/src/provider-utils/awscloudformation/service-walkthroughs
616 13
nexpect.ts
in packages/amplify-e2e-core/src/utils
604 26
apigw-walkthrough.ts
in packages/amplify-category-api/src/provider-utils/awscloudformation/service-walkthroughs
598 21
DynamoDBModelTransformer.ts
in packages/graphql-dynamodb-transformer/src
593 13
ModelConnectionTransformer.ts
in packages/graphql-connection-transformer/src
591 19
featureFlags.ts
in packages/amplify-cli-core/src/feature-flags
584 1
amplifyUtils.ts
in packages/graphql-transformer-core/src/util
583 23
TransformerContext.ts
in packages/graphql-transformer-core/src
573 48
cronExpression.ts
in packages/amplify-category-function/src/provider-utils/awscloudformation/utils
573 14
frontend-config-creator.js
in packages/amplify-frontend-javascript/lib
561 27
aws-cfn.js
in packages/amplify-provider-awscloudformation/src/aws-utils
549 24
GraphQLTransform.ts
in packages/graphql-transformer-core/src
546 21
transform-graphql-schema.ts
in packages/amplify-provider-awscloudformation/src
539 18
s3-walkthrough.ts
in packages/amplify-category-storage/src/provider-utils/awscloudformation/service-walkthroughs
528 20
dynamodbUtils.ts
in packages/graphql-transformer-common/src
522 14
lambda-function.ts
in packages/amplify-e2e-core/src/categories
518 1
resources.ts
in packages/graphql-elasticsearch-transformer/src
501 28
identify-walkthrough.js
in packages/amplify-category-predictions/provider-utils/awscloudformation/prediction-category-walkthroughs
497 15
output.ts
in packages/amplify-graphql-transformer-core/src/transformer-context
490 34
s3-user-input-state.ts
in packages/amplify-category-storage/src/provider-utils/awscloudformation/service-walkthroughs
469 29
auth-stack-transform.ts
in packages/amplify-category-auth/src/provider-utils/awscloudformation/auth-stack-builder
464 5
resources.ts
in packages/graphql-predictions-transformer/src
460 50
transform-graphql-schema.ts
in packages/amplify-provider-awscloudformation/src/graphql-transformer
459 10
Files With Most Units (Top 20)
File# lines# units
amplify-toolkit.ts
in packages/amplify-cli/src/domain
457 78
resources.ts
in packages/graphql-dynamodb-transformer/src
784 72
ModelAuthTransformer.ts
in packages/graphql-auth-transformer/src
1839 62
graphql-predictions-transformer.ts
in packages/amplify-graphql-predictions-transformer/src
641 55
resources.ts
in packages/graphql-predictions-transformer/src
460 50
resources.ts
in packages/graphql-auth-transformer/src
999 49
TransformerContext.ts
in packages/graphql-transformer-core/src
573 48
KeyTransformer.ts
in packages/graphql-key-transformer/src
1115 46
resources.ts
in packages/graphql-connection-transformer/src
372 44
resolvers.ts
in packages/amplify-graphql-index-transformer/src
732 41
definitions.ts
in packages/graphql-dynamodb-transformer/src
675 39
s3-stack-builder.ts
in packages/amplify-category-storage/src/provider-utils/awscloudformation/cdk-stack-builder
916 36
output.ts
in packages/amplify-graphql-transformer-core/src/transformer-context
490 34
configuration-manager.ts
in packages/amplify-provider-awscloudformation/src
810 33
state-machine.ts
in packages/amplify-provider-awscloudformation/src/iterative-deployment
396 33
resources.ts
in packages/graphql-http-transformer/src
266 31
print.ts
in packages/graphql-mapping-template/src
216 30
projectMeta.ts
in packages/amplify-e2e-core/src/utils
158 30
ModelResourceIDs.ts
in packages/graphql-transformer-common/src
123 30
ast.ts
in packages/graphql-mapping-template/src
325 29
Files With Long Lines (Top 20)

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

File# lines# units# long lines
ModelAuthTransformer.ts
in packages/graphql-auth-transformer/src
1839 62 81
KeyTransformer.ts
in packages/graphql-key-transformer/src
1115 46 54
amplify-toolkit.ts
in packages/amplify-cli/src/domain
457 78 44
resources.ts
in packages/graphql-auth-transformer/src
999 49 40
graphql-auth-transformer.ts
in packages/amplify-graphql-auth-transformer/src
994 17 37
push-resources.ts
in packages/amplify-provider-awscloudformation/src
944 22 37
index.ts
in packages/amplify-category-auth/src/provider-utils/awscloudformation/import
1042 5 35
graphql-model-transformer.ts
in packages/amplify-graphql-model-transformer/src
1246 12 34
resolvers.ts
in packages/amplify-graphql-index-transformer/src
732 41 33
dynamodbUtils.ts
in packages/graphql-transformer-common/src
522 14 32
resources.ts
in packages/graphql-dynamodb-transformer/src
784 72 29
ejs
auth-template.yml.ejs
in packages/amplify-category-auth/resources/cloudformation-templates
1221 - 28
ModelConnectionTransformer.ts
in packages/graphql-connection-transformer/src
591 19 24
index.ts
in packages/amplify-category-function/src/provider-utils/awscloudformation
392 17 24
GraphQLTransform.ts
in packages/graphql-transformer-core/src
546 21 23
transform.ts
in packages/amplify-graphql-transformer-core/src/transformation
676 16 22
transform-graphql-schema.ts
in packages/amplify-provider-awscloudformation/src
539 18 22
appSync-walkthrough.ts
in packages/amplify-category-api/src/provider-utils/awscloudformation/service-walkthroughs
996 25 21
sanity-check.ts
in packages/graphql-transformer-core/src/util
318 - 20
DynamoDBModelTransformer.ts
in packages/graphql-dynamodb-transformer/src
593 13 20