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

guild-glyph

v0.1.0

Published

Deterministic avatar glyphs for any team or app

Readme

guild-glyph

Deterministic avatar glyphs for any slug. No images, no server — pure SVG.

Same input → same glyph, always.

import { GuildGlyph } from "guild-glyph";

<GuildGlyph base="arctic-fox" />
<GuildGlyph base="arctic-fox" variant="main-catalog" />
<GuildGlyph base="arctic-fox" animate />

Install

npm install guild-glyph

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | base | string | — | Required. Slug — always the palette anchor. | | variant | string | undefined | Variant slug. Renders a visually related but distinct glyph (fg/accent swapped, different layer pool). | | size | number | 64 | Width and height in px. | | animate | boolean | false | Enables idle rotation + hover acceleration. Timing is unique per slug — no two glyphs animate in sync. Waves squiggle, lines march, dots pulse. Respects prefers-reduced-motion. | | color | string | — | Any valid CSS color (#hex, rgb(), hsl(), oklch(), named colors, …). Derives a full palette using OKLCH. Ignored if palette is also set. | | palette | Palette | — | Full palette override — bypasses hash-selection and color derivation entirely. | | className | string | — | Class name on the <svg> element. | | style | CSSProperties | — | Inline styles on the <svg> element. | | aria-label | string | auto | Defaults to "{base}" or "{base}/{variant}". |

Custom colors

// Derive a full palette from any CSS color
<GuildGlyph base="arctic-fox" color="#3ecfb0" />
<GuildGlyph base="arctic-fox" color="oklch(0.7 0.18 160)" />
<GuildGlyph base="arctic-fox" color="tomato" />

// Full manual palette
<GuildGlyph
  base="arctic-fox"
  palette={{ bg: "#111", fg: "#3ecfb0", accent: "#2dd4bf", dim: "#082e28" }}
/>

When color is provided, the library parses it (any valid CSS color string), converts to OKLCH, and derives fg, accent, bg, and dim automatically. Variant glyphs still apply the fg/accent swap so base and variant remain visually distinct.

How it works

Each glyph is composed from 2–3 shape layers (ring, polygon, cross, dots, brackets, lines, spokes, wave, grid), each driven by an independent RNG stream seeded from FNV-1a hash of the slug. Streams never bleed into each other — this produces thousands of distinct, stable outcomes.

Base and variant glyphs under the same slug share a palette family (12 built-in palettes), but variant glyphs swap fg/accent and draw from a different layer pool so they read as related but distinct.

Animations are shape-aware: waves squiggle via SMIL path morphing, lines march via stroke-dashoffset, dots pulse with staggered phases. Rings, polygons, and spokes rotate. Timing is always derived from the hash, so no two glyphs animate in sync.

Utilities

import {
  resolveTeamGlyph,
  resolveAppGlyph,
  stringHash,
  PALETTE,
  paletteFromColor,
  cssToOklch,
  oklchToHex,
} from "guild-glyph";

// Raw shape + palette data without rendering
const { shapes, palette } = resolveTeamGlyph("arctic-fox", 64);
const { shapes, palette } = resolveAppGlyph("arctic-fox", "main-catalog", 64);

// FNV-1a hash
const hash = stringHash("arctic-fox"); // → 3012847291

// Derive a palette from any CSS color string
const palette = paletteFromColor("#3ecfb0"); // → { bg, fg, accent, dim }
const palette = paletteFromColor("oklch(0.7 0.18 160)");

// OKLCH conversion
const [L, C, H] = cssToOklch("tomato");   // → [0.63, 0.26, 29.2]
const hex = oklchToHex(0.75, 0.18, 160);  // → "#3ecfb0"

Requirements

  • React ≥ 17
  • No runtime dependencies

License

MIT © kd