BuildSanely

Pixcrush is a CLI tool that converts PNG and JPG images to optimized WebP, compresses them, and safely rewrites your source code references so nothing breaks.

15
2
100% credibility
Found Mar 05, 2026 at 15 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
TypeScript
AI Summary

pixcrush is a tool that finds PNG and JPG images in web projects, converts them to smaller WebP versions, updates code links to the new images, and optionally removes the originals.

How It Works

1
πŸ” Discover pixcrush

You find pixcrush while looking for an easy way to make your website images load faster and save space.

2
πŸ—‚οΈ Open your project

You go to the main folder of your website project where all your images and pages live.

3
πŸš€ Launch the helper

You start pixcrush and it gently asks if you want a safe preview first and whether to remove old images later.

4
πŸ‘€ See the preview

It shows you a clear list of what images it will shrink and which spots in your pages it will update, so you know it's safe.

5
βœ… Go ahead

You give the okay, and it quietly shrinks the images to tiny versions while fixing all the links automatically.

πŸŽ‰ Faster website

Your site now loads super quick with smaller files, everything works perfectly, and you saved lots of space!

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 15 to 15 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is pixcrush?

Pixcrush is a TypeScript CLI tool that scans your React or Next.js codebase, converts PNG and JPG images to optimized WebP formats, compresses them if smaller, and safely rewrites code references so nothing breaks. Run `npx pixcrush .` to migrate images in `/public` or scattered paths without manual hunting for imports or src attributes. It handles monorepos like Turborepo, skipping SEO assets like favicons.

Why is it gaining traction?

Dry-run previews changes without touching files, and it auto-deletes originals only after verifying parses succeed, preventing disasters. Smart skips avoid bloating if WebP isn't smaller, plus it flags unused orphan images for cleanup. Non-interactive flags like `--quality 90 --delete-originals` make repeats fast.

Who should use this?

Frontend devs on Next.js or React apps with bloated PNG/JPG assets in public folders, especially in monorepos where paths nest deep. Teams prepping for production who hate tedious find-replace on image refs and want one-command WebP migrations.

Verdict

Try the dry-run on a real repoβ€”solid docs and prompts make it low-risk despite 15 stars and 1.0% credibility score signaling early maturity. No tests visible, so commit first; fills a real gap for safe image optimization.

(178 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.