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

datocms-plugin-asset-optimization

v0.7.6

Published

A plugin that allows you to mass apply optimizations to your DatoCMS assets.

Readme

DatoCMS Asset Optimization Plugin

A plugin that allows you to mass apply optimizations to your DatoCMS assets, significantly reducing image file sizes while maintaining visual quality.

Asset Optimization Plugin Cover

Overview

The DatoCMS Asset Optimization Plugin leverages Imgix's powerful image processing capabilities to optimize your media library assets. It helps you:

  • Reduce image file sizes without sacrificing quality
  • Apply batch optimization to multiple assets
  • Configure quality levels based on asset sizes
  • Convert images to modern formats like AVIF or WebP
  • Track optimization progress with detailed logs
  • View statistics on storage savings

Installation

  1. Log in to your DatoCMS project
  2. Go to Settings > Plugins
  3. Search for "Asset Optimization"
  4. Click "Install"
  5. Configure the plugin settings as desired

Important: Use Sandbox Environments First

⚠️ STRONGLY RECOMMENDED: Always test this plugin in a sandbox environment before using it in production.

This plugin permanently replaces your original assets and they cannot be recovered. To ensure optimal results:

  1. Create a sandbox environment in your DatoCMS project
  2. Test the plugin with various optimization settings
  3. Fine-tune thresholds and quality settings to your liking
  4. Verify the optimized assets meet your quality standards
  5. Once satisfied with the results, promote your changes to production

This approach allows you to safely experiment with different optimization parameters without risking your production assets.

Usage

  1. After installation, navigate to the plugin in your DatoCMS dashboard
  2. Configure the optimization settings according to your needs
  3. Click "Start Optimization" to begin the process
  4. Watch the progress as the plugin processes your assets
  5. View the results including statistics on size savings

Asset Filtering & Optimization

  • Size-Based Filtering: Only process assets above a certain size threshold
  • Intelligent Optimization: Apply different optimization strategies based on asset size categories
  • Format Conversion: Convert images to modern formats like AVIF for better compression
  • Dimension Resizing: Automatically resize oversized images while maintaining aspect ratio

Website Performance Optimization

  • Reduce page load times by decreasing image payload sizes
  • Improve Core Web Vitals scores with optimized images
  • Enhance mobile experience with appropriately sized images

Storage Cost Reduction

  • Minimize storage usage in your DatoCMS media library
  • Reduce CDN bandwidth consumption
  • Lower operating costs while maintaining quality

Batch Processing

  • Mass-update existing media libraries with optimized assets
  • Apply consistent optimization settings across your entire asset collection
  • Save time compared to manual optimization workflows

Development

Prerequisites

  • Node.js (v14+)
  • npm or yarn
  • DatoCMS account with developer access

Local Development

  1. Clone the repository
  2. Install dependencies: npm install
  3. Start the development server: npm run dev
  4. Configure a local DatoCMS plugin in your project settings pointing to your local server

Building for Production

npm run build

The built files will be in the dist directory, ready for deployment.

Support

If you encounter any issues or have questions about the plugin, please open an issue on GitHub.

License

MIT