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

sofia-tooltips

v1.0.12

Published

Elegant jQuery & Tailwind 4 tooltip library made by Sofia and the Monarch

Readme

Sofia Tooltips ✨

Elegant, smooth, and beautiful tooltip library for jQuery + Tailwind 4
Crafted with love by Sofia and The Monarch 👑
Oh yeah, 2025 and we use jQuery!? What are you gonna do about it? Tell your Dad?!

npm version npm downloads license


✨ Features

  • Lightweight — Tiny, fast, and beautiful
  • 🎨 Elegant animations — Fade in, subtle movement, arrow positioning
  • 🎯 Positioning controltop, bottom, left, right
  • 🖊️ Rich content support — Plain text or HTML tooltips
  • 🖱️ Trigger options — Hover or click
  • ⚙️ Attribute-based customisation — Fade speed, movement, max-width
  • 📦 Easy to install and use anywhere!

🚀 Installation

npm install sofia-tooltips

🧩 Usage

Import the library:

import $ from 'jquery';
import initSofiaTooltip from 'sofia-tooltips';

initSofiaTooltip($);

Add tooltips to your elements:

<button data-tooltip="Hello World!" data-tooltip-position="top">
  Hover Me
</button>

Optional attributes:

| Attribute | Description | Example | |--------------------------|--------------------------------------------|----------------------------------| | data-tooltip | Tooltip text | data-tooltip="Save changes" | | data-tooltip-position | top, bottom, left, right | data-tooltip-position="bottom"| | data-tooltip-trigger | hover or click | data-tooltip-trigger="click" | | data-tooltip-fade | Fade duration in ms | data-tooltip-fade="300" | | data-tooltip-move | Movement offset in px | data-tooltip-move="8" | | data-tooltip-html | Enable HTML content | data-tooltip-html="true" | | data-tooltip-maxwidth | Max width of the tooltip | data-tooltip-maxwidth="200px" |


🎨 Styling

Sofia Tooltips uses Tailwind CSS classes for elegant, pre-defined styling.

If you're using Tailwind, everything will look beautiful out of the box!

If you're not using Tailwind, the tooltip will still function perfectly — you can easily add your own styles targeting the #sofia-tooltip element and its children.


💡 Example

<div data-tooltip="<strong>Bold</strong> and <em>italic</em> text!"
     data-tooltip-html="true"
     data-tooltip-position="right"
     data-tooltip-maxwidth="300px">
  Hover Me!
</div>

🛠️ Development

Clone the repository and install dependencies:

git clone https://github.com/warmwhisky/sofia-tooltips.git
cd sofia-tooltips
npm install

Publish updates:

npm version patch
npm publish --access public

📝 License

MIT — use freely and spread beauty in your projects! 🌹


🌸 About

Sofia Tooltips is a handcrafted tooltip library built by Sofia and The Monarch — for projects that deserve elegance without bloat. ✨

"Your UI deserves to feel like royalty."

Oh yeah, 2025? And we use jQuery!? What are you gonna do about it? Tell your Dad?!