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

rlcp

v0.1.1

Published

Image converter CLI

Downloads

10

Readme

Reduce Largest Contentful Paint (RLCP)

A powerful CLI tool to optimize images in your project, convert them to modern formats (like WebP), and automatically update file references in your code.

Demo Video - Here

Usage

  1. Configuration: Create a rlcp.config.json file in your project root.

    {
    	"input": "public",
    	"output": "temp_public",
    	"blacklists": ["public/brand/**"],
    	"file_size": "small",
    	"preferred_type": "webp",
    	"working_directory": "./"
    }
  2. Run: Execute the tool in your project directory.

    bunx rlcp
    # or if installed locally
    bun start

Configuration (rlcp.config.json)

| Key | Type | Description | Required | | ------------------- | -------- | --------------------------------------------------------------------------- | :------: | | input | string | Directory to scan for source images. | Yes | | output | string | Directory where original images will be moved (backup). | Yes | | blacklists | array | Glob patterns for files/folders to ignore. | No | | file_size | string | Target quality: "small" (80%) or "smallest" (60%). | No | | preferred_type | string | Target format: "png", "jpeg", "jpg", or "webp". | No | | working_directory | string | Directory to scan for code files to update references (e.g., HTML, JS, TS). | No |

If optional fields are omitted, the CLI will prompt you for them during execution.

Features

🖼️ Image Conversion & Optimization

Converts images found in the input directory to your preferred format (e.g., PNG to WebP) and optimizes them based on the selected quality setting.

📦 Safe Backup

Original images are not deleted. They are moved to the specified output directory, preserving their original folder structure. This directory is automatically added to .gitignore.

🔄 Automatic Reference Updates

If working_directory is specified, Reduce Largest Contentful Paint (RLCP) scans your code files (HTML, JS, JSX, TS, TSX, CSS, JSON, MD) and automatically updates references to point to the new file extensions (e.g., changing img.png to img.webp in your index.html).

🔒 Smart Locking

Reduce Largest Contentful Paint (RLCP) creates a rlcp.lock file to track converted images.

  • Prevents re-converting images that have already been processed.
  • Ensures reference updates still work even if the original file has been moved to the backup folder.
  • Detects if the converted file is missing and allows re-generation if needed.