Skip to content
JS
Comparison

graphql-scalars vs graphql-query-complexity

GraphQLPackage data 25 Sept 2026
graphql-scalarsv2.0.0, 20 Aug 2026

A collection of scalar types not included in base GraphQL.

$ npm install graphql-scalars
graphql-query-complexityv2.0.0, 23 Jul 2026

Validation rule for GraphQL query complexity analysis

$ npm install graphql-query-complexity
Metricgraphql-scalarsgraphql-query-complexityDifference
Weekly downloads2,163,569772,025graphql-scalars 2.8x higher
12-month download growth+107%+108%graphql-query-complexity +1 pts
Gzip size---
Minified size---
Dependencies11Same
Unpacked size577 kB60 kBgraphql-query-complexity 9.7x smaller
Latest release2.0.0, 20 Aug 20262.0.0, 23 Jul 2026graphql-scalars 28 days more recent
Releases, last 12 months32graphql-scalars 1 more
First published22 Sept 20162 Aug 2017graphql-scalars 10 months earlier
GitHub stars1,932750graphql-scalars 2.6x higher
Open issues409graphql-scalars 31 more
Open pull requests134graphql-scalars 9 more
Contributors---
Commits, last 52 weeks1554graphql-scalars 38.8x higher
TypeScript typesBundledBundledSame
Module formatESM + CommonJSESM + CommonJSSame
Runtimes---
LicenseMITMITSame

Green marks the smaller size or the more recent release. Bold marks the higher count, with no judgement implied. Sizes are for the whole package per Bundlephobia. Growth compares the average of the last 4 weeks with the first 4 weeks of the 52-week series.

graphql-scalars2.2m latest weekgraphql-query-complexity770.3k latest week
Week of 23 Sept 2025Week of 15 Sept 2026
Weekly npm downloads, 52 weeks. Y axis starts at zero. Values are not smoothed.

graphql-scalars

Major versions
  1. 0.0.022 Sept 2016
  2. 1.0.08 Aug 2019
  3. 2.0.020 Aug 2026
Last 5 releases
  1. 2.0.020 Aug 2026
  2. 1.26.011 Aug 2026
  3. 1.25.014 Oct 2025
  4. 1.24.219 Mar 2025
  5. 1.24.129 Jan 2025
93 releases in total, 3 in the last 12 months

graphql-query-complexity

Major versions
  1. 0.1.02 Aug 2017
  2. 1.0.010 Jun 2024
  3. 2.0.023 Jul 2026
Last 5 releases
  1. 2.0.023 Jul 2026
  2. 1.1.111 Jun 2026
  3. 1.1.08 Apr 2025
  4. 1.0.010 Jun 2024
  5. 0.12.029 Aug 2022
25 releases in total, 2 in the last 12 months
graphql-scalars

-

graphql-query-complexity

-

graphql-scalars

-

graphql-query-complexity

-

  • Module formatBoth ESM + CommonJS
  • Need TypeScript types in the package itselfBoth
  • Node.js version requirementgraphql-scalars: >=10; graphql-query-complexity: none declared (engines field in package.json)
  • Need the more recent releasegraphql-scalars (2.0.0 on 20 Aug 2026 vs 2.0.0 on 23 Jul 2026)
  • Higher weekly npm downloadsgraphql-scalars (2.2m vs 772k)

Each line is generated from the data above.