Skip to main content
Fanfare has three public SDK paths. Choose the package set that matches how much UI ownership your application needs. All paths use the same journey model. You can start with a component path and move specific states to custom UI later.

React

Install the core SDK, React adapter, and animation peer dependency:
Equivalent commands:
The React package has peer dependencies on react, react-dom, and motion. Use the provider and widget:
For custom React UI, import useExperienceJourney and render from the returned view.

Core SDK

Install only the core package when your application owns the UI:
Initialize once and read the public journey view:
Render UI from JourneyView and call only actions exposed by the current view.

Web Components

Install the core SDK, Solid adapter, and Solid peer dependency:
Register the custom elements once:
Then render the experience widget:

TypeScript and Modules

Fanfare SDK packages include TypeScript definitions and are ESM-only. Modern bundlers such as Vite, Next.js, Webpack 5, and Astro handle ESM packages without additional SDK configuration. Import public types from the package that owns the API:

No CDN Path

Use the npm packages with a bundler for production integrations. The public SDK docs do not define a separate CDN API surface.

Verify Installation

Use a minimal render before adding custom states:
If the provider mounts and the widget renders a ready, loading, gated, participating, admitted, or unavailable state, the package install is working. Use test credentials and a test experience for local verification.

Next Steps