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

tourguide-widget

v1.0.14

Published

Embeddable onboarding tour widget

Readme

TourGuide Widget

Embeddable onboarding tour widget with Three.js 3D avatars and advanced analytics.

🚀 Features

  • Lightweight: ~50KB gzipped
  • Framework Agnostic: Works with any JavaScript framework or vanilla JS
  • 3D Avatars: Optional Three.js animated characters
  • Smart Positioning: Automatic tooltip positioning with collision detection
  • Resume Support: Automatically saves progress to localStorage
  • Analytics: Built-in event tracking and session management
  • Responsive: Mobile-friendly design
  • Accessible: ARIA labels and keyboard navigation
  • Customizable: Theme support, custom CSS, and JavaScript hooks

📦 Installation

Option 1: CDN (Script Tag)

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/tourguide-widget.js"></script>
<script>
  TourGuide.init({
    tourId: 'your_tour_id',
    apiKey: 'your_api_key'
  });
</script>

Option 2: NPM

npm install @tourguide/widget
import TourGuide from '@tourguide/widget';
import '@tourguide/widget/dist/styles.css';

TourGuide.init({
  tourId: 'your_tour_id',
  apiKey: 'your_api_key'
});

Option 3: React

import { useEffect } from 'react';
import TourGuide from '@tourguide/widget';
import '@tourguide/widget/dist/styles.css';

function App() {
  useEffect(() => {
    TourGuide.init({
      tourId: 'your_tour_id',
      apiKey: 'your_api_key',
      autoStart: true
    });

    return () => {
      TourGuide.destroy();
    };
  }, []);

  return <div>Your App</div>;
}

🎯 API Reference

TourGuide.init(config)

Initialize the tour widget.

Parameters:

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | tourId | string | Yes | Your tour ID from the dashboard | | apiKey | string | Yes | Your API key | | autoStart | boolean | No | Auto-start the tour (default: true) | | theme | 'light' \| 'dark' \| 'auto' | No | Theme (default: 'light') | | onComplete | function | No | Callback when tour completes | | onSkip | function | No | Callback when tour is skipped | | onStepChange | function | No | Callback when step changes | | debug | boolean | No | Enable debug logging |

Example:

TourGuide.init({
  tourId: 'tour_abc123',
  apiKey: 'pk_live_xyz789',
  autoStart: false,
  theme: 'dark',
  onComplete: () => {
    console.log('Tour completed!');
  },
  onSkip: () => {
    console.log('Tour skipped');
  },
  onStepChange: (step) => {
    console.log('Current step:', step);
  }
});

TourGuide.start()

Manually start the tour.

TourGuide.start();

TourGuide.next()

Go to the next step.

TourGuide.next();

TourGuide.back()

Go to the previous step.

TourGuide.back();

TourGuide.skip()

Skip the tour.

TourGuide.skip();

TourGuide.restart()

Restart the tour from the beginning.

TourGuide.restart();

TourGuide.destroy()

Destroy the tour instance and clean up.

TourGuide.destroy();

🎨 Customization

Custom Styling

Override default styles by targeting the CSS classes:

.tourguide-tooltip-inner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tourguide-btn-primary {
  background: #your-brand-color;
}

Custom Theme

TourGuide.init({
  tourId: 'your_tour_id',
  apiKey: 'your_api_key',
  theme: 'dark' // or 'light', 'auto'
});

3D Avatar

Enable 3D avatars in your tour configuration from the dashboard.

📊 Analytics

The widget automatically tracks:

  • Session starts
  • Step views and completions
  • Time spent per step
  • Skip and abandonment rates
  • Device and browser information
  • User interactions

All analytics are sent to your TourGuide dashboard in real-time.

🔒 Browser Support

  • Chrome 90+
  • Firefox 88+
  • Safari 14+
  • Edge 90+
  • Mobile browsers (iOS Safari, Chrome Mobile)

🛠️ Development

Build

npm run build

Development Server

npm run dev

Type Checking

npm run type-check

📝 License

MIT

🤝 Contributing

This is part of the HNG Internship Stage 8 project.

📧 Support

For issues or questions, please contact the team or create an issue in the repository.# Mee