Open-Source Cancel Flow
"Churnkey SDK is an open-source cancel flow component for React. It handles the full cancellation sequence: an exit survey, save offers (discounts, pauses, plan changes, trial extensions), a feedback step, and confirmation. Developers can use the drop-in component with default styling, theme it through CSS variables and component overrides, or go fully headless with the
useCancelFlowhook and render their own UI. It works standalone with any billing setup and optionally connects to Churnkey for analytics, A/B testing, and AI retention features.The SDK is written in TypeScript and built for React 18 and 19. It ships as
@churnkey/reacton npm, with a companion@churnkey/nodepackage for server-side token generation. The core is a state machine that drives the flow steps, exposed either as a styled component or as a headless hook. The docs site and interactive showcase demonstrate every step type and recipe."