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

mursa-guide

v1.0.1

Published

A lightweight React tour/guide library for creating interactive product tours

Readme

Mursa Guide

A lightweight, customizable React tour/guide library for creating interactive product tours and onboarding experiences.

Features

  • Spotlight Effect - Highlights target elements with a dark overlay
  • Smart Positioning - Automatically positions tooltips for optimal viewing (8 positions + auto)
  • Multiple Highlights - Highlight multiple elements simultaneously
  • Cross-Page Tours - Navigate across different routes during a tour
  • Smooth Animations - Beautiful transitions between steps
  • Click Control - Option to disable clicks on highlighted elements
  • Custom Actions - Execute custom functions on navigation
  • Fully Customizable - Custom button labels, callbacks, and positioning

Installation

npm install mursa-guide

or

yarn add mursa-guide

Quick Start

import { ReactGuide } from 'mursa-guide'
import { useState } from 'react'

const steps = [
  {
    step: 1,
    id: 'welcome-button',
    title: 'Welcome!',
    content: 'Click here to get started with our app.'
  },
  {
    step: 2,
    id: 'feature-section',
    title: 'Features',
    content: 'Explore all the amazing features we offer.'
  }
]

function App() {
  const [isOpen, setIsOpen] = useState(false)

  return (
    <>
      <button onClick={() => setIsOpen(true)}>Start Tour</button>

      <ReactGuide
        steps={steps}
        isOpen={isOpen}
        onComplete={() => setIsOpen(false)}
        onSkip={() => setIsOpen(false)}
      />
    </>
  )
}

Step Configuration

Each step can have the following properties:

| Property | Type | Required | Description | |----------|------|----------|-------------| | step | number | Yes | Step order number | | id | string | No* | Target element ID | | className | string | No* | Target element class name | | targets | array | No* | Array of multiple targets [{ id, className }] | | title | string | No | Tooltip title | | content | string | Yes | Tooltip content/description | | position | string | No | Tooltip position (see positions below) | | path | string | No | Route path for cross-page tours | | nextPath | string | No | Path to navigate when clicking Next | | onNext | function | No | Custom function to run on Next click | | nextLabel | string | No | Custom label for Next button |

*At least one of id, className, or targets is required.

Tooltip Positions

The position property supports:

  • 'auto' (default) - Automatically determines best position
  • 'top' - Above the target, centered
  • 'bottom' - Below the target, centered
  • 'left' - Left of the target, centered
  • 'right' - Right of the target, centered
  • 'top-left' - Above the target, aligned left
  • 'top-right' - Above the target, aligned right
  • 'bottom-left' - Below the target, aligned left
  • 'bottom-right' - Below the target, aligned right

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | steps | array | [] | Array of step configurations | | isOpen | boolean | false | Whether the tour is active | | isClickDisabled | boolean | false | Disable clicks on highlighted elements | | onComplete | function | - | Called when tour completes | | onSkip | function | - | Called when tour is skipped | | onStepChange | function | - | Called on step change (stepNumber, path) | | onNavigate | function | - | Called for page navigation (path) |

Advanced Examples

Multiple Highlights

Highlight multiple elements at once:

const steps = [
  {
    step: 1,
    targets: [
      { id: 'header' },
      { id: 'sidebar' }
    ],
    title: 'Navigation',
    content: 'These are the main navigation areas.'
  }
]

Cross-Page Tours

Create tours that span multiple pages:

import { useNavigate } from 'react-router-dom'

function App() {
  const navigate = useNavigate()

  const steps = [
    {
      step: 1,
      path: '/',
      id: 'home-feature',
      content: 'Welcome to home page!'
    },
    {
      step: 2,
      path: '/about',
      id: 'about-section',
      content: 'Now we are on the about page!'
    }
  ]

  return (
    <ReactGuide
      steps={steps}
      isOpen={isOpen}
      onNavigate={(path) => navigate(path)}
      onComplete={() => setIsOpen(false)}
    />
  )
}

Custom Next Button Actions

Execute custom code when clicking Next:

const steps = [
  {
    step: 1,
    id: 'signup-form',
    content: 'Fill out this form',
    nextLabel: 'Submit & Continue',
    onNext: () => {
      // Submit form, track analytics, etc.
      console.log('Form submitted!')
    }
  }
]

Disable Clicking on Highlighted Elements

Prevent users from interacting with highlighted elements:

<ReactGuide
  steps={steps}
  isOpen={isOpen}
  isClickDisabled={true}
  onComplete={() => setIsOpen(false)}
/>

Force Specific Position

Override automatic positioning:

const steps = [
  {
    step: 1,
    id: 'bottom-element',
    content: 'This tooltip will appear on top',
    position: 'top'
  }
]

Styling

The component comes with built-in styles. The tooltip uses a clean, modern design with:

  • White background with rounded corners
  • Subtle shadow for depth
  • Blue accent color for buttons and highlights
  • Smooth animations and transitions

Browser Support

Mursa Guide works in all modern browsers:

  • Chrome
  • Firefox
  • Safari
  • Edge

Requirements

  • React >= 16.8.0 (hooks support)
  • React DOM >= 16.8.0

License

MIT License - see LICENSE for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.