| Path | Install | Use when |
|---|---|---|
| React components | @fanfare-io/fanfare-sdk-core and @fanfare-io/fanfare-sdk-react | You use React and want the supported ExperienceWidget, hooks, slots, and styles. |
| Core SDK | @fanfare-io/fanfare-sdk-core | You want to render every state from JourneyView with your own UI. |
| Web components | @fanfare-io/fanfare-sdk-core and @fanfare-io/fanfare-sdk-solid | You need a custom element for static HTML, CMS pages, or a non-React host. |
React
Install the core SDK, React adapter, and animation peer dependency:react, react-dom, and motion.
Use the provider and widget:
useExperienceJourney and render from the returned view.
Core SDK
Install only the core package when your application owns the UI:JourneyView and call only actions exposed by the current view.
Web Components
Install the core SDK, Solid adapter, and Solid peer dependency: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:Next Steps
- Quickstart - Build the first React integration.
- Configuration - Set credentials, copy, and theme.
- Choose Your Path - Compare core, React, and web component paths.