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

@gabvdl/ui

v0.19.0

Published

Gabriel Vidal's personal design system — tree-shakeable React components built on shadcn primitives. Flagship: a full-screen media viewer with zoom, pan, video and story mode.

Readme

@gabvdl/ui

Beta. 0.1.0 is the first coherent, tested, documented cut — the API is stabilizing. From 0.1.0 on, a breaking change bumps the minor, and a renamed prop keeps its old name as a deprecated alias for at least one minor. Pin ~0.1.0 if you want stability without missing fixes. 1.0.0 will be the first stable cut. See CHANGELOG.md for what shipped when.

Gabriel Vidal's personal design system — tree-shakeable React components built on shadcn primitives, reused across the homelab. Flagship: a full-screen image viewer with zoom, pan and swipe.

Source is mirrored at github.com/GabrielVidal1/design-system; the docs + live demo are at ui.gabvdl.xyz.

Install

npm install @gabvdl/ui

Use

import { ImageViewerProvider, ViewableImage } from '@gabvdl/ui'
import '@gabvdl/ui/styles.css'

export function Gallery({ urls }: { urls: string[] }) {
  return (
    <ImageViewerProvider>
      {urls.map((u) => (
        <ViewableImage key={u} src={u} />
      ))}
    </ImageViewerProvider>
  )
}

Peer deps: react >=18, react-dom >=18. Ships ESM + type declarations, and side-effect-free except the CSS entry points (styles.css, theme.css, image-viewer.css, virtual-list.css).

Search: FuzzyList and GlobalSearch

FuzzyList is a Fuse.js search box over a windowed VirtualList. Two things shape how it searches:

  • Quoting pins an exact match. A bare query fuzzy-matches; any "double-quoted" segment must appear as a literal, case-insensitive substring. They mix — parser "utils.ts" fuzzy-matches parser and then keeps only rows whose fields contain utils.ts. Both kinds of hit are <mark>-highlighted.
  • The search is debounced by debounce ms (default 400). The input stays instant; only the Fuse pass and the list re-render trail behind it, and a small spinner shows while they do. debounce={0} searches on every keystroke.

GlobalSearch is the Cmd-K palette built from those pieces — a Modal holding a FuzzyList. items may be an array or a loader, called the first time the palette opens, which is how you lazily pull a build-time search index:

<GlobalSearch
  searchKey="Ctrl+K"                    // "Mod+K" = ⌘ on Apple, Ctrl elsewhere · null = off
  items={() => fetch('/search-index.json').then((r) => r.json())}
  keys={[{ name: 'name', weight: 3 }, 'summary', 'props']}
  titleKey="name"
  descriptionKey="summary"
  badgeKey="kind"
  trigger="bar"                          // or "icon" (default) / "none" + controlled `open`
  onSelect={(entry) => navigate(entry.route)}
/>

Generating that index at build time

The docs app (apps/docs/plugins/search-index.ts) is the reference implementation: a Vite plugin that walks packages/ui/src with the TypeScript compiler API, and for every symbol re-exported from src/index.ts emits an entry — components, hooks, utilities, and one entry per prop (FuzzyList.debounce, with its type and TSDoc). It writes public/search-index.json on buildStart and regenerates on source changes in dev, so nothing is hand-maintained: add a component and it is searchable on the next build.

Publishing (maintainer)

Public npm releases ride on a version tag — see RELEASING.md at the repo root. Dev builds still go to the homelab's private verdaccio (browse it at registry.lab.gabvdl.xyz):

# from the homelab repo root, with the registry profile up:
./services/registry/publish.sh

Bump version in this package's package.json first — verdaccio rejects re-publishing an existing version.