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

@patternmode/briolette

v0.7.1

Published

A spinnable geodesic color sphere whose facets refine around each selection.

Readme

@patternmode/briolette

A spinnable geodesic color sphere. At rest its 80 facets span the whole color universe — hue around the equator, lightness pole to pole. Selecting a facet repaints the sphere with similar-but-distinct neighbors of that color, built directly in OKLab via @instruments/colorscope so spacing is perceptually even: hue rotates around the anchor's azimuth, lightness shifts along the pole axis into whatever headroom the anchor has, and chroma swings with distance. Grey and near-neutral anchors bloom into a wheel of tints, the far hemisphere glides toward the anchor's complement, and out-of-gamut neighbors are pulled back by reducing chroma only — so every facet stays a distinct, honest choice. Each further selection tightens the neighborhood, but never past a floor. Selecting the pinned facet again unsets the value.

Usage

import { BriolettePicker } from "@patternmode/briolette";
import "@patternmode/briolette/styles.css";

export function AccentColorField() {
  const [color, setColor] = useState<string | null>(null);

  return <BriolettePicker aria-label="Accent color" value={color} onChange={setColor} />;
}

Interaction

  • Drag (or arrow keys) to spin the sphere; it drifts slowly while idle.
  • Select a facet to choose its hex color and refine the sphere around it. The sphere glides so your selection ends up centered, facing the viewer.
  • Select the pinned facet again (or press Escape) to unset.
  • Enter selects the facet closest to the viewer.

Cut changes morph (the finer geometry grows out of the coarser one) and seam changes crossfade. Honors prefers-reduced-motion: idle drift, inertia, and morphs are disabled, leaving only direct manipulation.

API

| Prop | Type | Default | Description | | ------------- | --------------------------------------------- | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | | value | string \| null | — | Controlled hex color value. | | onChange | (value: string \| null) => void | — | Selection and unset callback. | | density | "coarse" \| "base" \| "fine" \| "brilliant" | "base" | Facet count: 20, 80, 180, or 320. Cut changes animate; seam width scales with the cut. | | maxDepth | number | BRIOLETTE_MAX_DEPTH | Deepest refinement level reachable by clicking near the anchor. Clamped to 1..BRIOLETTE_MAX_DEPTH; cap it low for a broader sphere. | | seamOpacity | number | 1 | Seam visibility, 0 (seamless gem) to 1. Crack-free at every opacity. | | seamColor | string | white | Seam color between facets. | | label | string | "Color" | Accessible name for the sphere stage. | | showValue | boolean | true | Shows the hex output beneath the sphere. | | size | number | 280 | Rendered sphere size in pixels. |

Geometry and palette helpers (buildBrioletteFaces, projectBrioletteFaces, buildBriolettePalette, brioletteUniverseColor, brioletteNeighborColor) are exported for custom renderers.