ForkFree

Developer tools

shrink-anything

by EL4CTEO

A command-line tool that finds unused code, files, dependencies and assets in a project and deletes them. After each cut it runs your own tests, keeping the change only if they still pass and putting it back if they don't.

Proof level: ReadHidden gemNew and promisingMIT

Get it on GitHubCompare

No demo yet

Proof level: Read. We read its README and licence and ran our automatic checks. We have not run it yet. So this page is based on its README and our automatic checks.

The catch

Hidden gemIt deletes dead code, files, dependencies and assets across 19 languages, then keeps each cut only if your own tests still pass. Failed cuts are split out and put back, and `undo` restores files byte for byte, so it is a safer way to trim code that agents have bloated. Best for developers with tested codebases, especially ones bloated by AI agents.
New and promisingUnder two months old. Expect rough edges and fast changes.

Check this first: Only as reliable as your tests; projects with weak or no tests could lose code that is actually used.

Things to check

  • Only as reliable as your tests; projects with weak or no tests could lose code that is actually used
  • Name-counting can miss code reached in unusual ways, so review the changes before merging
  • Some features hand work to an AI agent such as Claude or Codex, which may need a paid account

Can you use shrink-anything commercially?

Free to use, change and sell, including in paid products. Keep the copyright notice.

Not legal advice. Read the project's licence file before building a product on it.

What can you do with shrink-anything?

  • Scan a project to list dead code, unused files and unused dependencies without changing anything
  • Delete dead code and re-run your tests after each cut, with a one-command undo
  • Check where the weight of a build folder sits and shrink the bundle size

How do you get shrink-anything running?

Install globally with npm (npm i -g @el4cteo/shrink-anything) or with cargo (cargo install shrink-anything), then run it with your test command.

Follow the official instructions in the project README.

Make money with it

A freelancer could offer a codebase clean-up service, using the tool to trim client projects and showing the before and after report.

An idea, not financial advice. Check the licence before charging for anything built on it.

Ways a business could use it

  • Clear out dead code and unused packages in an existing app to cut build size and maintenance time
  • Tidy up code written by AI coding agents before delivering a client project, so the handover is smaller and easier to read

Checked 25 Nov 2026. Summary drafted by AI from the project's README. Proof level 1 of 4, Read: we read its readme and licence and ran our automatic checks. we have not run it yet.

Similar tools in Developer tools

xnulinux AFK-surf
Check the licence

xnulinux builds Apple's open-source XNU kernel and loads it as a module inside an arm64 Linux kernel, so a macOS 27 system disk can boot to the desktop alongside Linux. It is an experimental way to run macOS on arm64 Linux machines without a hypervisor.

Proof level: Read 3.6k stars +945 a day Unclear
rust-anything erkamyaman
New and promising

rust-anything is a command-line tool that records how an existing app behaves, then helps a coding agent rewrite it in Rust one piece at a time. Each Rust piece is checked against the recording before the next one is done, so the finished app behaves like the original.

Proof level: Read 9.4k stars +915 a day MIT
kiri libracoder
New and promising

Kiri is a lightweight container runtime written in Rust for macOS, Windows and Linux. It runs Docker images and works with the existing docker command, Compose and buildx, as a lighter alternative to Docker Desktop.

Instead of Docker Desktop, OrbStack

Proof level: Read 13.2k stars +958 a day Apache-2.0