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

@prosdevlab/experience-sdk-plugins

v0.3.0

Published

Official plugins for Experience SDK

Readme

@prosdevlab/experience-sdk-plugins

Official plugins for Experience SDK.

Size: 12.7 KB gzipped (all plugins)

Included Plugins

Layout Plugins

Banner Plugin - Top/bottom notification bars with push-down support

Features:

  • Multiple buttons with variants (primary, secondary, link)
  • Responsive layout (desktop inline, mobile stack)
  • Top/bottom positioning with optional push-down
  • HTML sanitization for XSS protection
  • CSS variables for full theming

Modal Plugin - Overlay dialogs with forms and rich content

Features:

  • Multiple sizes (sm, md, lg, fullscreen, auto)
  • Mobile fullscreen for large modals
  • Hero images with max height
  • Animations (fade, slide-up, none)
  • Built-in form support with validation
  • Focus trap and keyboard support (Escape)
  • CSS variables for full theming

Inline Plugin - In-content experiences using CSS selectors

Features:

  • 5 insertion methods (replace, append, prepend, before, after)
  • Dismissal with persistence
  • Multi-instance support
  • HTML sanitization
  • Custom styling (className, style props)
  • CSS variables for theming

Display Condition Plugins

Exit Intent Plugin - Detect when users are leaving

Features:

  • Mouse movement tracking
  • Configurable sensitivity
  • Min time on page
  • Delay before triggering
  • Session persistence

Scroll Depth Plugin - Track scroll engagement

Features:

  • Multiple thresholds (25%, 50%, 75%, 100%)
  • Max scroll tracking
  • Velocity and direction tracking
  • Time-to-threshold metrics
  • Throttling and resize handling

Page Visits Plugin - Session and lifetime counters

Features:

  • Session-scoped visits (sessionStorage)
  • Lifetime visits (localStorage)
  • First-visit detection
  • DNT (Do Not Track) support
  • Expiration and cross-tab safety

Time Delay Plugin - Show after time elapsed

Features:

  • Configurable show delay
  • Auto-hide after duration
  • Pause when page hidden (Page Visibility API)
  • Timer management

Utility Plugins

Frequency Plugin - Impression tracking and capping

Features:

  • Session/day/week impression tracking
  • Automatic storage management
  • Manual impression recording
  • Reset capabilities

Debug Plugin - Logging and window events

Features:

  • Console logging with prefix
  • Window event emission
  • Automatic decision logging
  • Configurable logging levels

Quick Examples

Banner

import { createInstance, bannerPlugin } from '@prosdevlab/experience-sdk-plugins';

const sdk = createInstance();
sdk.use(bannerPlugin);

sdk.banner.show({
  id: 'welcome',
  type: 'banner',
  content: {
    message: 'Welcome! Get 20% off today.',
    buttons: [
      { text: 'Shop Now', url: '/shop', variant: 'primary' }
    ],
    position: 'top'
  }
});

Modal with Form

sdk.modal.show({
  id: 'newsletter',
  type: 'modal',
  content: {
    title: 'Stay Updated',
    message: 'Subscribe for exclusive offers.',
    size: 'sm',
    form: {
      fields: [
        { name: 'email', type: 'email', required: true }
      ],
      submitButton: { text: 'Subscribe', variant: 'primary' },
      successState: { 
        title: '✓ Subscribed!',
        message: 'Check your inbox.'
      }
    }
  }
});

Inline Experience

sdk.inline.show({
  id: 'promo',
  type: 'inline',
  content: {
    selector: '#sidebar',
    position: 'prepend',
    message: '<p><strong>Special Offer!</strong> Get 20% off with SAVE20.</p>',
    buttons: [
      { text: 'Shop Now', url: '/shop', variant: 'primary' }
    ],
    dismissable: true,
    persist: true
  }
});

Exit Intent

// Trigger modal on exit intent
sdk.on('trigger:exitIntent', () => {
  sdk.modal.show({
    id: 'exit-offer',
    content: {
      title: 'Wait! Before You Go...',
      message: 'Get 15% off your first order.',
      buttons: [
        { text: 'Claim Discount', variant: 'primary', url: '/checkout?code=EXIT15' }
      ]
    }
  });
});

Installation

npm install @prosdevlab/experience-sdk-plugins

Or use the main package which includes these plugins:

npm install @prosdevlab/experience-sdk

Usage

These plugins are automatically included when using @prosdevlab/experience-sdk. You only need this package if you want to use the plugins separately with a custom sdk-kit setup.

import { createInstance } from '@prosdevlab/experience-sdk';

// Plugins are already included and available
const experiences = createInstance({ debug: true });
experiences.register('banner', { ... });

Documentation

License

MIT