Installation
Install the SDK using your preferred package manager:Dependencies
The SDK has the following peer dependencies that you may need to install separately:Required Dependencies
Full Dependency List
The SDK includes these dependencies automatically:@nerdwallet/apollo-cache-policies- Advanced cache invalidation policiesapollo3-cache-persist- Cache persistence for offline supportgraphql-ws- GraphQL subscriptions over WebSocketaxios- HTTP client for authenticationlodash- Utility functions
If you’re using the typed client instead of Apollo, you only need the
graphql package as a peer dependency.Package Information
The SDK is distributed with multiple module formats:- CommonJS:
dist/wp-ts-sdk.cjs.js - ES Modules:
dist/wp-ts-sdk.es.js - TypeScript Types:
dist/index.d.ts
Next Steps
Client Setup
Configure the Apollo client with authentication and caching
Typed Client
Use the lightweight typed client for server-side usage