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

cssicons

v1.0.0

Published

Dynamic CSS icon generation system with smart optimization, gradients, animations, and responsive sizing

Downloads

2

Readme

cssicons

Dynamic CSS icon generation system with smart optimization, gradients, animations, and responsive sizing.

Features

  • 🎨 300+ Icons - Comprehensive icon library with variants
  • Dynamic Generation - Icons generated on-demand, never stored
  • 🌈 Gradient Support - 10+ gradient presets plus custom gradients
  • 🎭 18 Animations - Spin, pulse, bounce, shake, and more
  • 🔄 Transformations - Rotate, scale, flip, skew with presets
  • 📱 Responsive Sizing - Breakpoint-based icon sizing
  • 🚀 Smart Optimization - SVG compression and minification
  • 🎯 Multiple Variants - Filled, outlined, rounded versions
  • 🌐 REST API - Complete HTTP API for integration
  • 💻 Web Interface - Beautiful demo and testing interface

Installation

npm install cssicons

Quick Start

Programmatic Usage

const { generateIcon, generateIconCSS } = require('cssicons');

// Generate a simple icon
const homeIcon = generateIcon('home', { size: 32, color: '#007bff' });

// Generate with gradient
const gradientIcon = generateIcon('heart', { 
  size: 48, 
  gradientPreset: 'sunset' 
});

// Generate with animation
const animatedIcon = generateIcon('loading', { 
  size: 24, 
  animation: 'spin' 
});

// Generate CSS
const css = generateIconCSS('star', { 
  size: 20, 
  className: 'my-star-icon' 
});

Server Usage

const cssicons = require('cssicons');

// Start the server
cssicons.startServer(5312);

Then visit http://localhost:5312 for the web interface.

API Reference

REST API Endpoints

  • GET /api/icons - List all available icons
  • GET /api/icon/:name - Generate specific icon with options
  • GET /api/animations - List available animations
  • GET /api/gradients - List gradient presets
  • GET /api/transforms - List transform presets
  • GET /api/icon/:name/variants - Get icon variants
  • POST /api/icons/batch - Batch generate icons

Query Parameters

  • size - Icon size in pixels (default: 24)
  • color - Icon color (default: #000000)
  • fill - Fill color (default: none)
  • strokeWidth - Stroke width (default: 2)
  • animation - Animation name (spin, pulse, bounce, etc.)
  • gradientPreset - Gradient preset name (sunset, ocean, fire, etc.)
  • transform - Transform preset (rotate-90, flip-h, scale-2x, etc.)

Example API Calls

GET /api/icon/home?size=32&color=blue
GET /api/icon/heart?gradientPreset=sunset&animation=pulse
GET /api/icon/arrow-right?transform=rotate-45&size=24

Available Icons

The library includes 300+ icons across categories:

  • UI & Navigation (home, menu, close, arrows)
  • Media (play, pause, volume, camera)
  • Communication (mail, phone, message)
  • Files & Folders (file, folder, download, upload)
  • Social Media (facebook, twitter, instagram, github)
  • Business (trending, chart, briefcase, calculator)
  • Weather (sun, moon, cloud, rain)
  • Transportation (car, plane, bicycle, ship)
  • And many more...

Animations

18 built-in animations:

  • Continuous: spin, pulse, heartbeat, flash
  • Entrance: fade-in, zoom-in, slide-in, rotate-in
  • Attention: bounce, shake, swing, wobble, tada
  • 3D Effects: flip-horizontal, flip-vertical

Gradients

10 gradient presets:

  • sunset, ocean, fire, mint, purple
  • rainbow, gold, silver, neon, cosmic

Plus support for custom CSS gradient strings.

Transforms

Transform presets include:

  • Rotation: rotate-45, rotate-90, rotate-180, rotate-270
  • Scale: scale-sm, scale-lg, scale-xl, scale-2x
  • Flip: flip-h, flip-v, flip-both
  • Skew: skew-x, skew-y
  • Combined: tilt-left, tilt-right, perspective

Responsive Sizing

Generate responsive CSS with breakpoint-based sizing:

const responsiveCSS = generateIconCSS('home', {
  responsive: true,
  responsiveSizes: {
    base: '20px',
    sm: '24px',
    md: '28px',
    lg: '32px',
    xl: '40px'
  }
});

License

MIT

Contributing

Contributions welcome! Please read our contributing guidelines.

Support

  • GitHub Issues: https://github.com/iconteam/cssicons/issues
  • Documentation: https://github.com/iconteam/cssicons#readme