Skip to main content
This page summarizes the public types most customer integrations need. Use your editor’s TypeScript support for the full generated definitions.

Core SDK

Journey types

Theme types

WidgetVariant is one of default, retro, rounded, or clean.

i18n types

Use TranslationMessageKey to keep overrides aligned with SDK message keys.

Widget types

Use these when building wrappers around ExperienceWidget or sharing slot definitions across pages.

Shopify types

The storefront integration types most Shopify (Hydrogen/Oxygen, Next, Remix) integrations need. These come from the SSR-safe root barrel, which imports zero React; the provider and hooks live in @fanfare-io/fanfare-sdk-shopify/react.
See the Shopify quickstart for end-to-end setup.

Public-only contract

The types above are the contract your application should depend on. Avoid reaching into internals or building behavior from fields that are not exported through these public package paths.