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

metadata-gen

v0.2.1

Published

Generate metadata images and favicon sets from your project's existing assets and config

Readme

metadata-gen

Generate metadata images and a complete favicon set from your project's existing assets and config. No API keys, no external services — everything runs locally.

What it does:

  • Scans your project for colors, logo, title, and tagline
  • Generates 3 OG image options (1200x630) using different layouts
  • Generates a full favicon set (ICO, SVG with light/dark mode, PNGs, webmanifest)
  • Opens a local preview where you can refine and download

Quick start

npx metadata-gen init
npx metadata-gen

That's it. Two commands, under 90 seconds.

How it works

Step 1 — Init

npx metadata-gen init

Scans your project root and writes metadata.config.json:

metadata-gen init

Scanning project...

✓ Title:       "Fluid Functionalism"                         (package.json .name)
✓ Tagline:     "Refined UI components with satisfying hover."  (package.json .description)
✓ Background:  #0f0f0f                        (globals.css --background)
✓ Foreground:  #ffffff                        (globals.css --foreground)
✓ Accent:rgb(0, 0, 0)                        (tailwind.config.js)
✓ Logo:        ./assets/logo.svg

Confirm? Press Enter to accept, or "n" to cancel.

Skip confirmation with --yes:

npx metadata-gen init --yes

Step 2 — Generate and preview

npx metadata-gen

Renders all variants, starts a local server, and opens your browser:

✓ Read metadata.config.json
✓ Rendering metadata image variants...
✓ Rendering favicon set...
✓ Server running at http://localhost:3000
✓ Opening browser...

The preview page shows:

  • 3 metadata image options side by side — each with a refine panel (colors, text, logo toggle) and a download button
  • Favicon set at multiple sizes in light and dark mode — with a single "Download full set" button

Downloads write directly to public/metadata/ in your repo.

Flags

npx metadata-gen --no-open        # skip auto browser open
npx metadata-gen --output <dir>   # override output directory

What it scans

All scanning is static and read-only — no project code is executed.

| Field | Sources (priority order) | |-------|------------------------| | Title | package.json name, README.md heading, folder name | | Tagline | package.json description | | Colors | CSS custom properties (--background, --foreground, --accent), Tailwind v4 @theme blocks, Tailwind v3 config, design token JSON files | | Logo | logo.svg in root, public/, assets/, src/assets/ (SVG preferred, PNG fallback) |

If no logo is found, a lettermark (first letter of title) is generated for favicons.

Output

Everything lands in public/metadata/:

public/metadata/
├── og.png                    # chosen metadata image (1200x630)
├── favicon.ico               # 16+32+48 multi-size ICO
├── favicon.svg               # single SVG with light/dark mode
├── favicon-16x16.png
├── favicon-32x32.png
├── favicon-96x96.png
├── apple-touch-icon.png      # 180x180
├── android-chrome-192x192.png
├── android-chrome-512x512.png
└── site.webmanifest

Config

metadata.config.json is written by init and lives at your project root:

{
  "title": "Fluid Functionalism",
  "tagline": "Refined UI components with satisfying hover.",
  "colors": {
    "background": "#0f0f0f",
    "foreground": "#ffffff",
    "accent": "#000000"
  },
  "logo": "./assets/logo.svg",
  "faviconSrc": "./assets/logo.svg",
  "outputDir": "public/metadata",
  "font": "InterVariable"
}

All fields are optional with sensible defaults. Edit directly or re-run init.

Requirements

  • Node.js 18+

License

MIT