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

wordpress-icons-font

v1.0.0

Published

Convert WordPress icons from @wordpress/icons package into a custom icon font. Icons by WordPress Design Team, conversion tool by DPlugins.

Readme

WordPress Icons Font

Convert WordPress icons from the @wordpress/icons package into a custom icon font.

Icons by: WordPress Design Team Font Conversion Tool by: DPlugins

Features

  • Extracts all 317 WordPress icons from React/JSX components
  • Generates web font files (WOFF2, WOFF, TTF, EOT)
  • Includes CSS stylesheet with icon classes
  • Interactive HTML preview page with search functionality
  • One-click icon class name copying
  • CSS variables for easy customization
  • Separate stylesheet for preview page styling

Installation

npm install

Usage

Generate the Font

npm run generate

This will:

  1. Extract SVG data from WordPress icon JavaScript modules
  2. Clean and optimize the SVG files
  3. Generate font files in the dist/ directory
  4. Create an interactive preview at index.html

Preview Icons

Open index.html in your browser to see all available icons. You can:

  • Search for icons by name
  • Click any icon to copy its class name
  • View all 317 icons in a grid layout
  • Access GitHub and npm links directly from the header
  • Download fonts directly via the "Download Fonts" button

HTML Preview

alt text

Typeface Font App Preview

alt text

Use in Your Project

  1. Copy the dist/ folder to your project
  2. Include the CSS file in your HTML:
<link rel="stylesheet" href="dist/wordpress-icons.css">
  1. Use icons with the wpi- prefix:
<i class="wpi wpi-add-card"></i>
<i class="wpi wpi-arrow-down"></i>
<i class="wpi wpi-admin-users"></i>
<i class="wpi wpi-block-default"></i>

Generated Files

  • dist/wordpress-icons.woff2 - Modern web font (best compression)
  • dist/wordpress-icons.woff - Web font format
  • dist/wordpress-icons.ttf - TrueType font
  • dist/wordpress-icons.eot - For older IE browsers
  • dist/wordpress-icons.css - Stylesheet with icon classes
  • dist/wordpress-icons.json - Icon name to codepoint mapping
  • index.html - Interactive preview page
  • preview.css - Preview page styles with CSS variables

Customization

Font Generation

You can modify index.js to:

  • Change the font name (currently wordpress-icons)
  • Change the CSS prefix (currently wpi-)
  • Adjust font height and normalization settings
  • Customize which font formats to generate

Simply override these variables in your own CSS to customize the preview page appearance.

How It Works

  1. Reads JavaScript modules from node_modules/@wordpress/icons/build/library/
  2. Extracts SVG viewBox and path data using regex
  3. Reconstructs clean SVG files
  4. Optimizes SVGs using SVGO
  5. Converts SVGs to font files using Fantasticon
  6. Generates CSS and HTML preview

Requirements

  • Node.js 14+
  • npm or yarn

Credits

Icons: All icons are created and maintained by the WordPress Design Team. These icons are part of the official WordPress Gutenberg project.

Font Conversion Tool: Created by DPlugins - Converting WordPress icons from React components to web fonts.

License

ISC

The original WordPress icons are licensed under GPLv2 or later by the WordPress contributors.