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

react-tourlight

v0.1.1

Published

Beautiful onboarding tours & feature highlights for React. Zero dependencies.

Readme


The Problem

React Joyride — the most popular tour library — is broken on React 19. It uses deprecated APIs (unmountComponentAtNode, unstable_renderSubtreeIntoContainer) and hasn't been updated in 9+ months. Shepherd.js requires a paid commercial license. Intro.js is GPL. Driver.js has no React bindings. Every developer evaluating tour libraries in 2025–2026 hit the same wall: nothing modern, free, and React-native exists.

react-tourlight fills that gap.

Install

npm install react-tourlight @floating-ui/react-dom

Quickstart

import { SpotlightProvider, SpotlightTour, useSpotlight } from 'react-tourlight'
import 'react-tourlight/styles.css'

function App() {
  return (
    <SpotlightProvider>
      <SpotlightTour
        id="onboarding"
        steps={[
          {
            target: '#search-input',
            title: 'Search',
            content: 'Find anything instantly with our search.',
            placement: 'bottom',
          },
          {
            target: '[data-tour="sidebar"]',
            title: 'Navigation',
            content: 'Browse your projects and teams here.',
            placement: 'right',
          },
        ]}
      />
      <Dashboard />
    </SpotlightProvider>
  )
}

function Dashboard() {
  const { start } = useSpotlight()
  return <button onClick={() => start('onboarding')}>Start Tour</button>
}

Why react-tourlight

| | What you get | |---|---| | Beautiful by default | Modern, polished tooltips with smooth CSS clip-path spotlight transitions. Light, dark, and custom themes out of the box. | | Accessible | WCAG 2.1 AA compliant. Focus trap, keyboard navigation, ARIA roles, screen reader announcements. | | Tiny | ~5KB gzipped core (vs ~30KB for Joyride). Floating UI is an optional peer dependency. | | MIT License | Free for commercial use. No GPL restrictions, no paid tiers. |

Features

  • CSS clip-path spotlight — GPU-accelerated, perfect in dark mode (no mix-blend-mode hacks)
  • Floating UI positioning — smart flip, shift, and overflow handling
  • Full keyboard navigation — Arrow keys, Escape, Tab focus trap
  • Async element waitingMutationObserver-based, handles lazy-loaded content
  • Light / Dark / Custom themes — auto-detect OS preference or bring your own
  • Responsive & mobile-friendly — works on any screen size
  • React 19 compatible — built for modern React, no deprecated APIs
  • i18n support — customize all button labels and step text
  • Single-element highlights — one-off "What's new" callouts without a full tour
  • Custom tooltips — full render prop API for complete control

Comparison

| Feature | react-tourlight | React Joyride | Shepherd.js | Driver.js | Intro.js | |---|---|---|---|---|---| | React 19 | Yes | Broken | Wrapper | No React | No React | | License | MIT | MIT | Paid commercial | MIT | GPL / Paid | | Bundle size | ~5KB | ~30KB | ~25KB | ~5KB | ~12KB | | React-first | Yes | Yes | No (vanilla JS) | No (vanilla JS) | No (vanilla JS) | | Dark mode | clip-path | mix-blend breaks | SVG | Yes | Partial | | Accessibility | WCAG 2.1 AA | Limited | Limited | Limited | Poor | | Focus trap | Yes | No | No | No | No | | Zero deps | Yes | No | No | Yes | No |

Documentation

Visit react-tourlight.vercel.app for the full docs — API reference, interactive examples, theming guide, accessibility details, and recipes for Next.js, Remix, and shadcn/ui.

Contributing

We welcome contributions! See CONTRIBUTING.md for development setup, project structure, and PR workflow.

License

MIT