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

create-react-icon-package

v1.1.0

Published

SVG-based React components

Downloads

4

Readme

Create React Icon Package

Create your own customizable SVG-based React icon package with create-react-icon-package. This package allows you to easily generate a custom SVG-based React icon package tailored to your needs, streamlining the process of creating, organizing, and distributing your own icon set for use in your React applications.

Table of Contents

  1. Prerequisites
  2. Installation
  3. Usage
  4. Customizing Your Icon Set
  5. Semantic Versioning and Publishing with GitHub Actions
  6. Setting up NPM_TOKEN and GITHUB_TOKEN
  7. Using Semantic Release for Automatic Versioning and Publishing
  8. Contributing

Prerequisites

Before using this package, ensure you have:

  • A basic understanding of React
  • Familiarity with npm and SVG icons
  • Node.js and npm installed on your system

Installation

To install the create-react-icon-package, run the following command:

npm install create-react-icon-package

Usage

After installation, use the following command to generate a new React icon package:

npx create-react-icon-package my-icon-package

This command will create a new folder called my-icon-package with the necessary files and configurations to start building your custom icon package.

Customizing Your Icon Set

Inside the my-icon-package folder, you'll find a folder named icons. Place your SVG icons within this folder, then run the following command to build your React icon components:

npm run build

This command will generate React components for each SVG file within the icons folder and compile them into the dist directory.

Semantic Versioning and Publishing with GitHub Actions

The generated React icon package is configured to use Semantic Release and GitHub Actions for automatic versioning and publishing to npm. To set this up, follow these steps:

  1. Push your icon package to a new GitHub repository.
  2. Create an npm account and obtain an npm access token.
  3. Add the NPM_TOKEN and GITHUB_TOKEN as secrets to your GitHub repository.

Setting up NPM_TOKEN and GITHUB_TOKEN

  1. Log in to your npm account and navigate to the access tokens page.
  2. Create a new token with "Read and Publish" permissions.
  3. In your GitHub repository, navigate to the "Settings" tab and then to "Secrets".
  4. Add the NPM_TOKEN secret using the token you generated from npm.
  5. The GITHUB_TOKEN is automatically generated by GitHub, and you don't need to set it up manually.

Using Semantic Release for Automatic Versioning and Publishing

With GitHub Actions, the GITHUB_TOKEN and NPM_TOKEN environment variables are set up to automatically version and publish your project to npm. As a result, each push to the "main" branch will initiate the process of versioning and publishing your package to npm.

Contributing

If you would like to contribute to the create-react-icon-package project, feel free to submit issues and pull requests on the GitHub repository.

License

MIT License. See the LICENSE file for more information.