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

tipsterjs

v0.0.6

Published

Beautiful, flexible, and easy-to-use **tooltips for Svelte**. Create reusable tooltip styles, customize colors, borders, and positions — all with a tiny footprint ✨

Readme

🧠 Tipster

Beautiful, flexible, and easy-to-use tooltips for Svelte. Create reusable tooltip styles, customize colors, borders, and positions — all with a tiny footprint ✨


🚀 Features

  • 🎨 Customizable background, color, border, font, and offset
  • 🪄 createTipster() to define reusable tooltip presets
  • ⚡ Simple use:tooltip directive for quick usage
  • 📍 Smart positioning (top, bottom, left, right)
  • 🧩 Built with Svelte’s reactivity and clean architecture

📦 Installation

npm install tipsterjs
# or
yarn add tipsterjs
# or
pnpm add tipsterjs

💡 Quick Example

<script>
	import { createTipster, tooltip } from 'tipsterjs';

	const redTooltip = createTipster({
		backgroundColor: 'red',
		color: 'white',
		borderColor: 'darkred',
		borderWidth: '2px',
		fontSize: '14px',
		position: 'top',
		offset: 30
	});
</script>

<h1>Tipster Demo</h1>
<p>
	Visit
	<a
		use:redTooltip={{ offset: 5 }}
		title="Custom reusable tooltip"
		href="https://svelte.dev/docs/kit"
	>
		svelte.dev/docs/kit
	</a>
	to read the documentation
</p>

<p>
	Or try a quick inline tooltip:
	<a
		use:tooltip={{ backgroundColor: 'blue', color: 'white', position: 'bottom' }}
		title="Dynamic tooltip powered by Tipster"
	>
		hover me
	</a>
</p>

⚙️ API

use:tooltip

Attach a tooltip directly to any element.

Props:

| Prop | Type | Default | Description | | ----------------- | ---------------------------------------- | ------------- | ---------------------------- | | backgroundColor | string | #333 | Tooltip background color | | color | string | #fff | Text color | | borderColor | string | transparent | Border color | | borderWidth | string | 0 | Border thickness | | fontSize | string | 12px | Text size | | position | 'top' \| 'bottom' \| 'left' \| 'right' | bottom | Tooltip position | | offset | number | 12 | Distance from target element | | delay | number | 100 | Delay before showing tooltip |


createTipster(defaults)

Create a reusable tooltip directive with shared defaults.

const myTooltip = createTipster({
	backgroundColor: '#222',
	color: '#fff',
	position: 'top'
});

Then use it anywhere:

<a use:myTooltip={{ offset: 10 }} title="Hello!">Hover me</a>

🧠 How It Works

Tipster:

  1. Reads the element’s title attribute
  2. Creates a Svelte tooltip component dynamically
  3. Tracks mouse movement & viewport resizing
  4. Cleans up everything on unmount

Lightweight, no dependencies, and works seamlessly in any Svelte project 💪

🤝 Contributing

Got an idea? Found a bug? PRs and issues are always welcome 💙

git clone https://github.com/mostafa-kheibary/Tipster
cd Tipster
pnpm install
pnpm dev

📜 License

MIT — do whatever you want, just don’t remove the credit 🙃