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

grapesjs-icon-set

v1.0.6

Published

Custom SVG icon set plugin for GrapesJS

Readme

grapesjs-icon-set

A massive, high-performance icon library for GrapesJS featuring over 10,000+ SVG icons. This package includes multiple style variants (Round, Sharp, Two-Tone, etc.) organized for easy integration into the GrapesJS Block Manager and Asset Manager.

Key Features

  • 10,000+ Icons: A complete set of professional icons.
  • Variant Support: Access round, sharp, twotone, and outlined styles.
  • Tree-Shakeable: Import only the icons you need to keep your bundle small.
  • GrapesJS Optimized: Ready-to-use snippets for custom blocks and assets.

Installation

Install the package into your project using npm:

npm install grapesjs-icon-set

🛠 Usage

1. Basic Import

Import the icon set into your GrapesJS configuration file:

import grapesjs from 'grapesjs';
import { icons } from 'grapesjs-icon-set';
import 'grapesjs/dist/css/grapes.min.css';
import grapesjsIconSet from 'grapesjs-icon-set'; 

const editor = grapesjs.init({
  container: '#gjs',
  plugins: [grapesjsIconSet],
  pluginsOpts: {
      [grapesjsIconSet]: {
        category: 'UI Icons',
        addDefaultIcons: false, // Set to false if you want to add icons manually for performance
      },
    },
  // ... rest of your config
});

2. Adding Icons to the Block Manager

To let users drag icons into their canvas, add them as blocks:

editor.Blocks.add('icon-zoom-out', {
  label: 'Zoom Out',
  media: icons.zoom_out.round, // Use the SVG string from the package
  content: { 
    type: 'svg', 
    content: icons.zoom_out.round,
    attributes: { style: 'width: 50px; height: 50px;' }
  },
  category: 'Icons',
});

3. Integrating with Asset Manager

If you want to provide these as selectable images for users:

const am = editor.AssetManager;

am.add([
  { src: 'node_modules/grapesjs-icon-set/src/svg/home/round.svg', name: 'Home' },
  { src: 'node_modules/grapesjs-icon-set/src/svg/zoom_out/sharp.svg', name: 'Zoom Out' }
]);

📁 Directory Structure

Your installation includes the following organized paths:

  • dist/: Optimized production builds (index.js, index.esm.js).
  • src/svg/: Raw SVG source files categorized by name and style.
  • icons.json: A manifest file for programmatically looping through the set.

📄 License

MIT