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

thelounge-plugin-image-preview

v1.0.0

Published

An image and media preview plugin for The Lounge IRC client that overrides prefetch limits and handles known image hosting sites.

Readme

The Lounge Image Preview Plugin

thelounge-plugin-image-preview is a plugin for The Lounge IRC client that automatically detects and inlines image and media previews from links. It overrides default prefetch limits, supports popular image hosting sites, and works even when the global prefetch setting is disabled.


Features

  • Direct Image Previews: Automatically detects direct URLs (e.g. .png, .jpg, .jpeg, .gif, .webp, .bmp, .svg) and renders them inline.
  • Image Host Support: Supports major image hosts like Imgur, Catbox, Gyazo, Giphy, and Tenor.
  • Custom Prefetch Bypass: Operates independently of the server's global prefetch: false configuration to only prefetch images, protecting privacy and saving bandwidth.
  • Configurable Settings: Define a custom maximum image size limit and selectively toggle image hosts.
  • Premium Styling: Glassmorphic borders, nice rounding, and subtle hover transition effects.

Installation

Depending on how you run The Lounge, choose one of the installation methods below:

Method 1: standard/local installation (CLI)

If you run The Lounge directly on your host machine, install it via the official CLI command:

thelounge install thelounge-plugin-image-preview

Alternatively, you can install it using npm inside your Lounge packages folder (usually ~/.thelounge):

cd ~/.thelounge/packages
npm install thelounge-plugin-image-preview

Then restart The Lounge server.


Method 2: using Docker (thelounge/thelounge container)

If you run The Lounge in a Docker container, install it using one of the options below:

Option A: install via container CLI (recommended)

Execute the installation command directly inside your running container:

docker exec -it thelounge thelounge install thelounge-plugin-image-preview

Once installed, restart your container to load the plugin:

docker restart thelounge

Option B: manual host installation (mounted volumes)

If you have mounted The Lounge's configuration directory to a host path (e.g., /home/user/.thelounge or /var/opt/thelounge):

  1. Navigate to the packages directory on your host:
    cd ~/.thelounge/packages
  2. Manually add the dependency to package.json under dependencies:
    "dependencies": {
      "thelounge-plugin-image-preview": "^1.0.0"
    }
  3. Run npm install from your host (using Node.js matching the container's version) or simply restart the container—The Lounge's entrypoint will automatically install any missing dependencies listed in your package.json.

Commands

Control settings dynamically from any chat query:

  • /imagepreview status — Show current plugin status and limits.
  • /imagepreview toggle — Toggle the plugin on or off.
  • /imagepreview size <kb> — Update the maximum allowed preview image size in kilobytes.

Configuration

Custom configuration options can be adjusted in your persistent storage directory:

~/.thelounge/packages/thelounge-plugin-image-preview/config.json

{
  "enabled": true,
  "maxImageSize": 2048,
  "previewImgur": true,
  "previewCatbox": true,
  "previewGyazo": true,
  "previewGiphy": true,
  "previewTenor": true,
  "previewAllThumbnails": false
}

License

This project is licensed under the MIT License. See the LICENSE file for details.