graphql
npmv17.0.2TypeScriptA 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.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
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() {Used by
Popular packages that depend on graphql.
Relationship graph
Dependencies (left) and dependents (right) of graphql.
Frequently installed together
A collection of essential TypeScript types
An extremely fast JavaScript and CSS bundler and minifier.
An HTTP/1.1 client, written from scratch for Node.js
Prettier is an opinionated code formatter
Promise based HTTP client for the browser and node.js
Fast, unopinionated, minimalist web framework
Next generation testing framework powered by Vite
Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
Universal WHATWG Fetch API for Node, Browsers and React Native
Low-level network interception library for Node.js.
A native "Headers" class polyfill.
Fast and low overhead web framework, for Node.js
Release history
36 releases in the last two years, typically about 3 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 15.10.3 | 12 days ago | 2.0 MB | MIT |
| 17.0.2latest | 2 months ago | 6.2 MB | MIT |
| 17.0.1 | 2 months ago | 6.2 MB | MIT |
| 17.0.0 | 2 months ago | 6.2 MB | MIT |
| 16.14.2 | 3 months ago | 2.0 MB | MIT |
| 17.0.0-rc.0 | 3 months ago | 6.2 MB | MIT |
| 16.14.1 | 3 months ago | 2.0 MB | MIT |
| 17.0.0-beta.2 | 3 months ago | 6.1 MB | MIT |
| 17.0.0-beta.1 | 4 months ago | 5.0 MB | MIT |
| 17.0.0-beta.0 | 4 months ago | 4.9 MB | MIT |
| 16.14.0 | 4 months ago | 1.4 MB | MIT |
| 15.10.2 | 5 months ago | 2.0 MB | MIT |
| 16.13.2 | 5 months ago | 1.3 MB | MIT |
| 17.0.0-alpha.14 | 6 months ago | 4.8 MB | MIT |
| 17.0.0-alpha.13 | 6 months ago | 4.8 MB | MIT |
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.
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.