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

glimm

v0.1.3

Published

WebGL sweep transitions for the web — framework-agnostic core with React and Next.js adapters.

Readme

glimm

WebGL sweep transitions for the web. A colour band sweeps across the viewport, your page swaps underneath it at the midpoint, then the band fades out — the iOS "name drop" feel, as a page transition.

  • Framework-agnostic core — drive the shader directly from vanilla JS.
  • React adapter<GlimmProvider> + useGlimm().
  • Next.js adapter<TransitionLink>, useTransitionRouter(), auto link interception.
  • Zero runtime dependencies. WebGL only — no CSS, no assets.
  • Respects prefers-reduced-motion and degrades gracefully when WebGL is unavailable.

Install

npm install glimm

react and next are optional peer dependencies — install whichever adapter you use. The core entry point needs neither.

Quick start (Next.js, App Router)

// app/layout.tsx
import { GlimmProvider, InterceptLinks } from 'glimm/next'

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html lang="en">
      <body>
        <GlimmProvider palette="prism">
          <InterceptLinks />
          {children}
        </GlimmProvider>
      </body>
    </html>
  )
}

<InterceptLinks /> runs every same-origin link click through a sweep. Opt a link out with data-glimm-skip.

Per-navigation control

'use client'
import { TransitionLink, useTransitionRouter } from 'glimm/next'

// Declarative — a drop-in <Link> replacement:
<TransitionLink href="/about" sweep={{ palette: 'berry', direction: 'rtl' }}>
  About
</TransitionLink>

// Programmatic — a drop-in useRouter():
const router = useTransitionRouter()
await save(form)
router.push('/dashboard', { palette: 'ember' })

React (without Next.js)

import { GlimmProvider, useGlimm } from 'glimm/react'

function MyButton() {
  const { sweep } = useGlimm()
  return <button onClick={() => sweep(() => doNavigation())}>Go</button>
}

sweep(navigate, options?) plays the band, awaits your navigate callback at the midpoint, and returns a { midpoint, done, cancel } handle.

Vanilla / framework-agnostic core

import { createShader, playSweep } from 'glimm'

const canvas = document.querySelector('canvas')!
const ctrl = createShader({ canvas, /* palette, bandTight, direction */ })

playSweep(ctrl, {
  palette: 'citrus',
  onMidpoint: () => swapPageContent(),
  onComplete: () => ctrl.destroy(),
})

Alternate looks: createMeshShader (vertex-displaced mesh) and createNamedropShader (radial bulge reveal).

Sweep options

| Option | Default | Notes | | ------------- | -------- | ----- | | sweepMs | 1100 | ms for the band to cross the viewport | | outroMs | 700 | ms for the post-traversal fade-out | | midpoint | 0.5 | 0–1 progress point where onMidpoint fires | | palette | prism | preset name or a custom Palette | | direction | ltr | ltr | rtl | ttb | btt | | easing | easeOutQuart | preset name or an (p) => number fn | | bandTight | — | band sharpness | | peakAlpha | 1 | caps the band's peak opacity | | brightness | 1 | 0–1.5, multiplies band RGB (dim it on dark backgrounds) | | waveAmount | 1 | 0–2, edge wave displacement | | rippleAmount| 1 | 0–2, vertical ripple texture | | waveSpeed | 1 | 0–3, multiplies time-based motion | | swellAmount | 0.8 | 0–1, depth swell | | onMidpoint | — | fires when the band reaches midpoint — swap pages here | | onComplete | — | fires when the outro fade finishes |

Built-in palettes: prism, berry, lagoon, citrus, azure, ember. Build your own with accentPair, accentChain, or shuffleAccentPalette.

Built-in easings: linear, easeOutQuart, easeOutCubic, easeInCubic, easeInOutCubic, easeOutExpo, easeInOutQuint, snap, ease, back.

Entry points

| Import | Use for | | --------------- | ------- | | glimm | Framework-agnostic core: shader factories, playSweep, palettes, easings, colour math. | | glimm/react | <GlimmProvider> and useGlimm() for any React app. | | glimm/next | Everything in glimm/react plus <TransitionLink>, useTransitionRouter(), and interceptLinks / <InterceptLinks>. |

Import the provider and hooks from a single entry point per app so they share one React context.

License

Proprietary — all rights reserved. This package is published for installation only; it is not licensed for redistribution, modification, or reuse.