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

@arshiash80/strapi-plugin-iconhub

v1.3.1

Published

Icon picker plugin for Strapi with Iconify integration — search, select, and store icons with raw SVG for high-performance rendering.

Readme

Strapi IconHub

Strapi IconHub

IconHub is a custom field for Strapi that brings the Iconify catalog into the admin panel. Editors can browse icon sets, search globally, inspect a single set in detail, apply colors, and store either the Iconify name, raw SVG, or both.

Strapi TypeScript License

Table of contents

Demo

Open the demo video directly

The demo covers the picker flow, icon set browsing, icon editing, and color customization.

Why IconHub

  • Built for Strapi editors, not just developers wiring icons in code
  • Access to 200,000+ icons through Iconify without shipping a bundled icon pack
  • Category-level restrictions in Content-Type Builder to keep fields focused
  • Collection-first browsing flow for teams that do not know the exact icon name
  • Raw SVG storage support for fast frontend rendering and external-API independence

Compatibility

  • Strapi v4 and v5
  • TypeScript-ready admin and server packages
  • Frontends that render Iconify names, raw SVG, or both

Installation

npm i @arshiash80/strapi-plugin-iconhub

Rebuild the admin panel after installation:

npm run build
npm run develop

Verify the plugin in Settings > Plugins.

Plugin verification

Add the field to a content type

Open Content-Type Builder, add a new custom field, and select IconHub.

Custom field tab IconHub custom field selection

The field then appears in the content entry UI like any other Strapi input.

Empty IconHub field input

Field configuration

Storage strategy

IconHub supports three storage modes:

  • iconName: store the Iconify identifier, such as mdi:home
  • iconData: store raw SVG markup
  • both: keep the identifier and SVG together for maximum flexibility

This is configured in the field settings.

Configure storage preferences

Restrict available icon set categories

In Basic Settings, you can decide which Iconify collection categories are available for this field. This is the main control for narrowing the picker to a design system, brand icon family, emoji-only field, and similar editorial use cases.

Configure available icon set categories

Editor workflow

1. Browse icon sets

The default picker state is built around icon-set discovery. Editors can browse allowed categories first, then open a set when they want a tighter visual search space.

Picker default state example 1 Picker default state example 2 Picker default state example 3

2. Refine the available sets

The discovery view supports metadata-driven filtering for common browsing patterns:

  • tag filtering
  • grid / icon height filtering
  • palette and license filtering

Filter icon sets by tag Filter icon sets by grid Filter icon sets by palette and license

3. Search globally or open a specific set

Editors can search across all allowed sets from the main toolbar, or open a single set for focused browsing and in-set search.

Google Material Icons set view

The set browser keeps the current set context visible:

  • set name and author
  • icon count
  • palette information
  • in-set category chips
  • set-local search input

4. Review different icon families

The picker works well across both monotone and multicolor sets.

Material Design icons example Fluent UI System Color icons example Emoji One icons example Stickies color icons example

5. Edit and customize the selected icon

Once an icon is selected, the field shows the chosen icon in the entry form and exposes an edit action for further adjustments.

Field input with selected icon and color Edit button on field input

The edit modal includes:

  • live preview
  • visual color picker
  • hex input
  • icon name and raw SVG editing controls
  • download actions for exported assets

Icon edit modal Visual color picker

Stored value shape

Depending on configuration, IconHub stores some or all of the following fields:

type IconFieldValue = {
  iconName: string | null;
  iconData: string | null;
  width: number | null;
  height: number | null;
  color?: string | null;
  isSvgEditable?: boolean;
  isIconNameEditable?: boolean;
};

Frontend rendering

Render from iconName

Use this when you want Iconify to resolve the icon on the frontend:

import { Icon } from '@iconify/react';

type IconValue = {
  iconName: string | null;
  width: number | null;
  height: number | null;
  color?: string | null;
};

export function IconFromName({ value }: { value: IconValue }) {
  if (!value.iconName) return null;

  return (
    <Icon
      icon={value.iconName}
      width={value.width ?? 24}
      height={value.height ?? 24}
      color={value.color ?? undefined}
    />
  );
}

Render from iconData

Use this when you want full control over the SVG and do not want runtime icon lookups:

type IconValue = {
  iconData: string | null;
  width: number | null;
  height: number | null;
  color?: string | null;
};

export function IconFromSvg({ value }: { value: IconValue }) {
  if (!value.iconData) return null;

  return (
    <svg
      width={value.width ?? 24}
      height={value.height ?? 24}
      viewBox={`0 0 ${value.width ?? 24} ${value.height ?? 24}`}
      style={{ color: value.color ?? undefined }}
      dangerouslySetInnerHTML={{ __html: value.iconData }}
    />
  );
}

Development

Useful local commands:

npm run build
npm run watch
npm run watch:link
npm run verify
npm run docs:sync-media
npm run docs:readme

Type-checking can be run directly with tsc:

npx tsc -p admin/tsconfig.json --noEmit
npx tsc -p server/tsconfig.json --noEmit

Documentation assets

Documentation images and videos are stored in assets/docs/. Update README.source.md, sync changed assets to Cloudinary, then regenerate the published README:

npm run docs:sync-media
npm run docs:readme

The Cloudinary sync script uploads only changed README assets, stores their content hashes in docs/readme-media-manifest.json, and lets README.md use Cloudinary delivery URLs for marketplace-safe media rendering. Unsynced assets fall back to jsDelivr URLs.

License

MIT