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 🙏

© 2024 – Pkg Stats / Ryan Hefner

logix-tour

v0.3.4

Published

Guide users through your most important features

Downloads

5

Readme

logiX-tour

A user onboarding library written in pure JavaScript

Currently Supports:

  • React
  • Theoretically this should work with any require library

Quick Start

 npm install --save logix-tour

Set an indicator by adding a class of {your-prefix}-tour (i.e. my-app-tour)

Set pop up text by adding a [data-tour-text] attribute

Run tour.runMe(prefix) (i.e. tour.runMe('my-app'))


Notes

  • Indicators are attached to the container, this can have undesired side effects if the container size and position are not set

Usage In React

  import tour from 'logix-tour';

  class App extends Component {
    componentDidMount() {
      // SET THE "TAP" ANIMATION TO TRUE
      tour.setConfig({ tap: true });
      // CALL "RUN ME" WITH YOUR DESIRED PREFIX
      tour.runMe('mal')
    }
    render() {
      return (
        <div id="My_Awesome_List">
          <ul
            className="mal-tour"
            data-tour-text="Awesome pop up text here"
          >
            <li>Waffles</li>
            <li>Pancakes</li>
            <li>Butter</li>
            <li>Syrup</li>
          </ul>
        </div>
      )
    }
  }

Methods

runMe(prefix, title)

Use this to initialize your onboarding

  • prefix

this will run the tour on all elements with a class name of {prefix}-tour

  • title

this will set a title for the tour group you are about to run

killTour(prefix)

This will remove all indicators for a particular Group

  • prefix

this will remove all indicators that where initialized with the same prefix

setConfig(config_object)

Use this method to set global configs

Current config options

  • tap
  • dismiss
  import tour from 'logix-tour';

  const config = {
    tap: true, // runs the "tap" animation, defaults to false
    dismiss: function () { console.log('dismiss it'); }, // set a callback to dismiss pop ups
  }

  tour.setConfig(config);

COMING UP

  • Angular support
  • More config options;