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

sigil-gen

v0.2.1

Published

![Sigil Banner](.github/assets/banner.png)

Readme

Sigil

Sigil Banner

Deterministic, beautiful avatar generation from any name. Five distinct visual styles — all derived purely from a hash of the input string. No random state, no external services, no images to host.

npm: sigil-core · sigil-gen · sigil-react

Styles

| Style | Preview | Description | | --- | --- | --- | | Grain | | Film-grain texture via SVG noise, earthy palettes | | Faces | | Generative abstract faces — eyes, brows, nose, mouth | | Terminal | | CRT scanlines, phosphor glow, monospace prompts | | Pixel | | Custom 5×5 pixel font, retro gaming palettes | | Brutalist | | Knockout stencil — initials punched through color |

Quick Start

SVG string (universal JS)

bun add sigil-gen
import { avatar } from 'sigil-gen';

const svg = avatar('Balazs Otakomaiya', { style: 'grain', size: 80 });
// → SVG string ready to inject into DOM or save to file

React component

bun add sigil-react
import { Avatar } from 'sigil-react';

<Avatar name="Balazs Otakomaiya" style="terminal" size={48} />

Core only (build your own renderer)

bun add sigil-core
import { resolve, grainStyle } from 'sigil-core';

// Use the registry
const spec = resolve('Alice Chen', 'grain');

// Or import individual styles for tree-shaking
const spec2 = grainStyle('Alice Chen');

Core is the source of truth. Each style is a pure function: (name: string) → StyleSpec. The spec is a platform-agnostic description of what to draw. Renderers (SVG, future Flutter) are thin translation layers.

API

avatar(name, options?)

Main entry point from sigil-gen.

| Param | Type | Default | Description | | --------------- | --------- | --------- | ---------------------------------------------------------- | | name | string | — | Name to generate avatar for | | options.style | StyleId | 'grain' | One of: grain, faces, terminal, pixel, brutalist | | options.size | number | 80 | Output size in pixels |

Returns an SVG string.

<Avatar /> (React)

| Prop | Type | Default | Description | | ----------- | --------- | --------- | ------------------------------ | | name | string | — | Name to generate avatar for | | style | StyleId | 'grain' | Avatar style | | size | number | 80 | Size in pixels | | className | string | — | CSS class for the wrapper span |

Development

# Install dependencies
bun install

# Run all tests
bun run test

# Run gallery dev server
cd examples/gallery && bun run dev

# Lint
bun run lint

Versioning & releasing

# Bump all packages (patch / minor / major / explicit)
bun run version patch     # 0.2.0 → 0.2.1
bun run version minor     # 0.2.0 → 0.3.0
bun run version 1.0.0     # explicit version

This bumps all three package.json files, commits as v{version}, and creates a git tag. Then:

git push && git push --tags

Create a GitHub Release from the tag to trigger the npm publish workflow.

Monorepo structure

sigil/
├── packages/
│   ├── core/          # Platform-agnostic logic (TypeScript)
│   ├── svg/           # SVG string renderer
│   └── react/         # React component
├── site/              # Landing page (Vite + React)
├── examples/
│   └── gallery/       # Interactive gallery (Bun server)
├── biome.json
└── tsconfig.base.json

Adding a new style

  1. Define the spec interface in packages/core/src/types.ts
  2. Add palettes to packages/core/src/palettes.ts
  3. Create packages/core/src/styles/newstyle.ts — pure function returning the spec
  4. Register in packages/core/src/styles/index.ts
  5. Create packages/svg/src/renderers/newstyle.ts — SVG string builder
  6. Add to gallery
  7. Write tests

License

MIT