GraphQL client for TypeScript and JavaScript with caching built in, for React, Vue, Angular and more
open sourceMITfree
Apollo Client is Apollo Graph's GraphQL client for TypeScript and JavaScript. It fetches data with GraphQL queries and mutations and caches it intelligently with no configuration. It's framework agnostic, with bindings for React, Vue, Angular, Svelte and plain JavaScript, and its React support covers Suspense, React Server Components and the React Compiler. It's written TypeScript-first for full type safety. Apollo publishes browser DevTools for Chrome and Firefox, a VS Code extension, and an agent skill (npx skills add apollographql/skills --skill apollo-client) that gives coding agents Apollo Client knowledge. It follows SemVer, though minor releases may change transpilation targets or drop support for old dependency versions.
Problems it solves
- fetch data from my GraphQL API in a React app and cache it so components stay in sync
- a GraphQL client for TypeScript that works with Vue or Angular as well as React
- use GraphQL queries with React Suspense and server components
Features
- Zero-configuration caching of GraphQL results
- Bindings for React, Vue, Angular, Svelte and plain JavaScript
- React Suspense, React Server Components and React Compiler support
- TypeScript-first, with full type safety
- Apollo Client DevTools for Chrome and Firefox, and a VS Code extension
- Agent skill for coding agents: npx skills add apollographql/skills --skill apollo-client
Limitations
- Minor releases may change transpilation targets, update dependencies or drop support for older dependency versions, despite SemVer1
Alternatives
The same job
These do what Apollo Client does.
- TanStack Query Async server-state management and data fetching for TS/JS, React, Vue, Svelte, Solid and Angular
- GraphQL Flutter GraphQL client for Dart and Flutter, with caching and subscriptions
- Relay Meta's JavaScript framework for building data-driven React apps with GraphQL
