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

vite-icon-zen

v0.1.1-rc.0

Published

Generate favicons, apple-touch-icons, web manifest, and opengraph images from a single source icon

Readme

vite-icon-zen

Generate favicons, apple-touch-icons, web manifest, and opengraph images from a single source icon.

Drop in an icon.png and get all the icons you need for a modern web app, plus the correct HTML meta tags injected automatically.

Install

bun add -D vite-icon-zen sharp

Note: sharp (>= 0.32.0) is a required peer dependency — the plugin uses it for all image processing and will throw at startup if it isn't installed. You must install it yourself alongside vite-icon-zen.

Usage

// vite.config.ts
import { defineConfig } from 'vite';
import { iconZen } from 'vite-icon-zen';

export default defineConfig({
  plugins: [
    iconZen(),
  ],
});

Add an icon.png (512x512 or larger recommended) to your project root. That's it.

What Gets Generated

| Asset | Description | |-------|-------------| | /favicon.ico | 32x32 ICO file | | /apple-touch-icon.png | 180x180 PNG | | /icons/icon-{size}x{size}.png | PNGs at 16, 32, 48, 64, 96, 128, 192, 256, 384, 512 | | /icons/apple-touch-icon-{size}x{size}.png | PNGs at 120, 152, 167, 180 | | /site.webmanifest | Web app manifest with all icon references | | /opengraph-image.png | 1200x630 OG image (if opengraph option set) |

HTML Injection

The plugin automatically injects the correct <link> and <meta> tags into your HTML:

<link rel="icon" href="/favicon.ico" sizes="32x32">
<link rel="icon" href="/icons/icon-192x192.png" type="image/png" sizes="192x192">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="manifest" href="/site.webmanifest">
<meta name="theme-color" content="#000000">

Options

iconZen({
  // Path to source icon relative to project root (default: "icon.png")
  source: 'icon.png',

  // Path to opengraph image source (optional)
  opengraph: 'og-source.png',

  // Production URL for absolute OG meta tags
  url: 'https://myapp.com',

  // App name for manifest (default: directory name)
  name: 'My App',

  // Background color for manifest (default: "#000000")
  backgroundColor: '#ffffff',

  // Theme color for manifest and meta tag (default: "#000000")
  themeColor: '#3b82f6',
});

Development

During development, icons are generated on-the-fly when requested. No files are written to disk until you build.

License

MIT