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

ultimate-spinner

v1.0.3

Published

A Svelte component for creating a beautiful and customizable spinner.

Readme

Ultimate Spinner

PR Checks

A customizable, animated spinner component for Svelte applications.

Demo

I put up a demo app for my son to use to make custom spinners for his schoolwork. You can try it out here.

Installation

npm install ultimate-spinner
# or
pnpm add ultimate-spinner

Usage

<script>
  import { Spinner } from 'ultimate-spinner';

  const items = ['Heads', 'Tails'];

  function handleValueChange({ title, value }) {
    console.log(`Spinner "${title}" landed on:`, value);
  }
</script>

<Spinner
  title="Coin Flip"
  items={items}
  spinDuration={3000}
  onValueChange={handleValueChange}
/>

Props

  • items: string[] – labels in the wheel. You can pass any number of items (including 1–2); the component adjusts its layout accordingly.
  • title: string – optional title shown in the header above the wheel.
  • spinDuration: number – duration of the spin animation in milliseconds.
  • onValueChange: ({ title: string; value: string | null }) => void – called when the spin finishes with the item that landed at the top.
  • onDelete: () => void – optional callback for the delete button in the header.
  • onConfigure: () => void – optional callback for the configure button in the header.
  • onDuplicate: () => void – optional callback for the duplicate button in the header.

Behavior

  • Uses a CSS‑driven “wheel of fortune” layout with smooth spin animation.
  • Determines the winning value based on the segment that visibly lands at the top of the spinner.
  • Handles small item counts (1–2–3 items) with special layouts so the wheel still looks good.
  • Continues to produce a result even if the spinner is not currently visible in the viewport (e.g. off‑screen), by falling back to a random item.
  • Click the wheel or press Enter while focused to trigger a spin (keyboard accessible).

License

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

Attribution Requirements

While this project is open source and free to use, we kindly request that you:

  1. Keep the copyright notice and license in any copies or substantial portions of the Software
  2. Provide attribution by linking back to this repository when using the library in your projects
  3. If you modify the library, indicate that you've made changes and maintain the original attribution

Author

Created by "Skaman" Samuel C Tyler