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

@yanesteves/react-tour-guide

v1.0.0

Published

Lightweight, customizable onboarding tour for React with light/dark/auto themes

Readme

react-tour-guide

npm version license GitHub

A lightweight, customizable onboarding tour library for React with light/dark/auto theme support.

Repository: github.com/yanesteves/react-tour-guide

Features

  • 🎨 Light, Dark & Auto themes — follows system prefers-color-scheme
  • 🎯 Smart positioning — auto-detects best tooltip placement
  • ⌨️ Keyboard navigation — Arrow keys + Escape
  • 💾 LocalStorage persistence — shows tour only on first visit
  • 🔌 Hook APIuseTour() for full programmatic control
  • 📦 Zero dependencies — only React as peer dependency
  • 🪶 Tiny bundle — ~4KB gzipped

Install

npm install react-tour-guide

Quick Start

import { TourProvider, useTour } from 'react-tour-guide';

const steps = [
  {
    id: 'welcome',
    title: 'Welcome! 👋',
    content: 'Let us show you around.',
  },
  {
    id: 'search',
    title: 'Search',
    content: 'Find anything here.',
    target: '[data-tour="search"]',
    placement: 'bottom',
  },
  {
    id: 'done',
    title: 'All Set! 🚀',
    content: 'You are ready to go!',
  },
];

function App() {
  return (
    <TourProvider steps={steps} storageKey="my-app-tour">
      <MyApp />
    </TourProvider>
  );
}

function MyApp() {
  const { start } = useTour();
  return (
    <div>
      <input data-tour="search" placeholder="Search..." />
      <button onClick={() => start()}>Replay Tour</button>
    </div>
  );
}

Color Modes

// Auto — follows OS preference (default)
<TourProvider steps={steps} colorMode="auto" />

// Always dark
<TourProvider steps={steps} colorMode="dark" />

// Always light
<TourProvider steps={steps} colorMode="light" />

Custom Theme

<TourProvider
  steps={steps}
  theme={{
    highlightColor: '#e11d48',
    primaryColor: '#e11d48',
    borderRadius: 16,
  }}
/>

Custom Labels (i18n)

<TourProvider
  steps={steps}
  labels={{
    next: 'Próximo',
    prev: 'Voltar',
    skip: 'Pular',
    finish: 'Começar!',
  }}
/>

useTour() Hook

const {
  isActive,     // boolean — tour is running
  currentStep,  // number — current step index
  step,         // TourStep | null — current step object
  totalSteps,   // number
  colorMode,    // 'light' | 'dark'
  start,        // (fromStep?: number) => void
  next,         // () => void
  prev,         // () => void
  goTo,         // (index: number) => void
  end,          // () => void
  reset,        // () => void — clears storage
} = useTour();

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | steps | TourStep[] | required | Array of tour steps | | storageKey | string | — | LocalStorage key for persistence | | colorMode | 'light' \| 'dark' \| 'auto' | 'auto' | Theme mode | | autoStart | boolean | true | Auto-start on mount | | theme | TourTheme | — | Custom theme overrides | | labels | object | English | Button label overrides | | keyboard | boolean | true | Enable keyboard nav | | closeOnOverlayClick | boolean | true | Click overlay to close | | showCloseButton | boolean | true | Show × button | | showDots | boolean | true | Show step indicators | | highlightPadding | number | 8 | Padding around target (px) | | tooltipOffset | number | 16 | Gap between tooltip and target (px) | | animationDuration | number | 300 | Animation duration (ms) | | zIndex | number | 10000 | Base z-index | | onComplete | () => void | — | Called when tour ends | | onStepChange | (index, step) => void | — | Called on step change |

License

MIT — yanesteves

Contributing

Contributions are welcome! Please open an issue or submit a pull request at github.com/yanesteves/react-tour-guide.