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 🙏

© 2025 – Pkg Stats / Ryan Hefner

open-icon

v1.1.2

Published

Open Icon

Readme

Open Icon

A comprehensive, tree-shakable icon library with Vue 3 support.

Features

  • 🌳 Tree-shakable: Only bundle the icons you use
  • 🎯 TypeScript Support: Full type safety
  • 🚀 Vue 3 Integration: First-class Vue support with composables and plugins
  • 📦 Multiple Formats: ESM, CommonJS, and IIFE builds
  • 🎨 Customizable: CSS variables for colors and sizes
  • 📱 Scalable: Vector-based SVG icons

Installation

npm install open-icon
# or
pnpm add open-icon
# or
yarn add open-icon

Quick Start

Basic Usage (Legacy)

import { getIcon, Icons } from 'open-icon';

// This imports ALL icons (not recommended)
const iconSvg = await getIcon(Icons.ADD_M);

Tree-Shakable Usage (Recommended)

// Import only what you need
import { IconAddM, IconSearchM } from 'open-icon/icons';

// Use directly
const addIcon = IconAddM;

Vue 3 Integration

// main.ts
import { createApp } from 'vue';
import { IconRegistryPlugin } from 'open-icon/vue';
import { IconAddM, IconSearchM, IconHeartM } from 'open-icon/icons';

const app = createApp(App);

app.use(IconRegistryPlugin, {
  icons: {
    'add-m': IconAddM,
    'search-m': IconSearchM,
    'heart-m': IconHeartM,
  },
  aliases: {
    'plus': 'add-m',
    'search': 'search-m',
    'heart': 'heart-m',
  }
});
<!-- Icon.vue -->
<template>
  <div class="icon" v-html="iconContent" />
</template>

<script setup>
import { computed } from 'vue';
import { useIconRegistry } from 'open-icon/vue';

const props = defineProps({
  name: String,
});

const { getIcon } = useIconRegistry();
const iconContent = computed(() => getIcon(props.name));
</script>

Documentation

Available Icons

The library includes 900+ icons. View all available icons:

import { Icons } from 'open-icon';
console.log(Object.values(Icons));

Styling

Icons use currentColor by default and scale with font-size:

.icon {
  color: blue;
  font-size: 24px;
}

CSS Variables

:root {
  --icon-stroke-width: 5;
  --icon-stroke-color: currentColor;
  --icon-fill: transparent;
}

Bundle Size

  • Legacy approach (getIcon): ~264KB (includes all icons)
  • Tree-shakable approach: ~1-2KB per icon

Contributing

Contributions are welcome! Please read our contributing guidelines.

License

MIT © Sil van Diepen