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

infinite-icons

v1.0.2

Published

An NPM package with a virtually infinite number of programmatically generated icons for React.

Readme

🎨 InfiniteIcons

Procedurally generated, unique SVG icons for React. The biggest icon collection ever.


🚀 Features

  • Truly Infinite Icons – Generates a unique icon for any string.
  • 🎨 Deterministic & Consistent – The same name always produces the same icon and color.
  • 🧩 Lightweight & Zero-Dependency – Adds virtually no weight to your bundle.
  • 🧱 Easy Integration – A simple React component that works anywhere.
  • 🖌️ Customizable Size – Control the icon size with a simple prop.

📆 Installation

npm install infinite-icons

🔧 Usage

Import the InfiniteIcon component and provide a unique name prop. It's that simple!

Basic Example

import React from 'react';
import { InfiniteIcon } from 'infinite-icons';

function MyComponent() {
  return (
    <div>
      {/* Basic Usage */}
      <InfiniteIcon name="user-profile-avatar" />

      {/* With Custom Size */}
      <InfiniteIcon name="dashboard-metrics" size={64} />

      {/* It will generate a unique icon for any string! */}
      <InfiniteIcon name="a-very-specific-action-item" size={24} />
    </div>
  );
}

Creating an Icon Grid

Here's an example of how you can quickly generate a gallery of unique icons for a list of features, perfect for a navigation or features section.

import React from 'react';
import { InfiniteIcon } from 'infinite-icons';

const featureList = ['Dashboard', 'Analytics', 'User Settings', 'Logout', 'API-Keys', 'Notifications'];

function FeatureGrid() {
    return (
        <div style={{ display: 'grid', gridTemplateColumns: 'repeat(3, 1fr)', gap: '1rem', textAlign: 'center' }}>
            {featureList.map(feature => (
                <div key={feature} style={{ display: 'flex', flexDirection: 'column', alignItems: 'center', gap: '0.5rem' }}>
                    <InfiniteIcon name={feature} size={48} />
                    <span>{feature}</span>
                </div>
            ))}
        </div>
    );
}

💡 How It Works

InfiniteIcons does not contain any pre-made icon files. It generates them on the fly.

  1. Hashing – It converts the name prop into a unique number.
  2. Color Generation – It uses this number to generate a unique, consistent HSL color.
  3. Pattern Generation – The number is converted to a binary string, which maps to a 5x5 symmetrical grid, creating a unique, abstract pattern.

⚙️ API / Props

| Prop | Type | Default | Description | |-------|--------|---------|--------------------------------------| | name | string | Required | The unique identifier for your icon. | | size | number | 32 | The width and height of the icon in pixels. |


📄 License

MIT © Akash Dubey