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

@rgglez/svelte-notoriousbutton

v1.0.2

Published

Svelte button component with CSS-only visual effects: sweep, glow, shake, pulse

Readme

svelte-notoriousbutton

License GitHub all releases GitHub issues GitHub commit activity GitHub release GitHub stars GitHub forks

svelte-notoriousbutton is a Svelte button component with CSS-only visual effects.

Installation

npm install @rgglez/svelte-notoriousbutton

Usage

Svelte 3 / 4

<script>
  import NotoriousButton from '@rgglez/svelte-notoriousbutton/svelte4';
</script>

<NotoriousButton label="Click me" effect="sweep" />

Svelte 5

Bare import (default export points to Svelte 5):

<script>
  import NotoriousButton from '@rgglez/svelte-notoriousbutton';
</script>

<NotoriousButton label="Click me" effect="glow" />

Or explicit subpath:

<script>
  import NotoriousButton from '@rgglez/svelte-notoriousbutton/svelte5';
</script>

<NotoriousButton label="Click me" effect="glow" />

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | label | string | 'Click me' | Button text | | effect | 'sweep' \| 'glow' \| 'shake' \| 'pulse' \| 'border-sweep' \| '' | '' | Visual effect | | trigger | 'hover' \| 'auto' | 'hover' | Fire effect on hover or continuously | | class | string | '' | Additional CSS classes | | style | string | '' | Inline styles |

Effects

| Value | Description | |-------|-------------| | sweep | Glossy diagonal shine that slides across on hover | | glow | Radial ring and brightness highlight on hover | | shake | Vibration animation triggered on hover | | pulse | Continuous breathing scale animation; pauses on hover | | border-sweep | Conic-gradient light sweeps around the button border |

All effects are implemented in pure CSS — no JavaScript at runtime.

Examples

<!-- Default -->
<NotoriousButton label="Save" />

<!-- Sweep shine -->
<NotoriousButton label="Submit" effect="sweep" />

<!-- Glow ring -->
<NotoriousButton label="Confirm" effect="glow" />

<!-- Shake on hover -->
<NotoriousButton label="Delete" effect="shake" style="background: #dc2626;" />

<!-- Continuous pulse -->
<NotoriousButton label="New" effect="pulse" />

<!-- Custom class and style -->
<NotoriousButton label="Custom" effect="sweep" class="my-class" style="border-radius: 999px;" />

CSS customization

Import the shared stylesheet directly to override variables:

import '@rgglez/svelte-notoriousbutton/notorious-button.css';

The .notorious-btn class is applied to every button. Effect classes follow the pattern .effect-{name}.

Development

Prerequisites

  • Node.js
  • npm
  • git

Makefile targets

| Target | Description | |--------|-------------| | make tags | List all git tags sorted by version | | make patch | Bump the patch version, commit, tag, and push to origin | | make publish | Publish the current version to npm | | make release | Run patch then publish in one step |

Typical release flow:

# Review changes, then:
make release

This will:

  1. Increment the patch version in package.json (e.g. 1.0.01.0.1)
  2. Commit package.json with message chore: bump version to X.Y.Z
  3. Create git tag vX.Y.Z
  4. Push branch and tag to origin
  5. Run npm publish --access public

To publish without bumping the version:

make publish

To inspect existing tags:

make tags

Example

You can try the example (Svelte 5) in the example directory. You can also view a live example.

License

Copyright 2026 Rodolfo González González.

Licensed under Apache v2.0 license. Please read the LICENSE file.