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

animate-css-optim

v0.1.1

Published

Optimize animate.css stylesheets

Readme

DESCRIPTION

Optimize animate.css stylesheets. Reduce filesize.

The animate.css files (animate.css, animate.min.css) span about 3303 LOCs and come at 70KB and 56KB respectively, because they contain a myriad of usable animated classes.

We can trim down these file sizes, by excluding the classes we don't use.

Example: When performed on a site which used just 7 animate.css classes, the result was a decrease by 88% (Saved: 49.04 kB) on the production version (animate.css) and a reduced size of 87% (Saved: 60.78 kB) on the development / minified version (animate.min.css);

HOW DOES THIS WORKS?

  1. The utility scrapes through a list of web pages provided by the user.
  2. It then uses cheerio to find the elements that contain the .animated class used by the animate.css library and create a list of the animation classes used on the web site.
  3. It then creates a trimmed down version of the animate.css, which contains only the necessary CSS rules for the effects currently used.
  4. It also produces a minified version using clean-css.

INSTALLATION / USAGE

  • Clone repo
git clone [email protected]:kostasx/animate-css-optim.git
  • Install dependencies
cd animate-css-optim
npm install
  • Open config.js and replace the sample URLs with the page URLs you want to be scanned for elements containing the .animated class.

  • Run the utility:

node optim.js

You will now have an output folder created containing the optimized versions of animate.css and animate.min.css, containing only the classes needed for the elements found to be using them.

License

Animate.css is licensed under the MIT license. (http://opensource.org/licenses/MIT)

CHANGELOG

0.1.1 Adding support for wow plugin which dynamically adds the .animated class on the elements.

0.1.0 Initial commit and first tests.

TO DO

  • Add support for reading local files using fs.
  • Create a (drag-and-drop) GUI and turn this into a cross-platform desktop application based on Node-Webkit.
  • Add Tests!