
Apollo Client
A JavaScript and TypeScript library for loading and caching GraphQL data in web apps.
- Stars
- 19.8k
- Forks
- 2.8k
- Licence
- MIT
- Language
- TypeScript
- Last update
- 5 days ago
- Type
- Library
What it is
Apollo Client is a library that lets a front-end app fetch data from a GraphQL server and keep the results in a local cache. It works with React, Vue, Angular, and plain JavaScript, according to the README. The README says it offers caching, APIs for queries, and developer tools.
- Fetch data from a GraphQL endpoint in a React component
- Cache query results so repeat views load from local memory
- Use the Apollo DevTools browser extension to inspect GraphQL requests
Great for
- Developers building React apps that query a GraphQL API
- Teams using TypeScript who want typed GraphQL operations
- Apps that need a client-side cache for GraphQL responses
Not ideal for
- Projects that do not use GraphQL, since the library is built around GraphQL queries
- Developers who only need a simple HTTP request library, since this adds a larger set of concepts
- Non-developers, because it is code you add to an app
How to get it
- 1
Install with a package manager
You'll need: Node.js · npm
Install the client and GraphQL package
npm install @apollo/client graphql - 2
Run it
- Install the packages with npm
- Follow the Getting Started guide linked in the README to set up a client
- Point the client at a GraphQL endpoint and run a first query
- 3
Get the most out of it
- Install the Apollo Client DevTools for Chrome or Firefox to debug requests
- Use the VS Code extension for GraphQL editing support
- Use the Apollo Client agent skill via npx skills add if you use an AI coding agent
Downloads
Strengths
- Caching is included out of the box, per the README
- Works across several front-end frameworks
- Has TypeScript support and an active maintainer team listed in the README
Trade-offs
- Requires understanding GraphQL and the library's caching model
- The README is truncated, so the full feature list and edge cases are not covered here
How it compares
| Project | Stars | Type | Level | Updated | Best for |
|---|---|---|---|---|---|
| apollo-client (this) | 19.8k | Library | intermediate | 5 days ago | Developers building React apps that query a GraphQL API |
| relay | 19k | Framework | intermediate | 4 days ago | React developers who already use GraphQL |
| apollo-server | 14k | Library | intermediate | 5 days ago | Node.js developers who want to add a GraphQL API to an existing Express, Koa or Hapi app |
| query | 50.5k | Library | intermediate | 4 days ago | Frontend developers building apps that load data from a server |
| graphql-js | 20.3k | Library | intermediate | 4 days ago | JavaScript or TypeScript developers building a GraphQL API on Node.js |
| payload | 45.6k | Framework | intermediate | 4 days ago | Developers already building with Next.js and React who want a backend without a separate server |
Stats synced from GitHub. The assessment above was drafted with AI from the project's README on 2026-10-29 and may miss recent changes — check the README before relying on a command. MIT licence: free to use, modify and distribute, including commercially, as long as you keep the copyright notice.