Skip to main content
All services are accessible via useStackfront() and can be used imperatively outside React components.

ApiClient

HTTP client for the Stackfront REST API.

StorefrontClient

GraphQL client for the Shopify Storefront API.

StorageService

AsyncStorage wrapper for local persistence.

EventService

Batched event tracking pipeline.

DeviceService

Push notification device registration and management.
The customer is identified by the X-Customer-Id header set on the ApiClient (via StackfrontProvider’s setCustomerId) — getPreferences/updatePreferences take no customerId argument, and device registration is handled internally by init (it is not part of the public API).

ConfigService

Remote SDK configuration.

ProductService

Product and collection queries via Storefront GraphQL.

CartService

Cart CRUD via Storefront GraphQL mutations.

CustomerService

Customer authentication, profile, and orders.
Auth errors exported alongside the service: CustomerSessionError, CustomerCreateError, RegistrationError.

AddressService

Customer address book (list + default, create, update, delete, set default). Ids are passed back verbatim; compare them with sameAddressId (base GID) because Shopify appends a rotating customer_access_token query suffix.
Storefront navigation menus by handle.

StoryService

Story/collection highlights.

SocialProofService

Live social proof signals.

IntegrationService

Third-party integration data.
IntegrationDataResponse.data is a JSON string containing the provider-specific payload. For Judge.me product reviews, prefer useProductReviews, which parses and normalises the payload for you.

WishlistService

Local wishlist persistence.

BillingService

App subscription billing.