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

tiptour

v2.1.0

Published

Smooth, performant tooltip library with advanced movement algorithms

Readme

TipTour

A smooth, interactive tooltip library that follows your cursor with customizable behavior and optional AI integration.

Demo License TypeScript

Features

  • Smooth mouse tracking with configurable friction and smoothing radius
  • Auto-focus input field for instant interaction
  • Dynamic arrow navigation that points to elements
  • Hardware accelerated animations using CSS transforms
  • Smart positioning to prevent off-screen rendering
  • Full keyboard navigation support
  • Optional AI integration for interactive responses

Installation

npm install tiptour

Basic Usage

Add TipTour to any webpage with just a few lines:

<!DOCTYPE html>
<html>
<head>
  <!-- Import TipTour styles -->
  <link rel="stylesheet" href="node_modules/tiptour/dist/style.css">
</head>
<body>
  <h1>My Landing Page</h1>
  <button id="cta-button">Get Started</button>

  <!-- Import and initialize TipTour -->
  <script type="module">
    import TipTour from 'tiptour';
    
    // Create tooltip instance
    const tooltip = new TipTour({
      smoothRadius: 30,    // Start following after 30px movement
      friction: 0.92,      // Smoothing factor (0-1)
      hideDelay: 5000      // Hide after 5 seconds
    });
    
    // Optional: Set custom content
    tooltip.setContent('Welcome! Move your mouse around.');
    
    // Optional: Add input field for user interaction
    tooltip.addInput('Type something...', async (value) => {
      console.log('User typed:', value);
      return `You said: ${value}`;
    });
    
    // Optional: Add arrow pointing to elements
    tooltip.addArrow(['#cta-button']);
  </script>
</body>
</html>

Configuration Options

const tooltip = new TipTour({
  smoothRadius: 30,        // Pixels of movement before tooltip follows
  friction: 0.92,          // Smoothing factor (0 = instant, 1 = never moves)
  hideDelay: 5000,         // Milliseconds before auto-hide
  offset: { x: 20, y: 20 } // Offset from cursor position
});

API Methods

Core Methods

// Set tooltip content
tooltip.setContent('<p>Custom HTML content</p>');

// Show/hide tooltip
tooltip.show();
tooltip.hide();

// Update configuration
tooltip.setOptions({ friction: 0.85 });

Interactive Features

// Add input field with handler
tooltip.addInput('placeholder text', async (value) => {
  // Process user input
  return 'response';
});

// Add arrow pointing to elements
tooltip.addArrow(['#element1', '#element2']);

// Remove arrow
tooltip.removeArrow();

Styling

Override default styles with CSS:

.tiptour-tooltip {
  background: #2c3e50;
  color: white;
  border-radius: 8px;
  padding: 12px;
}

.tiptour-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

React Example

import { useEffect } from 'react';
import TipTour from 'tiptour';
import 'tiptour/styles';

function App() {
  useEffect(() => {
    const tooltip = new TipTour({
      smoothRadius: 30,
      friction: 0.92
    });
    
    tooltip.setContent('Interactive tooltip active!');
    
    return () => tooltip.destroy();
  }, []);
  
  return <div>Your app content</div>;
}

Development

# Clone the repository
git clone https://github.com/milind-soni/tip-tour.git
cd tip-tour

# Install dependencies
npm install

# Start development server
npm run dev

# Build for production
npm run build

Browser Support

  • Chrome 90+
  • Firefox 88+
  • Safari 14+
  • Edge 90+

License

MIT

Author

Milind Soni - @milind-soni

Project Link: https://github.com/milind-soni/tip-tour