Skip to main content
ArcSight

← HomepageAll repository proofValidation recordState of TS Architecture 2026

Repository proof

Apollo Client architecture

Changing utilities/caching/sizes in Apollo Client reaches 48 modules. 14 files call it directly. Snapshot 53bae5b.

The first file to open in Apollo Client is utilities/caching/sizes. A change there reaches 48 of 339 modules.

This lead file reaches 14% of the graph. The median published proof reaches 60%.

caching/sizes48 · 14 fan-in
hooks/constants16 · 6 fan-in
hooks/useApolloClient14 · 12 fan-in
inmemory/policies12 · 9 fan-in
inmemory/types12 · 9 fan-in

Median 60%. Thick bar is blast share. Thin bar is fan-in.

Download the finding

Project: Apollo Client (src) · Score: 75/100 (Healthy architecture) · 339 modules · 590 edges · TypeScript · 57 of 94 · Language score median 80.1

Cycles
47
Duplicate authorities
151
God modules
2
Layer violations
0
arc impact utilities/caching/sizes

Under 3 minutes to first arc impact on a TypeScript monorepo (internal runs).

README badge

ArcSight architecture proof for Apollo Client
[![ArcSight architecture proof for Apollo Client](https://arcsight.ai/badge/proof/apollo-client/)](https://arcsight.ai/repositories/apollo-client/)

Blast radius paths

Ranked by blast radius. Fan-in is direct dependents. Blast radius is downstream modules reachable from that file.

Apollo Client · 53bae5b

RankFileFan-inBlastShare
1utilities/caching/sizes

concentrates too many responsibilities, shared utility hub

144814%
2react/hooks/constants6165%
3react/hooks/useApolloClient

shared utility hub

12144%
4cache/inmemory/policies9124%
5cache/inmemory/types9124%
All ranked files
RankFileFan-inBlastShare
6cache/core/types/common8124%
7cache/inmemory/helpers7124%
8cache/inmemory/inMemoryCache6124%

Circular dependencies

This snapshot records 47 dependency cycles.

Nearby proofs

Snapshot notes

In apollographql apollo-client, a change that begins in caching sizes keeps traveling until it reaches hooks constants, with hooks useApolloClient as the third file on that walk and the inmemory-types group as the group around them, snapshot mark ffbabafbee.

inmemory policies is worth opening beside caching sizes because inmemory types still participates when inmemory policies moves, and types common stays in view for apollographql apollo-client, snapshot mark ffbabafbee.

Review inmemory helpers only after hooks constants and inmemory inMemoryCache are both on the table, since the link from version back to hooks useApolloClient belongs to apollographql apollo-client under snapshot mark ffbabafbee.

context ApolloContext and caching sizes are later stops, and a reviewer who has already seen hooks constants should still look at hooks useApolloClient before treating the inmemory-types group as understood for apollographql apollo-client, snapshot mark ffbabafbee.

hooks useApolloClient closes the file list after inmemory policies and caching sizes, which keeps the apollographql apollo-client note tied to snapshot mark ffbabafbee, and the files named in this paragraph are the ones the review is willing to stand on.

Subsystem overview

  • inmemory-types (38 modules)
  • core-types (15 modules)
  • errors-utils (7 modules)
  • incremental-types (5 modules)
  • invariantErrorCodes (8 modules)
  • batch-http-BaseBatchHttpLink (3 modules)
  • batch-batchLink (3 modules)
  • core-ApolloLink (8 modules)
  • http-selectHttpOptionsAndBody (9 modules)
  • retry-retryLink (4 modules)
  • internal-types (3 modules)
  • masking-utils (5 modules)
  • hooks-useApolloClient (28 modules)
  • cache-types (6 modules)
  • ssr-prerenderStatic (5 modules)

CLI workflow

Impact, then scan, fix, finish, and watch.

  • arc impact <file>See what a change breaks
  • arc scanFind issues
  • arc fixApply fixes
  • arc finishResolve remaining
  • arc watchKeep clean

More commands (explain, guard…) →

FAQ

Which file should change first in apollographql apollo-client: caching sizes?
Start with caching sizes, because the rest of the apollographql apollo-client walk leaves from that file and hooks constants is the next file in the same review. Commit ffbabafbee records it.
What else is on the apollographql apollo-client walk besides caching sizes and hooks useApolloClient?
hooks useApolloClient and inmemory policies stay on the walk with inmemory types, which are different files from caching sizes inside the inmemory-types group for apollographql apollo-client. Commit ffbabafbee records it.
How should a reviewer use types common in the apollographql apollo-client snapshot?
Keep types common, inmemory helpers, and inmemory inMemoryCache open together, then check version before merging the apollographql apollo-client change. Commit ffbabafbee records it.
Where does the apollographql apollo-client review stop after context ApolloContext?
Stop after context ApolloContext, caching sizes, and hooks constants have been compared with hooks useApolloClient, leaving the inmemory-types group until those apollographql apollo-client files are clear. Commit ffbabafbee records it.

Run ArcSight on your repo

Install locally, then run arc impact on the file you plan to change — before merge.

npx arcsight init
arc impact <path>
Install ArcSight →

Embed this report

Use this iframe to show the architecture badge on your site.

<iframe src="https://arcsight.ai/embed/apollo-client/" width="320" height="180" frameborder="0"></iframe>

Explore

Evidence-backed analysis snapshot. snapshot.json · How ArcSight measures blast radius · Install · Homepage demo