</>PackageGraphPackageGraph

graphql

npmv17.0.2TypeScript

A Query Language and Runtime which can target any service.

Safe to adopt

Yes — graphql scores well across adoption, maintenance, weight, supply chain, and licensing. 42M downloads per week and 1 known dependents. Last published 69 days ago. 42 releases in the last 2 years.

  • AAdoption: grade A, Excellent.

    42M downloads per week and 1 known dependents.

  • AMaintenance: grade A, Excellent.

    Last published 69 days ago. 42 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 6.2 MB installed.

  • ASupply chain: grade A, Excellent.

    No install scripts, 6 maintainers, and a contained dependency surface.

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding graphql to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

6.2 MB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
node ^22.0.0 || ^24.0.0 || ^25.0.0 || >=26.0.0
Module format
ESM + CommonJS
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the graphql README.

import {
  graphql,
  GraphQLSchema,
  GraphQLObjectType,
  GraphQLString,
} from 'graphql';

var schema = new GraphQLSchema({
  query: new GraphQLObjectType({
    name: 'RootQueryType',
    fields: {
      hello: {
        type: GraphQLString,
        resolve() {
Example truncated — see the full README.

Used by

Popular packages that depend on graphql.

Relationship graph

Dependencies (left) and dependents (right) of graphql.

mswgraphql
graphql dependencies dependents

Frequently installed together

Release history

36 releases in the last two years, typically about 3 days apart.

Recent versions of graphql
VersionPublishedSizeLicense
15.10.312 days ago2.0 MBMIT
17.0.2latest2 months ago6.2 MBMIT
17.0.12 months ago6.2 MBMIT
17.0.02 months ago6.2 MBMIT
16.14.23 months ago2.0 MBMIT
17.0.0-rc.03 months ago6.2 MBMIT
16.14.13 months ago2.0 MBMIT
17.0.0-beta.23 months ago6.1 MBMIT
17.0.0-beta.14 months ago5.0 MBMIT
17.0.0-beta.04 months ago4.9 MBMIT
16.14.04 months ago1.4 MBMIT
15.10.25 months ago2.0 MBMIT
16.13.25 months ago1.3 MBMIT
17.0.0-alpha.146 months ago4.8 MBMIT
17.0.0-alpha.136 months ago4.8 MBMIT

Overview

graphql is an npm package that a Query Language and Runtime which can target any service. It is extremely widely used, with about 42M downloads per week and 1 known dependents in the graph. The latest version is 17.0.2, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need a Query Language and Runtime which can target any service and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.

Pros

  • Large, well-established user base (42M weekly downloads).
  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).
  • Zero runtime dependencies — minimal footprint.

Cons

  • No significant drawbacks detected from available metadata.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Frequently asked questions

Should I use graphql?

Yes — graphql scores well across adoption, maintenance, weight, supply chain, and licensing. 42M downloads per week and 1 known dependents. Last published 69 days ago. 42 releases in the last 2 years.

How do I install graphql?

Run `npm install graphql` to add graphql to your npm project.

What license is graphql released under?

graphql is distributed under the MIT license.

How popular is graphql?

graphql has approximately 42,007,336 downloads per week and 1 known dependent packages.

Is graphql still maintained?

The most recent release of graphql (v17.0.2) was published 2 months ago.

Does graphql run install scripts?

No. graphql does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.