graphql-js

A reference implementation of GraphQL for JavaScript

20.3k
Stars
+71
Gained
0.4%
Growth
TypeScript
Language

💡 Why It Matters

This repository provides the reference implementation of GraphQL in JavaScript, enabling teams to define a GraphQL schema and execute queries against it. Unlike higher-level frameworks that abstract GraphQL server setup, this library offers low-level primitives to build schemas and resolvers directly, making it highly flexible for backend and API engineers who want precise control over query execution. It supports both Node.js and browser environments and integrates well with bundlers like webpack and rollup. With over 20,000 stars and a last commit as recent as November 2026, it is a mature and stable project, though its growth is slow and steady, reflecting its established status. It is not the right choice if you want a full-featured GraphQL server framework with built-in integrations and tooling, where alternatives like Apollo Server or Hasura might be more appropriate.

🎯 When to Use

Use this library when you need a foundational GraphQL implementation in JavaScript to build a custom schema and control query execution at a low level. Consider Apollo Server or Hasura if you prefer a more opinionated, batteries-included GraphQL server with additional features like caching, federation, or database integrations.

👥 Team Fit & Use Cases

It is typically used in backend services that expose APIs with flexible query capabilities, such as custom microservices or internal tooling dashboards. Frontend teams building client-side GraphQL query tools or integrations like GraphiQL also rely on it for schema parsing and execution.

🎭 Best For

🏷️ Topics & Ecosystem

graphql graphql-js

📊 Activity

Latest commit: 2026-11-10. Over the past 373 days, this repository gained 71 stars (+0.4% growth). Activity data is based on daily RepoPi snapshots of the GitHub repository.