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 🙏

© 2025 – Pkg Stats / Ryan Hefner

topping

v1.0.10

Published

topping is a javascript package for writing workflows/walkthroughs/enriched readme.

Readme

Topping

Topping is a JavaScript library for writing flows/walkthroughs/enriched readme.

Use case

  • Imagine a complex application, new joiners or team mates who started working on this application with zero knowledge might not know -

    • how application works?
    • what's the architecture behind app?
    • why it was built for ?..etc.
  • Isn’t it would be cool if there is an documentation in place with which helps user to understand better about the app.

  • This package which helps user to write walk through / tour about application.

  • Sample App with source code

  • example App --> Demo topping App

  • more info here

Installation

npm i -D topping

node node_modules\topping\initTopping

  • After executing above commands quarry.js file will be created under topping folder.

  • update the start function code snippet.

  • make sure to update your root html file (or) import node_modules\topping\toppingRelay.js file in dev mode only.

Launch Topping

npm run startToppings

or

node node_modules\topping\startToppings

List of available functions

  • launch(url, callback)
  • addScenario(label)
  • addStep(label)
  • fillInputById(id, value, delayInterval)
  • fillInputByClassName(className, idx = 0, value, delayInterval)
  • fillInputByTagName(tagName, idx = 0, value, delayInterval)
  • clickById(id)
  • clickByClassName(className, idx)
  • clickByTagName(tagName, idx)
  • setValueById(id, value)
  • setValueByClassName(className, idx, value)
  • setValueByTagName(tagName, idx, value)
  • setSelectedIndexById(id, index)
  • setSelectedIndexByClassName(className, idx, selectedIndex)
  • setSelectedIndexByTagName(tagName, idx, selectedIndex)
  • focusElementById(id)
  • focusElementByClassName(className, idx)
  • focusElementByTagName(tagName, idx)
  • scrollElementToViewById(id)
  • scrollElementToViewByClassName(className, idx)
  • scrollElementToViewByTagName(tagName, idx)
  • wait(interval)
  • popUpModal(header, content)
  • popUpTreeModal(header, content, treeSource)
  • flushModal()
  • createToolTipById(id, label, placement = 'top')
  • createToolTipByClassName(className, idx, label, placement = 'top')
  • createToolTipByTagName(tagName, idx, label, placement = 'top')
  • clearToolTips()
  • play()
  • finish()

sample quarry code snippet

const treeDataSource = {
  "name": "Sample WebApp",
  "children": [
    {
      "name": "Api Gateway",
      "children": [{
        "name": "Micro Service 1"
      }, {
        "name": "Micro Service 2"
      }, {
        "name": "Micro Service 3",
        "children": [{
          "name": "Mongo Db"
        }]
      }, {
        "name": "Micro Service 4"
      }]
    }]
};

const treeDataSource2 = {
  "name": "Sample WebApp 2",
  "children": [
    {
      "name": "Api Gateway",
      "children": [{
        "name": "Micro Service 3",
        "children": [{
          "name": "Mongo Db"
        }]
      }]
    }]
};

const modalSample = `Consulted he eagerness unfeeling deficient existence of. Calling nothing end fertile for venture way boy. Esteem spirit temper too say adieus who direct esteem. It esteems luckily mr or picture placing drawing no. Apartments frequently or motionless on reasonable projecting expression. Way mrs end gave tall walk fact bed.`;

function start() {
  topping.launch(
    'http://127.0.0.1:5502/demo.html', 
    function () {
      topping
      .addScenario(`Fill Form`)
        .addStep(`fill email`)
        .fillInputById(`exampleFormControlInput1`, '[email protected]', 50)
        .addStep(`select an option`)
        .wait(.25)
        .setSelectedIndexById('exampleFormControlSelect1', 3)
        .addStep(`select dropdown`)
        .wait(.1)
        .createToolTipByClassName(`dropdown-toggle`, 0, `Decisively surrounded all admiration and not you.`, `right`)
        .clickByClassName(`dropdown-toggle`, 0)
        .wait(.25)
        .clickByClassName(`dropdown-item`, 0)
        .wait(.1)
        .setSelectedIndexById(`exampleFormControlSelect2`, 2)
        .addStep(`fill text area`)
        .fillInputById(`exampleFormControlTextarea1`, 'Hand two was eat busy fail.', 5)
        .wait(1)
        .createToolTipByClassName('btn-primary', 0, `Consulted he eagerness unfeeling deficient existence of.`, 'top')
        .addStep(`click Submit`)
        .clickByClassName('btn-primary', 0)
        .wait(2)
        .clearToolTips()
        .popUpModal('test modal', modalSample)
        .addStep(`what's happening ?`)
        .wait(1)
        .popUpTreeModal(`what's Happening ?`, `Consulted he eagerness unfeeling deficient existence of.`, treeDataSource)
        .wait(3)
        .flushModal()
        .popUpTreeModal(`what's Happening ?`, `Consulted he eagerness unfeeling deficient existence of.`, treeDataSource2)
        .wait(3)
        .flushModal()
        .scrollElementToViewByClassName('btn-primary', 1)
        .wait(1)
        .addStep(`Finished 🙂`)
        .finish()
        .play();
      }
    );
  }