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

fishing-tour

v2.0.2

Published

A library that makes developing feature tours simple, easy, and customizable.

Readme

Fishing-Tour

Overview:

Hello world! Fishing Tour is a small client side library that facilitates the creation of feature tours or tutorials. There are two objects in this library, Tour, and Tips. The Tour class is used to create a feature tour that prevents your users from using your site until they finishing going though the tour. The Tips class creates little icons near html elements of your choice and users can click on these icons. Upon clicking on an icon, a small card will open up and display a custom hint. The main difference between the Tour and Tips classes is that a user can ignore a feature tour implemented by Tips, but cannot ignore a feature tour implemented by the Tour class. Below are ways to implement both the Tour and the Tips classes. If you have any suggestions or if you find a bug, feel free to contact me at [email protected].

Tested only in Angular

Set Up

styles.css

@import '~../node_modules/fishing-tour/fishing-tour.css';

html file (sample.component.html)

<h1>Hello World</h1>

How to use Tips:

javascript file (sample.component.ts)

import { Component, OnInit, AfterViewInit } from '@angular/core';
import { Tips } from 'fishing-tour';

@Component({
  selector: 'app-sample',
  templateUrl: './sample.component.html',
  styleUrls: ['./sample.component.css']
})
export class SampleComponent implements OnInit, AfterViewInit {

  constructor() { }

  ngOnInit() { }

  ngAfterViewInit() {
    let tips = new Tips();
    tips.add({selector: "h1", header: "hi", info: "hello world!", x: "200px", y: "20px"});
    tips.start(0);
  }

}

Documentation for Tips

  • constructor - Creates a Tips feature tour object.
  • add - Adds a new tip with the parameters passed by the tipObject. The tipObject must be defined as below.
    • selector - A css query selector of the DOM element that a tip should be assigned to. This element will be forced to have the following css style: position: relative.
    • header - The header for tip.
    • info - The main text in the tip.
    • x - Determines how far left the tip icon and tip box is loacted relative to the selector DOM element.
    • y - Determines how far from the top the tip icon and tip box is loacted relative to the selector DOM element.
    • fn - (optional) - A function that is called when some one clicks the big button on the tip. This function should not return anything nor will any parameter be passed to it.
  • start(index) - Starts the feature tour. Ensure that this is called after the DOM has been loaded. The index is an integer that notes which tip to show when the feature tour starts. Zero corresponds to the first tip, one corresponds to the second, etc.

How to use Tour:

javascript file

import { Component, OnInit, AfterViewInit } from '@angular/core';
import { Tour } from 'fishing-tour';

@Component({
  selector: 'app-sample',
  templateUrl: './sample.component.html',
  styleUrls: ['./sample.component.css']
})
export class SampleComponent implements OnInit, AfterViewInit {

  constructor() { }

  ngOnInit() { }

  ngAfterViewInit() {
    let tips = new Tour();
    tips.add({selector: "h1", info: "hello world!", position: "bottom"});
    tips.start(0);
  }

}

Documentation for Tour

  • constructor - Creates a Tour object.
  • add - Adds a new tour step. The stepObject must have the following properties.
    • selector - A css query selector of the DOM element that a tip should be assigned to.
    • info - The message in a tour box.
    • position - The position of the tour box relative to its selector. The possible values are top, left, right, and bottom.
  • start(index) - Starts the feature tour. Ensure that the DOM loads before calling this method. The index indicates which tour step to start on.