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

abbr-title-tap

v1.0.2

Published

A drop-in replacement for <abbr title='...'> tag tap behavior on mobile devices, simulating native desktop hover tooltip effect.

Readme

abbr-title-tap

This tiny package drop-in brings native-like <abbr title="..."> hover behavior from desktop browsers to mobile. It displays the title text near the abbr tag on tap, and hides it when tapping elsewhere.

More Info: abbr-title-tap

Package Status

Quality Gate Status Technical Debt npm bundle size npm minzip size License: MIT

Installation

CDN (Browser)

Add this in your index.html head tag. This makes it work as soon as your page loads.

<!-- From unpkg -->
<script src="https://unpkg.com/abbr-title-tap"></script>
<link rel="stylesheet" href="https://unpkg.com/abbr-title-tap/styles.min.css" />

Programmatic Usage

For programmatic usage install it via npm:

npm install abbr-title-tap

If not run vial HTML, then import the package code and styles like this.

import 'abbr-title-tap/styles.css';
import 'abbr-title-tap';

Alternatively, the following will do the same as the script tag above in HTML. CSS should be imported as well. Note, either way, it runs a singleton so that just a single TapDetector class instance is run.

import 'abbr-title-tap/styles.css';

import { Init } from 'abbr-title-tap';

new Init();

Advanced

This is the manual initialization. This is not anymore a singleton, so ensure you do not create multiple redundant TapDetector instances.

import { AbbrTapHandler, TapDetector } from 'abbr-title-tap';

new TapDetector(document, 'abbr', new AbbrTapHandler());

Formally you could listen to a tap event on any selector you want and provide your own custom tap handler. See the TapDetector, ATapHandler and AbbrTapHandler classes JSDoc hoverable blocks for more info and dig in the source.

You could also instantiate multiple TapDetector instances for handling different HTML selectors with a different handlers (not tested actually).

Development

Running Tests

  • Automated (Playwright): npm run test:e2e will run test from tests/e2e folder. Used for unit/integration tests;
  • Manual acceptance testing: npm run run:test:manual will start the server on localhost:3000 serving the html from tests/manual/index.html and scripts from tests/.builds. Used for manual acceptance testing. The script rebuilds the engaged dependencies to refresh imported files on each run.

Maintenance

The package is written in TypeScript with the informative JSDoc blocks available on hover for public interface (e.g. in VS Code) for comfortable programmatic usage. The code is carefully crafted with TDD allowing simple extension. The project is production-ready and actively maintained.

Contributions

Filling issues, questions in Discussions are all welcome.

License

This project is licensed under the MIT License. See the LICENSE file for details.