GraphQL.js
A strong pick. 5th of 10 RPC and GraphQL libraries.
GraphQL.js is the reference GraphQL implementation for JavaScript. It handles schema, parsing, validation and execution, and almost every JS GraphQL server and tool is built on it. It is the safe foundation for any GraphQL work, but on its own it is a low-level engine: most teams pair it with a server such as GraphQL Yoga or Apollo Server and often a schema builder such as Pothos.
Best for: GraphQL server, tooling and framework authors, and teams that want spec-exact GraphQL execution under any server.
Scores
Overall7.6
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
If you build GraphQL in JavaScript, this is the engine you will run, and it is well maintained, safe and spec-exact. It is not a full API server, so for a new project most people should pick Yoga or Apollo Server, which bring it in for them. Its share is growing more slowly than tRPC and oRPC. It is a strong pick for GraphQL work, not the default for the whole category.
- npm downloadsLast4Weeks: Huge but mostly transitive; ratio below median
- graphql.org/blog/2026-06-15-introducing-graphql-js-v17: Active v17 line with modern features
- pkgpulse.com/guides/trpc-vs-graphql-api-layer-2026: tRPC is preferred for TS-only stacks
GPT-6.2 Sol: 8.2, likely 7.2 to 9.2
GraphQL.js is a strong choice for new GraphQL work because it supplies the reference implementation and is actively maintained. GraphQL Yoga is the more complete starting point for serving GraphQL over HTTP, and tRPC offers a simpler route to inferred client types for an all-TypeScript RPC app. Slower normalized download growth and uneven v17 migration timing reduce confidence in a higher category-wide score.
- github.com/graphql/graphql-js/releases/tag/v17.1.0: The stable release contains correctness, performance, and parser improvements.
- the-guild.dev/graphql/hive/product-updates/2026-10-24-yoga-adopts-hive-logger-support-latest-defer-steam-spec-drops-legacy-node-and-graphql: Yoga provides HTTP handling and request logging above the GraphQL core.
- trpc.io/docs: tRPC infers client types from the server without code generation.
- github.com/graphql-hive/graphql-yoga/issues/4541: Documents the delay in downstream support for the stable v17 release.
- npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, medianDownloadsRatio: The 3.39× download ratio trails the catalog median of 4.1×.
Needed by many5.1
How many developers need a tool for this job?
Claude Opus 5.5: 5.0, likely 4.0 to 6.0
Every GraphQL project in JavaScript needs it, but GraphQL is the API style of a large minority of web teams, not most of them. Many TypeScript-only full-stack teams now pick tRPC or REST instead. Its scope is narrower than the whole category because it serves only GraphQL.
- pkgpulse.com/guides/trpc-vs-graphql-api-layer-2026: GraphQL suits public and multi-client APIs; tRPC suits TS-only monorepos
- dependents: 413k dependent repos shows GraphQL is widely used
GPT-6.2 Sol: 5.1, likely 3.9 to 6.3
GraphQL.js serves teams building GraphQL APIs, clients, and schema tools across JavaScript frameworks. Postman's 2025 survey found GraphQL use among 33% of API respondents. Its audience includes developers outside JavaScript and teams that only consume GraphQL, so it gives an approximate measure of demand for this library.
- postman.com/state-of-api/2025: GraphQL was used by 33% of API survey respondents.
- graphql-js.org/docs: Documents the core APIs used in servers, clients, and schema tooling.
Helps a lot7.8
How well does it do the job for those who need it?
Claude Opus 5.5: 7.5, likely 6.5 to 8.5
As an engine it is correct, spec-exact and complete. v17 adds cancellation, tracing hooks, schema-diffing and incremental delivery. It ships its own types, has good docs and upgrade guides, and AI agents know it very well. On its own it is not a full server, and its hand-written schema API is verbose next to Pothos or tRPC, which keeps it below the top.
- graphql.org/blog/2026-06-15-introducing-graphql-js-v17: v17 features: AbortSignal, harness, diagnostics_channel, defer/stream
- graphql-js.org/upgrade-guides/v16-v17: Detailed upgrade guide
- npm hasTypes: Bundled TypeScript types
- bluesky top: Maintainer reports print performance gains of about 3.5x
GPT-6.2 Sol: 8.1, likely 7.0 to 9.1
Version 17.1.0 delivers a complete GraphQL core with typed APIs, detailed error reporting, versioned documentation, and improvements to validation and execution. Deploying an endpoint takes a separate HTTP layer, and schema-specific TypeScript types take extra setup. The documentation gives coding agents concrete examples, but agent reliability and performance on this exact release have little independent measurement.
- github.com/graphql/graphql-js/releases/tag/v17.1.0: Stable release adds parser limits and improves validation and execution.
- graphql-js.org/docs/graphql-errors: Explains error locations, execution paths, and extensions.
- graphql-js.org/docs/running-an-express-graphql-server: Uses a separate adapter to expose the schema over HTTP.
- graphql-js.org/docs/type-generation: Shows the additional setup for typed resolvers and operations.
- github.com/zalando-incubator/graphql-jit#benchmarks: Zalando's older v16 benchmark shows speed gains from compiled execution on selected workloads.
Holds up over time8.1
Will it still be a good choice in two years?
Claude Opus 5.5: 7.5, likely 6.5 to 8.5
Activity is steady: 645 commits and 22 releases in the past year, a fresh v17.1.0, and the GraphQL Foundation as its home. Every JS GraphQL server depends on it, so it will not be abandoned quietly. Risks are a small core team, with the v17 post thanking past maintainers, and a slow major-release cadence: four and a half years between v16 and v17.
- github commitsLastYear: 645 commits, 22 releases last year
- github latestRelease: v17.1.0 on 2026-11-04
- graphql.org/blog/2026-06-15-introducing-graphql-js-v17: First major since 2021; past maintainers thanked
- scorecard Maintained: Maintained check 10/10
GPT-6.2 Sol: 8.7, likely 7.6 to 9.6
GraphQL.js logged 645 commits and 22 GitHub releases in a year, with nine committers on 17.1.0 and infrastructure support from the GraphQL Foundation. The v17 upgrade changed execution and error APIs, and Yoga users reported an initial compatibility delay that has since been resolved. Issue response times and the number of people who can approve a release remain unclear.
- github commitsLastYear, github releasesLastYear: 645 commits and 22 GitHub releases in the past year.
- github.com/graphql/graphql-js/releases/tag/v17.1.0: Lists nine committers for the November stable release.
- graphql.org/community/contribute/governance: Describes technical oversight and foundation funding for shared infrastructure.
- graphql-js.org/upgrade-guides/v16-v17: Documents changes to execution, error construction, and supported Node.js versions.
- github.com/graphql-hive/graphql-yoga/issues/4541: A downstream user reported that early stable v17 installs conflicted with Yoga.
- github.com/graphql-hive/graphql-yoga/blob/main/packages/graphql-yoga/package.json: Yoga 6.1 declares support for stable GraphQL.js v17.
Used widely8.0
How many use it, and is that growing?
Claude Opus 5.5: 8.5, likely 7.5 to 9.0
It has 282M downloads in 4 weeks and 413k dependent repos, far above every peer, though most installs come through other GraphQL tools. Its download ratio of about 3.4 is below the 4.1 median and below tRPC, oRPC and Yoga, so GraphQL is losing a little share. Direct choices are still in the hundreds of thousands of projects.
- npm downloadsLast4Weeks: 282M, up from 83M a year ago (ratio ~3.4)
- medianDownloadsRatio: Median 4.1, so it is slightly losing ground
- dependents: 413k repos and 16k packages, highest in the category
- github stars: 20k stars, second to tRPC
GPT-6.2 Sol: 7.5, likely 6.3 to 8.7
The collector found roughly 413,000 dependent repositories and 16,000 npm packages, far ahead of the peers with available counts. Four-week downloads rose 3.39× year over year, below the 4.1× catalog median and behind tRPC and Yoga, so the package lost ground on normalized download growth. Framework dependencies account for much of the install volume, and the available data leave the rate of new direct choices uncertain.
- dependents repos, dependents packages, peers dependentRepos: 412,994 repositories and 16,004 packages in the collector's partial index.
- npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, medianDownloadsRatio, peers: 282.1 million versus 83.1 million downloads. tRPC grew 5.13× and Yoga 4.74×.
- project note, github stars, bluesky posts: Downstream tools drive installs. The repo has about 20,300 stars and 11 Bluesky posts, tying tRPC on posts.
- apollographql.com/docs/apollo-server/migration-from-v3: Apollo Server documents GraphQL.js as a peer dependency.
Vouched for8.2
Who stands behind it being good?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
It is the GraphQL Foundation's reference implementation, and Apollo Server, GraphQL Yoga, Mercurius, Pothos and TypeGraphQL all build on it in production. That is strong independent backing from many parties with something to lose. Survey data specific to it is thin, so I did not score it higher.
- dependents packages: 16k npm packages depend on it
- graphql.org/blog/2026-06-15-introducing-graphql-js-v17: Foundation-backed; harness modelled on Envelop, used by servers
- blog.logrocket.com/trpc-vs-graphql-better-projects: Independent comparison treats GraphQL as an established choice
GPT-6.2 Sol: 8.4, likely 7.3 to 9.4
Apollo Server and GraphQL Yoga depend on GraphQL.js, and NestJS tests against v17. These integrations give teams practical evidence that the core works across different server stacks. Current v17-specific satisfaction data are sparse, and independent benchmarks mostly cover older versions or complete server stacks.
- apollographql.com/docs/apollo-server/migration-from-v3: Apollo identifies GraphQL.js as the core implementation its server uses.
- github.com/graphql-hive/graphql-yoga/blob/main/packages/graphql-yoga/package.json: Yoga declares GraphQL.js as a peer dependency and develops against v17.
- github.com/nestjs/nest/blob/master/package.json: NestJS pins GraphQL.js 17.0.2 in its development dependencies.
- github.com/vovadyach/gql-bench: An independent benchmark compares full Apollo, Yoga, and Mercurius stacks.
Safe8.6
How safe is it to depend on?
Claude Opus 5.5: 8.5, likely 7.5 to 9.0
It has zero runtime dependencies, an MIT licence, and one moderate DoS advisory, from 2023, that was fixed. The Scorecard is 7.2. Its weak checks are Code-Review 0, Fuzzing 0, CII 0 and Pinned-Dependencies 4. Because it parses untrusted queries, users should still add depth and cost limits.
- npm dependencies: Zero dependencies
- advisories: 1 moderate advisory (2023), none in 24 months
- scorecard: 7.2; weak code review, fuzzing, pinning
- github license: MIT
GPT-6.2 Sol: 8.6, likely 7.5 to 9.5
The MIT-licensed package has zero runtime dependencies, and its release workflow uses npm trusted publishing with provenance. The one listed moderate advisory had a patch before public disclosure, with zero advisories recorded in the past 24 months. The 7.2 OpenSSF Scorecard showed weak dependency pinning and gave zero credit for code review and fuzzing. Branch protection and the number of release approvers remain unverified.
- npm dependencies, npm license, advisories last24Months: Zero runtime dependencies, MIT license, and zero listed advisories in 24 months.
- scorecard score, scorecard checks: 7.2 overall, 4 for pinning, and 0 for code review and fuzzing. Branch protection was unscored.
- github.com/advisories/GHSA-9pv7-vfvm-6vr7: Moderate advisory published September 20, 2023, with 16.8.1 listed as patched.
- github.com/graphql/graphql-js/releases/tag/v16.8.1: The patched release was published September 19, 2023.
- github.com/graphql/graphql-js/blob/v17.1.0/.github/workflows/release.yml: The stable release workflow publishes to npm through OIDC with provenance.
Good
- It is the spec reference: new GraphQL features land here first and every major JS server builds on it.
- It has zero dependencies, an MIT licence and one moderate advisory in its whole history.
- v17 (June 2026) added AbortSignal support, diagnostics_channel tracing, a pluggable execution harness and experimental @defer/@stream.
- It is actively maintained under the GraphQL Foundation, with 22 releases and 645 commits in the last year.
Bad
- It has no HTTP server, caching or batching, so you need Yoga, Apollo Server or Mercurius to serve an API.
- Its code-first schema API is verbose and weakly typed next to Pothos, and next to tRPC or oRPC for TypeScript-only stacks.
- v17 requires Node 22+ and renames scalar methods and default-value forms, so older integrations must migrate.
- Few people carry most of the work: the v17 post thanks past maintainers, and one person leads the release.
The numbers
- npm downloads, 4 weeks
- 282M ×3.4 in a year
- GitHub stars
- 20k
- Commits, 12 months
- 645
- npm version
- 17.1.0 Nov 2026
- Versions, 12 months
- 14
- Advisories, 24 months
- 0 of 1 ever
- OpenSSF Scorecard
- 7.2 out of 10, Nov 2026
- Licence
- MIT
Almost every GraphQL tool in JavaScript installs it, which gives it most of its downloads.
Read on 21 November 2026 from GitHub (graphql/graphql-js), npm (graphql), OSV and the OpenSSF Scorecard.
RPC and GraphQL libraries
- 8.2tRPC
- 8.0GraphQL Yoga
- 7.9Pothos
- 7.8oRPC
- 7.6GraphQL.js
- 7.5Connect
- 7.2Apollo Server
- 6.9Mercurius
- 5.0TypeGraphQL
- 1.7ts-rest