# apollographql/apollo-ios

📱  A strongly-typed, caching GraphQL client for iOS, written in Swift.

Repository: https://github.com/apollographql/apollo-ios
Canonical: https://ross.abutalabs.com/products/apollo-ios
Homepage: https://www.apollographql.com/docs/ios/
Language: Swift
License: MIT
License Family: permissive
Topics: swift, graphql-client, apollo-ios, ios, graphql, apollographql
Last push: 2026-08-20T20:16:30+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 98, longevity 100
- inputs: {"age_days": 3691, "days_push": 13, "days_rel": 13, "gap_med": 18.0, "n_releases_24m": 33}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4033, forks 760 (observed 2026-08-28T04:08:32.823910+00:00)

## What it is
Apollo iOS is a strongly-typed, caching GraphQL client for Swift, supporting iOS, macOS, watchOS, tvOS, and visionOS. It provides code generation for operation models, in-memory and SQLite caching, and networking transports including HTTP and WebSocket.

## Use cases
- consume a GraphQL API from an iOS app
- generate Swift models from GraphQL queries
- cache GraphQL responses locally on iOS
- run GraphQL subscriptions over WebSocket in Swift
- paginate GraphQL results in a native mobile app
- upload files via GraphQL mutations from iOS
- authenticate GraphQL requests in a Swift app

## When to choose
- you are building an iOS, macOS, watchOS, tvOS, or visionOS app that talks to a GraphQL backend
- you want type-safe generated models instead of hand-writing response parsing
- you need normalized caching (in-memory or SQLite) for GraphQL data
- you want a production-tested client with pagination, subscriptions, and persisted query support

## When to avoid
- your backend is REST, not GraphQL
- you target Android or JVM - use Apollo Kotlin instead
- you need a web/React client - use Apollo Client (Web)
- you want a lightweight hand-rolled HTTP layer without code generation or caching

## Facets
- artifact type: library
- maturity: stable
- function: graphql-client, http-client, caching, websocket, sdk
- domain: mobile-development, apis, web-development, developer-tools
- platform: cross-platform
- tags: graphql, apollo, swift, codegen, watchos, tvos, visionos, sqlite-cache, mobile-client, code-generation, ios, macos, mobile

## Member repositories
- apollographql/apollo-ios (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:32.823910+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:23:49.472710+00:00, confidence not recorded.
  - readme: https://github.com/apollographql/apollo-ios (fetched 2026-08-28T04:08:32.823910+00:00, sha e5128fd4a10d)
  - homepage: https://www.apollographql.com/docs/ios/ (fetched 2026-08-29T09:16:31.778949+00:00, sha ad1261d70a35)
  - site_page: https://www.apollographql.com/docs (fetched 2026-08-29T09:16:31.789717+00:00, sha 364c62c8f651)
  - site_page: https://www.apollographql.com/docs/graphos/platform (fetched 2026-08-29T09:16:31.791366+00:00, sha 37075c61d8dc)
  - site_page: https://www.apollographql.com/docs/graphos/connectors (fetched 2026-08-29T09:16:31.792977+00:00, sha 1f61a62ae86b)
  - site_page: https://www.apollographql.com/docs/graphos/schema-design (fetched 2026-08-29T09:16:31.794440+00:00, sha f47664f9ba05)
  - site_page: https://www.apollographql.com/docs/rover (fetched 2026-08-29T09:16:31.795914+00:00, sha 1186ae807cee)
  - site_page: https://www.apollographql.com/docs/graphos/routing (fetched 2026-08-29T09:16:31.797372+00:00, sha e446bd6a11e6)
  - site_page: https://www.apollographql.com/docs/apollo-operator (fetched 2026-08-29T09:16:31.798806+00:00, sha 22bed19bd33c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
