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

glow-card

v1.0.1

Published

Cursor-tracking glow border cards. Framework-agnostic Web Component. Zero dependencies, <1KB gzipped.

Readme

Features

  • 6 glow variants — border, background, spotlight, rainbow, glow-line, pulse
  • Framework-agnostic — Web Component works with React, Vue, Svelte, Astro, or plain HTML
  • Card groups — proximity glow across sibling cards (the "Stripe dashboard" effect)
  • CSS Custom Properties — full control over colors, size, blur, intensity, radius
  • Zero dependencies — just a <script> tag or npm install
  • Tiny — ~1.8KB gzipped (core), ~2.1KB (React wrapper incl. core)

Install

npm install glow-card

Quick Start

Vanilla HTML

<script type="module">
  import { register } from 'glow-card';
  register();
</script>

<glow-card>
  <div class="your-card">Hello World</div>
</glow-card>

React

import { GlowCard } from 'glow-card/react';

function App() {
  return (
    <GlowCard color="#6366f1" variant="border">
      <div className="your-card">Hello World</div>
    </GlowCard>
  );
}

Variants

<glow-card variant="border">...</glow-card>      <!-- Default: glowing border -->
<glow-card variant="background">...</glow-card>   <!-- Subtle background illumination -->
<glow-card variant="spotlight">...</glow-card>     <!-- Focused spotlight beam -->
<glow-card variant="rainbow">...</glow-card>       <!-- Rainbow gradient border -->
<glow-card variant="glow-line">...</glow-card>     <!-- Rotating glow line -->
<glow-card variant="pulse">...</glow-card>         <!-- Pulsating glow -->

Card Groups

Wrap cards in <glow-card-group> for proximity-based glow across all cards:

<glow-card-group>
  <glow-card><div class="card">Card A</div></glow-card>
  <glow-card><div class="card">Card B</div></glow-card>
  <glow-card><div class="card">Card C</div></glow-card>
</glow-card-group>

Customization

All visual properties are configurable via CSS Custom Properties:

glow-card {
  --glow-color: #6366f1;        /* Glow color */
  --glow-size: 200px;           /* Glow radius */
  --glow-blur: 40px;            /* Blur amount */
  --glow-border-width: 1px;     /* Border thickness */
  --glow-intensity: 1;          /* Opacity multiplier (0-1) */
  --glow-radius: 12px;          /* Card border radius */
  --glow-transition: opacity 0.3s ease;  /* Fade transition */
}

API Reference

Web Component

| Attribute | Type | Default | Description | |-----------|------|---------|-------------| | variant | string | "border" | Glow variant: border, background, spotlight, rainbow, glow-line, pulse | | disabled | boolean | false | Disable the glow effect |

React — <GlowCard>

<GlowCard
  variant="border"        // Glow variant
  color="#6366f1"          // Glow color
  size={200}               // Glow radius in px
  blur={40}                // Blur in px
  borderWidth={1}          // Border thickness in px
  intensity={1}            // Opacity multiplier (0-1)
  radius={12}              // Border radius in px
  disabled={false}         // Disable glow effect
  className="my-card"      // Additional CSS class
  style={{ padding: 24 }}  // Additional inline styles
/>

React — <GlowCardGroup>

import { GlowCard, GlowCardGroup } from 'glow-card/react';

<GlowCardGroup className="grid" style={{ gap: '1.5rem' }}>
  <GlowCard color="#6366f1">...</GlowCard>
  <GlowCard color="#6366f1">...</GlowCard>
</GlowCardGroup>

| Prop | Type | Description | |------|------|-------------| | className | string | Additional CSS class | | style | CSSProperties | Additional inline styles | | children | ReactNode | GlowCard components |

Browser Support

Works in all modern browsers (Chrome 111+, Firefox 108+, Safari 15.4+, Edge 111+). The glow-line and rainbow variants use CSS atan2() trigonometric functions which require these minimum versions.

License

MIT