# GraphQL.js: 7.6 out of 10

A strong pick. 5th of 10 in [RPC and GraphQL libraries](https://elestia.ai/opensource/api-layers/index.md).

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

- **Overall: 7.6** (likely 6.6 to 8.6)
  - Claude Opus 5.5 (7.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.
  - GPT-6.2 Sol (8.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.
- **Needed by many: 5.1** (likely 4.0 to 6.2)
  - Claude Opus 5.5 (5.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.
  - GPT-6.2 Sol (5.1): 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.
- **Helps a lot: 7.8** (likely 6.8 to 8.8)
  - Claude Opus 5.5 (7.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.
  - GPT-6.2 Sol (8.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.
- **Holds up over time: 8.1** (likely 7.1 to 9.1)
  - Claude Opus 5.5 (7.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.
  - GPT-6.2 Sol (8.7): 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.
- **Used widely: 8.0** (likely 6.9 to 8.9)
  - Claude Opus 5.5 (8.5): 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.
  - GPT-6.2 Sol (7.5): 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.
- **Vouched for: 8.2** (likely 7.2 to 9.2)
  - Claude Opus 5.5 (8.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.
  - GPT-6.2 Sol (8.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.
- **Safe: 8.6** (likely 7.5 to 9.3)
  - Claude Opus 5.5 (8.5): 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.
  - GPT-6.2 Sol (8.6): 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.

## 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

- Downloads, 4 weeks: 282M
- In a year: ×3.4
- GitHub stars: 20k
- Commits, 12 months: 645
- Last npm release: Nov 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/graphql/graphql-js
- npm: https://www.npmjs.com/package/graphql

Almost every GraphQL tool in JavaScript installs it, which gives it most of its downloads.

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
