npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@aperovn/funnel-sdk

v1.0.1

Published

React component library for AperoFunnel - build conversion funnels with automatic analytics

Downloads

778

Readme

@aperovn/funnel-sdk

React component library for building conversion funnels with automatic analytics, screen-based routing, and a themable design system.

npm

Features

  • Screen-based router — declarative funnel flows with built-in transitions
  • Session tracking — pluggable adapter pattern; default emits screen-view/answer/conversion events
  • Design system — 40+ components (quizzes, paywalls, forms, auth, charts, animations)
  • Theme tokens — colors, spacing, typography, motion, shadows, radius — runtime-swappable
  • Stripe integration — Payment Element + checkout flow primitives (optional peer)
  • Zero-config animations — transition presets, reduced-motion aware, gesture hooks

Install

npm install @aperovn/funnel-sdk
# or
bun add @aperovn/funnel-sdk

Peer dependencies

| Peer | Required | Notes | |------|----------|-------| | react >=18 | yes | | | react-dom >=18 | yes | | | next >=14 | yes | App Router supported | | @stripe/stripe-js ^1.54 \|\| ^2 \|\| ^3 \|\| ^4 | optional | only if using CheckoutFlow / PaymentForm | | @stripe/react-stripe-js ^2 \|\| ^3 | optional | same as above |

Quick start

import {
  FunnelProvider,
  FunnelRouter,
  ThemeProvider,
  Screen,
  Text,
  Button,
} from "@aperovn/funnel-sdk";
import "@aperovn/funnel-sdk/theme";

const screens = {
  welcome: {
    component: () => (
      <Screen>
        <Text type="heading">Welcome</Text>
        <Button action={{ type: "navigate", to: "quiz" }}>Start</Button>
      </Screen>
    ),
  },
  quiz: {
    component: () => (
      <Screen>
        <Text>Question 1...</Text>
      </Screen>
    ),
  },
};

export default function App() {
  return (
    <ThemeProvider>
      <FunnelProvider funnelSlug="my-funnel">
        <FunnelRouter screens={screens} initialScreen="welcome" />
      </FunnelProvider>
    </ThemeProvider>
  );
}

Components

Layout & containers

Screen · Rows · Columns · Carousel · Popup

Typography & media

Text · Image · Video · Chart · RawHTML

Quiz & options

Options · QuizSimple · QuizMultipleChoice · QuizEmoji · QuizImagePicker · QuizIcons · QuizCoverImages · Rating · PopupQuestion

Inputs

Input · DatePicker

Buttons & timer

Button · PulseButton · CountdownButton · OAuthButton · Timer · CheckoutButton

Auth

EmailForm · EmailOAuth · OAuthButtons

Loaders

Spinner · Loader · Processing

Paywall & checkout

PlanPickerSimple · PlanPickerComposite · TrialPricePicker · WalletButton · CookieConsent · DeeplinkHandoff · CheckoutFlow · PaymentForm

Engagement

Reviews · CustomerCarousel · FAQ

Routing

import { FunnelRouter, useRouter } from "@aperovn/funnel-sdk";

function NextButton() {
  const { goTo, current } = useRouter();
  return <button onClick={() => goTo("next-screen")}>Next</button>;
}

Flow & transition config is declarative — see FlowsConfig and TransitionsConfig types for the full surface.

Session tracking

Default adapter emits events to your analytics endpoint. Swap it via SessionProvider:

import { SessionProvider, DefaultSessionAdapter, type SessionAdapter } from "@aperovn/funnel-sdk";

const myAdapter: SessionAdapter = {
  init: async (opts) => { /* ... */ },
  track: async (event) => { /* send to your backend */ },
  end: async () => { /* ... */ },
};

<SessionProvider adapter={myAdapter}>
  {/* funnel */}
</SessionProvider>

Theme

Import the stylesheet once at app root:

import "@aperovn/funnel-sdk/theme";

Use ThemeProvider to switch schemes at runtime; tokens (colors, spacing, typography, motion, shadows, radius, zIndex) are exported for programmatic access.

import { ThemeProvider, useTheme } from "@aperovn/funnel-sdk";

function ThemeToggle() {
  const { scheme, setScheme } = useTheme();
  return <button onClick={() => setScheme(scheme === "light" ? "dark" : "light")}>Toggle</button>;
}

Animations

import { ScreenTransition, transitionPresets, useReducedMotion } from "@aperovn/funnel-sdk";

<ScreenTransition preset="slide-left" duration={300}>
  {/* screen content */}
</ScreenTransition>

Hooks: usePressAnimation, useHoverAnimation, useSwipe, useReducedMotion.

Bundle size

| Bundle | Size | |--------|------| | ESM | ~57 kB minified | | CJS | ~60 kB minified | | Theme CSS | ~26 kB | | Tokens CSS | ~6 kB |

Tree-shakeable — only imported components ship.

TypeScript

First-class TypeScript support. All component props, action types, theme tokens, and router config are typed.

License

Proprietary — © Apero Group. Contact the maintainer for licensing terms.