squeezit weekly downloads statistics
By ghaschel · npm · Webpack plugins
Lossless image and PDF optimizer CLI, JS/TS API, and bundler plugins for PNG, JPEG, GIF, WebP, SVG, AVIF, HEIC, JXL, ICO, BMP, and more.
squeezit has 176 recorded weekly downloads on npm, a decrease of 65.8% over the past 30 days, ranking #2524 of 3,247 tracked listings.
About squeezit
squeezit is a CLI, JS/TS API, and set of build plugins for lossless image and PDF optimization. It is designed for codebases, asset folders, and content repositories where you want smaller files, predictable behavior, and a command you can trust in day-to-day workflows.
It supports direct file paths, shell-style patterns like *.png, glob expressions like images/**/*.webp, and a no-argument compress mode that scans supported image and PDF files in the current directory. Recursive scanning is available when you ask for it.
Why Squeezit
- Lossless-first workflow across common web and design formats
- PDF support with conservative skips for encrypted, signed, or inconclusively inspected documents
- APNG, JXL, and ICO support alongside common web asset formats
- Friendly CLI output with clear summaries, skips, and failures
- Safe threshold-based replacement so tiny wins do not churn your files
- Pattern matching that works with both regular shell parameters and glob expressions
- Works well as a local cleanup tool before commits or releases
- Published for Node users, while Bun remains the development and build toolchain
Installation
For npm and Bun global installations, use Node.js 22.13 or later. Homebrew and the standalone archives provide Node themselves; see their installation notes below.
npm
npm install -g squeezit
bun
bun add -g squeezit
Homebrew (macOS)
The personal tap is the easiest macOS installation because the formula installs Node and Squeezit's native optimizer tools as dependencies:
brew install ghaschel/tap/squeezit
Upgrade a formula installation with Homebrew:
brew upgrade squeezit
Confirm the complete runtime and optimizer toolchain after installation:
sqz doctor
Standalone GitHub archives
Each GitHub release includes .tar.gz archives for darwin-arm64,
darwin-x64, and linux-x64, plus a SHA256SUMS file. Download the archive
for your platform and SHA256SUMS from the same release, then verify it before
extracting it:
ARCHIVE="squeezit-v<VERSION>-<target>.tar.gz"
grep " $ARCHIVE$" SHA256SUMS | shasum -a 256 -c -
Replace <VERSION> and <target> with the downloaded archive's values. On
Linux, replace shasum -a 256 -c - with sha256sum --check -. The archives
embed a Node runtime, so no separate Node installation is required; they do
not bundle native image and PDF optimizer tools. Install the tools for your
platform and run sqz doctor to see exactly what is missing before optimizing
files.
After installation, both commands are available:
squeezit --help
sqz --help
Quick Start
Compress supported images and PDFs in the current directory:
sqz compress
Preview changes without modifying files:
sqz compress --dry-run
Strip metadata only, without recompressing:
sqz metadata strip
Target only top-level PNGs:
sqz compress "*.png"
Target nested files with glob expressions:
sqz compress -r "images/**/*.{png,jpg,webp}"
Optimize an icon container in dry-run mode:
sqz compress favicon.ico --dry-run
Run the shorter alias:
sqz compress -r assets/**/*.jpg --dry-run
Check for a newer published version:
sqz update check
Self-update to the latest release:
sqz update apply
Integrations
squeezit is now structured to expose first-party integrations from the same package.
Available today:
- Root JS/TS API via
import { optimizeFile, optimizeFiles, stripMetadata } from "squeezit" - Gulp plugin via
import { squeezitGulp } from "squeezit/gulp" - Grunt plugin via
const { registerSqueezitTask } = require("squeezit/grunt") - Vite plugin via
import { squeezitVite } from "squeezit/vite" - Webpack plugin via
import { squeezitWebpack } from "squeezit/webpack" - Rollup plugin via
import { squeezitRollup } from "squeezit/rollup" - Parcel optimizer plugin with implementation exported at
squeezit/parcel - Astro wrapper via
import { squeezitAstro } from "squeezit/astro" - Next.js wrapper via
import { withSqueezit } from "squeezit/next" - esbuild plugin via
import { squeezitEsbuild } from "squeezit/esbuild" - Babel plugin via
import { squeezitBabel } from "squeezit/babel"
The supported programmatic integration surfaces are the root JS/TS API, the Gulp plugin, the Grunt plugin, the Vite plugin, the Webpack plugin, the Rollup plugin, the Parcel optimizer plugin, the Astro wrapper, the Next.js wrapper, the esbuild plugin, and the Babel plugin.
Gulp
const { src, dest } = require("gulp");
const { squeezitGulp } = require("squeezit/gulp");
exports.images = function images() {
return src("assets/**/*", { encoding: false })
.pipe(squeezitGulp())
.pipe(dest("dist/assets"));
};
Use encoding: false with Gulp 5 so binary buffers are not decoded as UTF-8. Supplied contents take precedence over file.path.…
Description from the npm listing.
- squeezit
- image
- images
- image-compression
- image-optimizer
- image-optimization
- lossless
- lossless-compression
- compress-images
- optimize-images
- cli
- javascript
- typescript
- vite-plugin
- webpack-plugin
- rollup-plugin
- parcel-plugin
- astro-integration
- esbuild-plugin
- gulp-plugin
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (170)Similar npm Webpack plugins plugins
All 20 squeezit alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/squeezit. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.