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

openclaw-asset-optimization-pipeline

v1.0.0

Published

OpenClaw skill for automated image and asset optimization pipeline

Readme

Asset Optimization Pipeline

OpenClaw skill for automated image and asset optimization with CDN deployment support.

Features

  • Image Compression - PNG, JPG, WebP, AVIF with 70-88% size reduction
  • 🔄 Format Conversion - Convert between formats seamlessly
  • 📱 Responsive Images - Generate multiple sizes automatically
  • 🎨 SVG Optimization - SVGO integration for vector graphics
  • 🔤 Icon Fonts - Generate web fonts from SVG icons
  • 🧩 Sprite Sheets - Combine images into sprite sheets
  • ☁️ CDN Upload - Deploy to S3/CloudFront automatically

Installation

npm install @openclaw/asset-optimization-pipeline

Quick Start

# Compress images
asset-optimize compress ./images --output ./optimized --quality 85

# Convert to WebP
asset-optimize convert ./images --format webp --quality 90

# Generate responsive images
asset-optimize resize hero.jpg --sizes 640,1024,1920 --formats webp,avif

# Create icon font
asset-optimize icon-font ./icons --name my-icons --output ./fonts

# Upload to CDN
asset-optimize upload ./optimized --bucket my-assets --cdn

API Usage

import { AssetPipeline } from '@openclaw/asset-optimization-pipeline';

const pipeline = new AssetPipeline({
  quality: 85,
  outputDir: './dist',
});

// Compress
const result = await pipeline.compress('./images');
console.log(`Saved ${result.totalSavingsPercent}%`);

// Convert
await pipeline.convert('./image.png', {
  format: 'webp',
  quality: 90,
});

// Responsive
await pipeline.responsive('./hero.jpg', {
  sizes: [640, 1024, 1920],
  formats: ['webp', 'avif'],
});

// Icon font
await pipeline.iconFont('./icons', {
  name: 'my-icons',
  output: './fonts',
  formats: ['woff2', 'woff'],
});

Performance

Typical compression savings:

  • PNG: 76% (pngquant)
  • JPG: 77% (mozjpeg)
  • WebP: 83% vs PNG
  • AVIF: 88% vs PNG
  • SVG: 76% (SVGO)

CI/CD Integration

# .github/workflows/optimize-assets.yml
name: Optimize Assets
on:
  push:
    paths: ['assets/**']
jobs:
  optimize:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - run: npm i -g @openclaw/asset-optimization-pipeline
      - run: asset-optimize compress ./assets --output ./dist
      - run: asset-optimize upload ./dist --bucket ${{ secrets.S3_BUCKET }}
        env:
          AWS_ACCESS_KEY_ID: ${{ secrets.AWS_KEY }}
          AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET }}

License

MIT