Skip to content

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
6 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
Step-by-step guide: how to use Apollo ClientInstall, first run, examples, tips and FAQs

How to get it

  1. 1

    Install with a package manager

    You'll need: Node.js · npm

    Install the client and GraphQL package

    npm install @apollo/client graphql
  2. 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. 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

ProjectStarsTypeLevelUpdatedBest for
apollo-client (this)19.8kLibraryintermediate6 days agoDevelopers building React apps that query a GraphQL API
relay19kFrameworkintermediate5 days agoReact developers who already use GraphQL
apollo-server14kLibraryintermediate5 days agoNode.js developers who want to add a GraphQL API to an existing Express, Koa or Hapi app
query50.5kLibraryintermediate4 days agoFrontend developers building apps that load data from a server
graphql-js20.3kLibraryintermediate4 days agoJavaScript or TypeScript developers building a GraphQL API on Node.js
payload45.6kFrameworkintermediate4 days agoDevelopers 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.