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

@uniweb/icons

v0.1.0

Published

Icon library for Uniweb - lazily loaded SVG icons from popular icon sets

Readme

@uniweb/icons

Icon library for Uniweb sites. Provides lazily loaded SVG icons from popular icon sets.

Features

  • Local resolution: Faster than CDN for included icon families
  • Tree-shakeable: Import only the icons you use
  • CDN fallback: Automatically falls back to GitHub Pages CDN
  • Permissive licenses: All included icons use MIT, ISC, or similar licenses

Installation

pnpm add @uniweb/icons

Usage

With Uniweb Runtime

Icons are automatically available when using ![](lucide:home) syntax in markdown. The runtime fetches icons from the CDN by default.

For local resolution (faster, offline-capable), configure the runtime:

import { createLocalResolver } from '@uniweb/icons/resolver'

// In your site's initialization
uniweb.iconResolver = createLocalResolver()

Direct Icon Imports

For maximum tree-shaking, import icons directly:

import homeSvg from '@uniweb/icons/families/lu/home.js'
// homeSvg is the SVG string: '<svg xmlns="http://www.w3.org/2000/svg" ...>...</svg>'

Included Families (npm package)

These families are included in the npm package for local resolution:

| Family | Code | Icons | License | |--------|------|-------|---------| | Lucide | lu | 1,541 | ISC | | Heroicons v1 | hi | 460 | MIT | | Heroicons v2 | hi2 | 972 | MIT | | Feather | fi | 287 | MIT |

CDN-Only Families

These families are available via CDN but not included in the npm package (to reduce size):

| Family | Code | License | Notes | |--------|------|---------|-------| | Phosphor | pi | MIT | Large set (9k+ icons) | | Tabler | tb | MIT | Large set (5k+ icons) | | Bootstrap | bs | MIT | | | Material Design | md | Apache-2.0 | | | Ant Design | ai | MIT | | | Remix | ri | Apache-2.0 | | | Simple Icons | si | CC0-1.0 | Brand logos |

CDN

Icons are served from GitHub Pages:

https://uniweb.github.io/icons/{family}/{family}-{name}.svg

Example: lucide:homehttps://uniweb.github.io/icons/lu/lu-home.svg

Custom CDN

To use a different CDN:

# site.yml
icons:
  cdnUrl: https://your-cdn.com/icons

Licensing

This package redistributes icons from upstream projects. Each icon family retains its original license:

All included families use permissive licenses (MIT, ISC, Apache-2.0, CC0) that allow redistribution with attribution. See the licenses/ directory for full license texts.

Note: Some icon families available via CDN (Font Awesome, VS Code Icons, Game Icons) use CC BY licenses that require attribution. If you use these families, ensure proper attribution in your project.

Development

Converting Icons (for npm package)

pnpm install
pnpm convert           # Default families
pnpm convert:all       # All families

Building CDN

node scripts/build-cdn.js    # Build SVG files for CDN deployment

The GitHub Actions workflow automatically builds and deploys to GitHub Pages on tagged releases.

License

This package's code is MIT licensed. Icon assets retain their original licenses (see above).