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

make-tooltips

v0.1.6

Published

module for creating flexible tooltips

Readme

Creating flexible tooltip

  • npm i make-tooltips

Default config

config = {
  where: 'bottom',
  message: ''
  position: 'absolute',
  isArrow: true,
  style: {
    position: 'position: relative',
    minHeight: '30px',
    padding: 'padding: 10px',
    boxSizing: 'box-sizing: border-box',
    borderRadius: 'border-radius: 10px',
    background: 'background: white', 
    color: 'color: black',
    fontSize: 'font-size: 11px',
    lineHeight: 'line-height: 16px',
    textAlign: 'text-align: center',
    fontFamily: 'font-family: arial'
  },
  arrowStyle: {
    position: 'position: absolute',
    background: 'background: inherit',
    size: '10',
    zIndex: 'z-index: -1',
    transform: 'transform: rotate(45deg)'
  }
}

where - on what side of element tooltip will be render

can be:

  • 'left'
  • 'top'
  • 'right'
  • 'bottom'

message - message what you want write in tooltip

position - the default is absolute if the element is fixed - the tooltip will be fixed too.

isArrow - flag what mean is arrow will exist with tooltip

style - styles for the tooltip. You can change values what there is in default config, or expand with your custom styles. The format is key of existing or new style and value is simple CSS style. See above

arrowStyle - that what in style description, but this change arrow styles


Using

const tooltip = new Tooltip(HTMLElement, config)

where

  • HTMLElement is element in relation to which tooltip will be created
  • config is object like default config

Example

const tooltip = new Tooltip(button_1, { message: 'hi dude from 1 button', where: 'top', style: { background: 'background: red', minWidth: 'min-width: 136px' }, arrowStyle: { border: 'border: 2px solid green' } });

You can see examples in example folder