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

icon-packer

v1.2.1

Published

Pack icons into Vaadin Flow icon set

Readme

This script packs SVG icons into a Vaadin Flow HTML file.

After the execution the only thing needed to do is to add

@HtmlImport("frontend://icons.html")

to the main layout or

<link rel="import" href="icons.html">

to a html component. The application must provide files from the static directory in the resources on Vaadin root path. (Default in Spring Boot)

config.json

Configure the behavior of this script.

Look at the config-example.json file for an example.

Note: All paths given in this file are relative to the location of this config file not to the pwd.

iconsDir

The path to the directory where the icons are placed. The icons must be in SVG format.

distDir

The directory for the output files.

setName

The Vaadin icon collection name. (e.g. custom-icons)

iconSize

The size of the icons in pixel. (e.g. 24)

padding

The padding around the icons. (recommended: 4)

appearance (optional)

This property defines whether the icons are filled or not. This property must have one of these values: stroke, fill, automatic. The default value is automatic. When this property is stroke all icon will look like this:

<path g="PATH" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>

When it is fill all icons will look like this:

<path g="PATH" fill="currentColor" stroke="none"/>

When it is automatic the appearance will be determined based on the first tag in the icon file (this is the default). CSS is ignored at all!

appearanceOverride (optional)

When given, this property can be used to define the icon appearance for specific icons. E.g.:

{
  "appearanceOverride": {
    "plus-solid": "stroke",
    "plus-fill": "fill"
  }
}

iconsFileName

The file name for the icons html file. (e.g. icons.html)

enum

A object with properties for the enum class generation.

className

The class name for the enum class

package

The package of the enum class

interfaces

A list of interfaces that the enum class should implements

collectionNameProperty (optional)

If this property is set, a property which contains the name of the set will generated. In Java a getter method will generated and in kotlin a final property. This object must contains a name and a override key.

iconNameProperty

The name of the property, in which the name of the icon stored. In Java a getter method will generated and in kotlin a final property. This object must contains a name and a override key.

createFunction (optional)

If this property is set, a method to create a vaadin icon will be generated. This object must contains a name and a override key.

language

The language the enum class should generated in. In this version java and kotlin are supported.

sourcesRoot (optional)

If this property is set, the enum file will be copied into the project. This property must be a path like src/main/kotlin.

frontendRoot (optional)

If this property is set, the icons HTML file will be copied into the project. This property must be a path like src/main/resources/static/frontend or src/main/resources/META-INF/resources/frontend.