Skip to content
JS
Comparison

graphql-type-json vs graphql-relay

GraphQLPackage data 25 Sept 2026
graphql-type-jsonv0.3.2, 10 Jun 2020

JSON scalar types for GraphQL.js

$ npm install graphql-type-json
graphql-relayv0.11.0, 21 Sept 2026

A library to help construct a graphql-js server supporting react-relay.

$ npm install graphql-relay
Metricgraphql-type-jsongraphql-relayDifference
Weekly downloads1,081,033198,264graphql-type-json 5.5x higher
12-month download growth+3%+38%graphql-relay +36 pts
Gzip size---
Minified size---
Dependencies00Same
Unpacked size11 kB45 kBgraphql-type-json 4.0x smaller
Latest release0.3.2, 10 Jun 20200.11.0, 21 Sept 2026graphql-relay 6.3 years more recent
Releases, last 12 months0--
First published28 Apr 2016--
GitHub stars9831,542graphql-relay 1.6x higher
Open issues918graphql-relay 9 more
Open pull requests283graphql-type-json 25 more
Contributors---
Commits, last 52 weeks04graphql-relay higher
TypeScript typesBundledBundledSame
Module formatESM + CommonJSCommonJSDiffers
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-type-json1.1m latest weekgraphql-relay198.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-type-json

Major versions
  1. 0.1.028 Apr 2016
Last 5 releases
  1. 0.3.210 Jun 2020
  2. 0.3.120 Nov 2019
  3. 0.3.012 Apr 2019
  4. 0.2.429 Mar 2019
  5. 0.2.329 Mar 2019
13 releases in total, 0 in the last 12 months

graphql-relay

Major versions
  1. -
Last 5 releases
  1. -
Release count not fetched
graphql-type-json

-

graphql-relay

-

graphql-type-json

-

graphql-relay

-

  • Need no runtime dependenciesBoth
  • Need both ESM and CommonJS entry pointsgraphql-type-json (graphql-type-json: ESM + CommonJS; graphql-relay: CommonJS)
  • Need to load it with require()Both
  • Need TypeScript types in the package itselfBoth
  • Node.js version requirementgraphql-type-json: none declared; graphql-relay: ^12.20.0 || ^14.15.0 || >= 15.9.0 (engines field in package.json)
  • Need the more recent releasegraphql-relay (0.11.0 on 21 Sept 2026 vs 0.3.2 on 10 Jun 2020)
  • Higher weekly npm downloadsgraphql-type-json (1.1m vs 198.3k)

Each line is generated from the data above.

Indexability: Indexed.