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

pkicon

v1.1.3

Published

Lightweight SVG icon web component

Readme

pkicon

A lightweight Web Components icon library. Drop SVG icons into any HTML page with a single custom tag — no frameworks, no build steps, no external requests.


Features

  • Inline SVG rendering — icons live in your DOM, not behind a network call
  • Works anywhere — plain HTML, React, Vue, Angular, or whatever you're building with
  • 200+ icons out of the box
  • Fully customizable via attributes
  • Zero dependencies

Installation

npm install pkicon

CDN

<script type="module" src="https://cdn.jsdelivr.net/npm/pkicon/dist/index.js"></script>

Usage

Import once, use anywhere:

<script type="module">
  import 'pkicon';
</script>

Then drop icons into your markup:

<pk-icon name="cross"></pk-icon>
<pk-icon name="check"></pk-icon>

Attributes

| Attribute | Type | Default | Description | |------------------|-----------------------------------|----------------|------------------------------------| | name | string | — | Icon name (required) | | size | number | 24 | Width and height in pixels | | color | string (keyword or hex) | currentColor | Stroke color | | fill | boolean (true / false) | false | Fill the icon with the stroke color| | stroke-width | number | 2 | Stroke thickness in pixels | | stroke-linecap | round / square / butt | round | Shape of line endings | | stroke-linejoin| round / miter / bevel | round | Shape of line corners | | opacity | number (0 to 1) | 1 | Icon transparency | | rotate | number (degrees) | 0 | Rotation angle | | flip | horizontal / vertical | — | Mirror the icon |


Examples

<!-- Basic -->
<pk-icon name="check"></pk-icon>

<!-- Size and color -->
<pk-icon name="heart" size="32" color="red"></pk-icon>

<!-- Filled icon -->
<pk-icon name="star" color="gold" fill="true"></pk-icon>

<!-- Custom stroke -->
<pk-icon name="circle" stroke-width="1" stroke-linecap="square"></pk-icon>

<!-- Opacity -->
<pk-icon name="bell" opacity="0.5"></pk-icon>

<!-- Rotate -->
<pk-icon name="arrow-up" rotate="90"></pk-icon>

<!-- Flip -->
<pk-icon name="arrow-right" flip="horizontal"></pk-icon>

<!-- Combined -->
<pk-icon name="star" color="gold" fill="true" size="48" opacity="0.8" rotate="45"></pk-icon>

Available Icons

200+ icons across 15 categories — arrows, navigation, communication, files, media, user, security, alerts, actions, tools, commerce, weather, travel, and more.

Full icon list: pkicon icons


Requirements

Works in all modern browsers. Always provide the name attribute — without it, nothing renders.


Roadmap

  • ~~Size and color props~~ ✓
  • ~~CDN distribution~~ ✓
  • Icon preview site
  • Angular and React wrapper packages

License

MIT


Author

saifu-r