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

@stepshots/tour

v0.2.0

Published

Framework-agnostic live guided-tour player for Stepshots recordings — spotlight the next element on your real app and light the way

Downloads

301

Readme

@stepshots/tour

Framework-agnostic live guided-tour player for Stepshots recordings. It "lights the way" on your real app — spotlighting the next element to click and anchoring a callout to it — so a recorded flow becomes an interactive walkthrough a user performs on their own account, not just a passive screenshot demo.

  • No framework, no runtime dependency. Operates on the rendered DOM, so it works on React, Vue, Svelte, Dioxus/WASM, or plain HTML. Renders in a closed-styled shadow DOM so host CSS can't leak in.
  • Survives SPA navigation & hydration. Each step waits (MutationObserver) for its target to mount, then anchors — targets that appear after a route change or a loading gate are handled.
  • Advances on real interaction. Capture-phase listeners are additive (no preventDefault), so the user's click/typing both advances the tour and does its normal thing.

The player needs only a track (plain JSON). Stepshots produces tracks from a recording (record once → screenshot demo and live tour); you can also hand-author one.

Install

bun add @stepshots/tour
# or: npm install @stepshots/tour

Programmatic use

import { startTour } from "@stepshots/tour";

const handle = startTour(
  {
    steps: [
      { selector: '[data-testid="new-project"]', title: "Create a project",
        body: "Start here.", advance: { type: "click" } },
      { selector: '#project-name', title: "Name it",
        body: "Type a name.", advance: { type: "input" } },
    ],
  },
  { theme: { accent: "#6366f1" }, onComplete: (why) => console.log(why) },
);
// handle.stop() to end early

<script> embed (zero-config)

Load the IIFE build, register your tracks, and call autoBoot. It starts the tour named by ?tour=<key> and keeps it alive across SPA navigations.

<script>window.__STEPSHOTS_TOURS = { "create-project": { steps: [/* ... */] } };</script>
<script src="https://unpkg.com/@stepshots/tour"></script>
<script>StepshotsTour.autoBoot();</script>

Opening …/dashboard?tour=create-project then runs the tour.

First-run auto-start

Offer a tour automatically the first time a user reaches a given state — e.g. an empty "no projects yet" screen. Render a marker element only in that state; autoBoot watches for it, shows a consent card, and starts the tour if the user accepts. Either way the offer is remembered (localStorage), so it never auto-starts again.

StepshotsTour.autoBoot({
  firstRun: {
    key: "create-project",
    marker: '[data-stepshots-firstrun="create-project"]',
    intro: { title: "Welcome 👋", body: "Want a quick tour of creating your first project?" },
  },
});

Omit intro to start the tour outright instead of asking first.

Show-me triggers (FAQ / help center)

Any element carrying data-stepshots-tour-trigger="<key>" starts that track on click — turn FAQ answers, help menus, and empty states into launchers that show instead of tell:

<details>
  <summary>How do I create a project?</summary>
  <button data-stepshots-tour-trigger="create-project">Show me</button>
</details>

Bound once by autoBoot via event delegation, so triggers rendered later (SPA views, accordions) work without re-binding. A click always starts fresh at step 0.

When the flow starts on a different page, add data-stepshots-tour-url: the click stashes the tour and navigates there; the destination page's autoBoot starts it on arrival (both pages need the registry + autoBoot):

<button
  data-stepshots-tour-trigger="invite-teammate"
  data-stepshots-tour-url="/settings/team"
>Show me</button>

See examples/faq-show-me.html in the repo for a complete page.

API

  • startTour(track, options?) → { stop() } — render a track now.
  • autoBoot(options?) → handle | null — URL-param-driven entry for the embed; tracks defaults to window.__STEPSHOTS_TOURS. Extra options: param (query param selecting the track, default "tour"), storageKey (sessionStorage key that keeps the run alive across SPA navigations), firstRun (auto-start on a marker, see above).
  • showIntro(intro, options, onChoice) — render the consent card standalone; onChoice(accepted) tells you the user's pick.
  • Options: theme (accent, dim, cardBg, cardFg, cardMuted), skipLabel, waitTimeoutMs, inputSettleMs (quiet time before an input step advances, default 1200ms), onComplete(reason), onEvent(event) (lifecycle analytics: start / step / done / skip / lost), resumeKey (sessionStorage key so a full page reload resumes mid-tour), badge ({ label, href } attribution link in the card footer).