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

datocms-plugin-iconfontpicker

v0.1.2

Published

DatoCMS plugin to visually select icon from any icon font.

Readme

DatoCMS Icon Font Picker

Cover

DatoCMS plugin to visually select icons from any icon font.

Features

  • self-contained: list of icons and icon font (as base64) are stored in the plugin settings -> can be used with any icon font
  • search: icons can be searched
  • filters: optional filters can be used to show only a subset of icons, based on their names

Preview

Configuration

Plugin settings

Plugin settings

General Options

A field that holds general options in JSON format.

  • iconPrefix: if the icon font requires a prefix CSS class to show up (eg. my-prefix icon-arrow-right), you an add it here (optional)

Icon Names (required)

The plugin needs to know the icon names (that is, the CSS class names). They can be added as a JSON array in this field.

Example:

[
    "icon-menu",
    "icon-arrow-left"
]

These names will be returned when selecting an icon, see the "Usage" section below for more.

Filters (optional)

If you would like to add filter checkboxes to the UI, you can set "filters" here.

Filters consist of two parts:

  • name: this will be the checkbox label on the UI
  • value: part of the icon (CSS) class name to match

Example:

[
    {
      "name": "Arrow icons",
      "value": "arrow"
    },
    {
      "name": "Filled icons",
      "value": "-fill"
    }
]

CSS Styles

The plugin was made to be self-contained and to be used with any icon fonts. Because of this, all font-related CSS should be put here:

  • @font-face in base64 format (the entire font, can be big)
  • individual icon styles, eg. .icon-arrow-right:before { content: '\ea8a'; }

Field settings

After installing the plugin, you'll need to add a new JSON field type to a block or model, go to the Presentation tab, and select "Icon Font Picker" for the Field editor.

JSON field configuration

Usage

The data structure will be a stringified JSON object with the following structure:

{
    "icon": "icon-arrow-right"
}

You can use it on the frontend by adding as a class to an element, like the way icon fonts are used normally.

Development

If run locally, the plugin is available at port 3022: http://localhost:3022.

Limitations

  • only one icon font can be used
  • only one icon can be selected

Acknowledgements

DatoCMS Font Awesome plugin

This served as the base of this plugin and helped a lot to bring things together easily.

https://www.datocms.com/marketplace/plugins/i/datocms-plugin-fontawesome

DatoCMS Visual Select plugin

The JsonTextArea used for the plugins was borrowed from here. Great plugin by the way.

https://www.datocms.com/marketplace/plugins/i/datocms-plugin-visual-select