
slimdeer: the ioredis author had AI write an image compressor that beats TinyPNG; 12 days, 500 stars
What it is An open-source image compressor written in Rust, usable from the command line and locally in the browser. No quality setting to tune: for each image it automatically finds the smallest file that still meets the quality bar, claiming 8–12% smaller PNGs than TinyPNG at the same quality.
Why it took off The ioredis author launched it on V2EX and X the same day, with a title aimed squarely at TinyPNG, which almost everyone has used. The README is a reproducible benchmark, and it comes with an "AI built this" story. Then he added a format and posted an update every two or three days, which kept it trending for two weeks.
BHow you could follow it Don't build another image compressor. Copy the approach with a different closed-source benchmark (PDF compressors, background removers, video compressors, tools that upload files or charge fees). Use AI to build a local open-source version, put "N% smaller at the same quality" and a reproducible benchmark on the first screen of the README, and after launch ship features frequently with another post each time.
- Data (updated daily) · Repo created 2026-10-25 · 507 stars · 7 days +97
GitHub · stars Data 2026-10-27 → 2026-11-08 (13 days, 13 observations). Points before 10-28 come from deeply / archive backfill, not every day has one
2026 Oct 27, early morning 8 (Beijing time), Zihua Li (GitHub luin), creator of ioredis and former CTO of Shimo, posted in V2EX's "share your creations" node with the title "pngdeer — the best open-source PNG compression library (beats TinyPNG by 8%–12%)." The first sentence of the post: "I originally just wanted to test the limits of AI: I handed every PNG file on my computer to Opus 5.5 and asked it to build a compression tool that beats TinyPNG." The library got 113 stars that day, 284 the next day, and 12 stars in 502 days since the repo was created (GitHub, 11-06). Image compression is an old category that has been crowded for over a decade. This one broke out partly on the author's reputation and partly on a pattern anyone can copy: pick a closed-source benchmark everyone has used, make yours open-source and local, and prove you win with a reproducible leaderboard.
What it is
An open-source (MIT) image compressor written in Rust, with a command line (installable via brew install) and a browser version. The browser version is WebAssembly, so images are not uploaded. It started as PNG-only, then gained WebP, JPEG, AVIF and APNG animation support. In Nov 4 it was renamed slimdeer, and the author joked on X about "daily regret over the project name +1".
Its biggest difference from others is that there is no quality slider. For each image it tries 2 to 256 color counts, with and without dithering, and two palette algorithms. It scores results with the perceptual quality metric SSIMULACRA2, then picks the smallest file that still meets the quality bar. Users don't have to guess whether to set quality to 70 or 80.
The cost is speed: each image is encoded several times. A V2EX user, NickyPP, said: "With no visible difference, it's about 20% smaller than pngquant, which I normally use, but it is a bit slow." The author's answer: sacrificing speed for quality is worth it, since you compress once and use the result for a long time, and the bandwidth saved is worth more.
Why this one
People knew the name first. luin has 4944 followers on GitHub, and his V2EX bio reads "former CTO @Shimo, author of ioredis". The first post got 33 replies. The same day, a Chinese AI news site reposted it under the title "AI-built open-source PNG compression library", and someone posted a YouTube video the same day (204 views). It wasn't on Hacker News or Product Hunt, and no Reddit hits turned up. It also didn't make GitHub trending, since trending excludes repos under about two months old. The first wave was almost entirely the author's own Chinese developer circle.
The headline travels in one line. "Open source, and even smaller than TinyPNG". TinyPNG is an image compression site nearly every web and app developer has used. It is closed-source, requires uploads, and charges for its API. Using it as the target means no explanation is needed. The repo topics also include tinypng-alternative and tinypng-cli, which match searches for "TinyPNG alternatives" (inferred).
The README reads like a research report. 180 images, split into a tuning set of 109 and a held-out set of 71 collected only after tuning. For open-source rivals, each image gets the best of ten settings picked after the fact; slimdeer only gets whatever its own search finds at compression time. It also re-runs the test on butteraugli, a metric it never optimized for, and still comes out 6–9% smaller. The whole suite can be re-run. English site LockerGnome 10-29 wrote it up and singled out the held-out set. Technical readers hate self-promotion, and this leaderboard shuts down doubt up front, so people actually star it.
AI has another layer of spread. "Hand a PNG to Opus 5.5 and have it beat TinyPNG" is good material for AI coding discussions, and people who don't care about image compression will still share it.
Of these, only the first can't be copied by a follower. "8–12% smaller than TinyPNG" by itself isn't new: a tuned pngquant roughly ties TinyPNG too (on its own leaderboard the gap is 0.0 points). What makes people share is the combination: open source, reproducible, beats the closed-source benchmark, and was built with AI.
Where the stars came from
| Date | Cumulative stars (GitHub, logged daily) | What happened |
|---|---|---|
| 10-25 | 0 | Repo created |
| 10-27 | 113 | V2EX launch post, X: "The best-performing PNG compressor is now open source!", re-posted by a Chinese aggregator the same day |
| 10-28 | 284 | Single-day +171, peak; X post "Now supports WebP (still underestimating AI…)" |
| 10-29 | 326 | LockerGnome English write-up |
| 10-30 | 341 | X post "Now supports jpg (daily regret over the project name +1)" |
| 10-31 – 11-04 | 385 → 431 | +5 to +45 per day |
| 11-05 | 473 | +42; after the rename, V2EX second post "slimdeer: a next-gen open-source image compression and format conversion library" |
| 11-06 | 502 | 43 forks |
The peak didn't drop to zero, thanks to the author's rhythm: for over a week after launch, a new format every two or three days, with an X post each time; finally a rename and another round, which pulled in another +42 day.
The V2EX launch thread was itself a growth engine. Someone said "you could add an mcp feature", and the author replied "Great idea! Adding it now"; someone asked about compressing a whole folder, and a few floors later the author replied "already supported"; someone asked about APNG animations, and again a few floors later "already supported"; someone posted a three-way comparison table across 39 images. User iHongRen wrapped it into a macOS menu bar app, Mite, the same day, and someone said they'd wrap a Python SDK "for production use". By 11-06 there were 7 satellite libraries, each with 0–3 stars, and no feature copycats.
There's another layer: slimdeer's site sits at heydeer.ai/open-source/, and HeyDeer is the author's company in Singapore, whose main business is AI code review (pricing page from $75/month). HeyDeer also turned one of slimdeer's PRs into a "real AI code review" example page. This is using a small open-source tool to build reputation for the core business; whether it converts is unknown.
What a follower can actually take
Building yet another "smaller than TinyPNG" compressor probably gets you nothing. In this space Squoosh has 26k stars, ImageOptim 10k, Caesium 6000+, pngquant 5700+. slimdeer already owns the spot "open source beats TinyPNG", and the author is still iterating fast.
What you can take is the playbook. It has three parts, and only one depends on fame:
- Target: a closed-source tool everyone has used that charges or requires uploads.
- Evidence: a reproducible leaderboard where even the rival's best settings lose, placed on the first screen of the README.
- Rhythm: adding features and posting updates repeatedly in the two weeks after launch, and taking requests in comments on the spot.
Fame decides how many people see it on day one. The last two decide whether those people star and share.
If it were you
B. "Open source + local + reproducibly beating a closed-source benchmark" is a pitch that hasn't been overused, and with AI writing code, one person can build a convincing leaderboard in weeks. But slimdeer's first wave came from the author's fame; 500 stars is only middling for an author with 5000 followers, and anyone without their own channel should discount that.
Good fit for: developers who know a file-processing niche (PDF, video, audio, fonts, GIF); people willing to build test sets and run benchmarks; people with some presence on V2EX, the Chinese X community, or an English community.
Bad fit for: anyone who just wants to build another image compressor; anyone without hard numbers who only wants to write "faster and easier"; anyone who posts and then ignores the comments.
How: pick a closed-source benchmark that people use daily but that requires uploads or payment: web tools like Smallpdf and iLovePDF for PDFs, remove.bg for background removal, and the sites for video, GIF compression and format conversion (these targets are inferred; nobody has verified they'd earn stars). Use AI to build the core algorithm, ship a CLI plus an in-browser version, and go zero-upload. Put three things on the README's first screen: one sentence "N% smaller at the same quality as X", a live demo link, and a leaderboard. Split the test set into tuning and held-out images, give rivals their best settings after the fact, and re-run with a second metric. You could also target what slimdeer does poorly: it's slow, with a large image in the browser taking ten seconds to a minute, so a "slightly worse but ten times faster" version may have its own audience (inferred).
How to get users: on launch day, post to both V2EX ("share your creations") and X, with the target's name and the percentage in the title; open the body with how you had AI build it. After that, post once for every feature you add, build comment requests the same day when you can, and reply "already supported" when you do. Put "<target>-alternative" in your topics.
Deadline: the story "AI alone built something that beats an established closed-source tool" is still fresh, with maybe a few months left; once posts like this multiply, the AI angle's pull will fade first.
Where this estimate could be wrong: ① someone without fame follows this playbook for a different category, an "open-source X", and passes 300 stars within a month, which would mean the playbook is enough and B is too low; ② conversely, a famous author copies it and it doesn't take off, which would mean slimdeer leaned mainly on the ioredis brand; ③ TinyPNG updates its algorithm and pulls ahead, so "beats the benchmark" stops being true and the pitch loses force.
Data and sources
- GitHub: heydeer/slimdeer's README, topics, stars and forks (recorded daily since 10-27, 11-06 live with 502 stars, 43 forks); author luin's profile.
- V2EX: t/1252084 (10-27 launch post and replies), t/1254634 (11-05 second post).
- X: @luinlee posts on going open source (10-27), WebP (10-28), JPEG (10-30), and the rename (11-04).
- Coverage and reposts: LockerGnome (10-29), 80aj, it8090, Baffox, youtol; YouTube Alex Hitt (10-27,204 views).
- HeyDeer: heydeer.ai/open-source/slimdeer, heydeer.ai/examples/slimdeer-pr-6, heydeer.ai/pricing.
- Rival star counts: GitHub (around 11-06).
Research notes: competitor table, acquisition evidence, full research report
- Competitors
Name Where Launched Scale How it differs from this one TinyPNG / Tinify Web About 2014 Default industry image compressors (traffic unverified) Closed source, requires uploads, paid API; slimdeer claims smaller at the same quality, free, local pngquant / libimagequant Open source 2009 5,773 / 938 stars Quality must be tuned by hand; slimdeer searches parameters per image, so more images hit the target on the leaderboard Squoosh Open source 2018 26,153 stars Local web compression, but you pick the encoder and quality manually; slimdeer is fully automatic oxipng Open source 2016 4,312 stars Lossless optimization, smaller savings Caesium Open source 2016 6,464 stars Desktop GUI, manual quality tuning ImageOptim Open source 2013 10,029 stars Mac-only, combines existing tools imgo / TinyPNG4Mac Open source 2016 / 2015 4,463 / 3,999 stars Wraps pngquant or the TinyPNG API ShortPixel / Compressor.io Web Years Not verified Commercial, requires uploads; the author's single-image test claims smaller at the same quality - Where users come from
- Verified V2EX (posted by the author): 10-27 post t/1252084,33 with replies, including user tests; 11-05 second post t/1254634
- Verified Author's personal X update thread: @luinlee posts on going open source (10-27), WebP (10-28), JPEG (10-30), rename to slimdeer (11-04); peak 10-28 +171
- Verified Author's personal reputation: luin has 4,944 GitHub followers; author of ioredis (15k stars), former CTO of Shimo
- Verified AI coding story reposts: 80aj/it8090 "AI coding builds the open-source PNG compression library pngdeer"; the original post says it was built with Opus 5.5
- Verified Aggregators / small media / YouTube: LockerGnome 10-29, Baffox, repolode, ossradar, forkfree; YouTube Alex Hitt 204 views
- Inferred GitHub topic search (tinypng-alternative): topics include tinypng, tinypng-alternative, tinypng-cli
- Inferred HN / PH / Reddit: no results in the hackernews library or in search
heydeer/slimdeer (formerly pngdeer): why it hit about 500 stars in 12 days
Research day 2026-11-06. Star counts come from our github library (repo_day) and the GitHub API (live 11-06 stars, 502 forks, 43).
One line
slimdeer is an open-source image compression tool written in Rust, with both a command-line and a browser version (WebAssembly, images are not uploaded). It has no quality slider: for each image it searches for the smallest file that still passes the perceptual SSIMULACRA2 threshold. The README claims PNGs at the same quality come out 8–12% smaller than TinyPNG. The author is Zihua Li of HeyDeer, a Singapore company whose main business is AI code review (GitHub luin, X @luinlee). He is the author of ioredis and former CTO of Shimo.
Verdict
It took off mainly because of three things:
- The author is already known in Chinese developer circles: the V2EX post and the X post went out the same day, and stars rose by about 280 that day and the next.
- A title that spreads easily: "Open source, and smaller than TinyPNG." TinyPNG is the benchmark everyone has used.
- The README is written like a research report: 180 images, a held-out set, a reproducible bench, and rivals given the "best settings picked after the fact" treatment. So technical readers trust it and are willing to share it.
It's also a story about the limits of AI: the author handed every PNG on his computer to Opus 5.5 and asked it to build a tool that beats TinyPNG. That spread it through AI coding discussions too.
The star momentum has lasted because the author iterates often and posts on X each time: 10-28 added WebP, 10-30 added JPEG, then AVIF and APNG, and 11-04 renamed to slimdeer with another post.
Star curve (github library, repo_day)
| Date | stars | Event |
|---|---|---|
| 10-25 | 0 | Repo created |
| 10-27 | 113 | V2EX post "pngdeer — the best-performing open-source PNG compression library (beats TinyPNG by 8%~12%)" (UTC 00:22, Beijing 08:22), with 33 replies; X posted "The best-performing PNG compressor is now open source!" in the same period; Chinese aggregators (80aj, it8090, aiproducthub, Baffox) re-posted it the same day; YouTube Alex Hitt (14.9k subscribers) published a video the same day, 204 views |
| 10-28 | 284 | Single-day +171, peak; X post "pngdeer now supports WebP (still underestimating AI…)"; Builderoom listed it. |
| 10-29 | 326 | LockerGnome's English write-up (it states the author's self-test and that HeyDeer sells AI code review) |
| 10-30 | 341 | X post: "PNGDeer now supports jpg (daily regret project name + 1)" |
| 10-31 – 11-04 | 385→431 | +5~45 per day, long tail; the author retweets user praise |
| 11-04 | 431 | Renamed to slimdeer; X post: "Officially launching slimdeer" |
| 11-05 | 473 | +42; V2EX second post: "slimdeer: next-gen open-source image compression and format conversion library" |
| 11-06 | 493 (live 502) |
Has never hit GitHub trending (trending_days_any=0), because trending only takes repos about 60 days old. The HN database has no pngdeer, slimdeer, or heydeer story (checked the hackernews database, both repo and keyword searches), and Reddit turned up nothing either. Nearly all the traffic comes from the Chinese developer community and the author's own X account.
Competitors
| Competitors | Form | Launched | Scale | How it differs from slimdeer |
|---|---|---|---|---|
| TinyPNG / Tinify | Web + API (paid) | About 2014 | The industry default for "compress images" tools, with huge traffic (exact figures unverified) | Closed source, uploads required, API is paid; slimdeer claims the same quality at smaller size, free, and runs locally |
| pngquant / libimagequant | Open source, C/Rust | 2009 | 5,773 stars / 938 stars | Same class of algorithm as TinyPNG's; quality has to be tuned by hand. In slimdeer's leaderboard it ties TinyPNG, with fewer images hitting the target |
| Squoosh(Google Chrome Labs) | Open-source web app | 2018 | 26,153 stars | The benchmark for local browser compression, but you pick the encoder and quality manually; slimdeer picks quality automatically |
| oxipng | Open source Rust | 2016 | 4,312 stars | Lossless optimization, smaller savings; slimdeer does lossy quantization |
| Caesium | Open-source desktop | 2016 | 6,464 stars | GUI batch compression with manual quality tuning |
| ImageOptim | Open-source macOS | 2013 | 10,029 stars | Combines tools like pngquant, mac only |
| imgo / TinyPNG4Mac | Open-source desktop | 2016 / 2015 | 4,463 / 3,999 stars | The former wraps pngquant, the latter is a TinyPNG API client |
| ShortPixel, Compressor.io, etc. | Commercial web / plugins | Years | Not verified | Requires uploads and charges; a V2EX user mentioned ShortPixel, and the author replied that pngdeer is smaller at the same quality (single-image test) |
| jpegli / mozjpeg / avifenc | Encoder | Several years each | jpegli 419 stars | slimdeer uses mozjpeg and libaom directly as encoders and adds "automatic quality-point finding" on top |
The space is crowded, and every player is an established repo. In the last 7 days, the only new image-compression repo to appear in our github database was slimdeer (github search results).
Growth levers (ranked by strength of evidence)
- Author's personal account + V2EX (confirmed). luin has 4,944 followers on GitHub, known as the ioredis author and Graphite's CTO. The first V2EX post got 33 replies, including real benchmarks (user ddter ran a three-way comparison on 39 images; NickyPP said it's about 20% smaller than pngquant but slower). The author replied to nearly every comment and took requests on the spot: folder batch processing, WebP, APNG, MCP.
- Serial X update posts (confirmed): 10-27 open source, 10-28 WebP, 10-30 JPEG, 11-04 renamed and reposted. Each one carries self-deprecating "regret the project name" humor, which makes them easy to retweet.
- AI coding narrative (confirmed). The original post opens with "wanted to test the limits of AI... handed it to Opus 5.5", and Chinese AI news sites then reposted it as "Building an open-source PNG compression library with AI coding" (80aj.com, it8090.cn).
- Auto-aggregator sites and small English media (confirmed, low volume): LockerGnome, Baffox, repolode, ossradar, upstar, forkfree ("free open-source TinyPNG alternative"), youtol, Builderoom.
- GitHub topic SEO (inferred): the topics include tinypng, tinypng-alternative, and tinypng-cli, targeting searches for "TinyPNG alternative".
- Ecosystem spinoffs (confirmed): V2EX user iHongRen built a macOS menu bar app, Mite, the same day; there are also a Lazycat microservice package, an oxlint plugin, a one-click deploy guide, nightly binary builds, and 7 other side repos. Users are spreading it for them.
- Traffic to HeyDeer (confirmed): the project page sits under heydeer.ai/open-source/; HeyDeer also turned slimdeer's PR #6 into a "real AI code review" example page. This is the "open-source tool as lead generation" play, with revenue coming back from AI code review subscriptions ($75/month and up, conversion unverified).
No evidence found of HN, Product Hunt, Reddit, paid promotion, or TikTok.
Differentiation
- No quality slider, parameters are searched per image: for each image it tries 2–256 colors, with and without dithering, and two palette builders, scoring in-process with SSIMULACRA2. The target quality is matched to "roughly what TinyPNG gives", with a ceiling of 90. Rivals either fix their parameters or leave the guessing to the user.
- Turning "better than TinyPNG" into a reproducible leaderboard: there is a held-out set (71 images collected after tuning was finished), competitors get their best settings after the fact, and butteraugli serves as a second opinion. This is its most persuasive feature, and LockerGnome specifically praised the held-out set.
- The CLI and browser run the same Rust code, with byte-identical output, and nothing is uploaded: better privacy than TinyPNG, and more convenient to use than Squoosh.
- The trade-off: it's slow. Each image is encoded 6–12 times, taking 5–15 seconds per image; users report "it really is a bit slow".
The differentiation is why it took off, but only half of it. "8–12% smaller than TinyPNG" isn't new by itself; pngquant with well-tuned settings is about as good as TinyPNG. What makes people share it is the story: "open source, reproducible, beats the closed-source benchmark", plus "built with AI". The author's reputation got the first wave of eyeballs; the data is what made them star it.
Visibility
It's circulating in small circles. The Chinese developer community (V2EX, the Chinese X scene, AI news aggregators) and a few English aggregators know about it. It has not appeared on HN or PH, and no big accounts or mainstream media have covered it. It's free and open source, so there's no public revenue.
Copycats
No direct copycats. Everything is wrappers and side projects: Mite (macOS app, 3 stars), pngdesk (browser workbench), pngCompressor (a three-way comparison), the Lazycat package, oxlint-plugin-pngdeer, pngdeer-deploy-guide, and slimdeer-binary, all at 0–3 stars.
What others can borrow
- Pick a closed-source benchmark everyone has used (TinyPNG), position as "open source + local + beats it on a reproducible benchmark", and put that line in the title and description.
- Write the README as a research report: include a held-out set, be generous to competitors, make it reproducible, and preempt the "self-promotion" objection.
- Ship features often in the days after launch, post on X with each one, and stretch a single launch into a two-week long tail. You can also rename and relaunch.
- Use the open-source tool to lead traffic to the main business (AI code review), and let the tool repo itself serve as the example for the main product.
Unknowns
- Unknown: luin's X follower count and the retweet numbers for the first X open-source post.
- Inclusion in awesome-rust is unverified (mentioned in recall notes).
- Unknown how many stars converted to real use (brew installs, web visits), and unknown how much it drove traffic to HeyDeer's main business.
- The benchmark is the author's own test; not sure whether it still leads after TinyPNG updates.
Sources
- GitHub: github.com/heydeer/slimdeer (README, API 11-06)
- V2EX: www.v2ex.com/t/1252084 (10-27,33 replies), www.v2ex.com/t/1254634 (11-05)
- X: x.com/luinlee/status/2117874917433839803 (11-04); WebP and JPEG update posts via the todayrss mirror: cn.todayrss.com/t/wfMb8D93Kt, cn.todayrss.com/t/NGhhK4zgGr
- LockerGnome:lockergnome.com/pngdeer-free-png-compressor-smaller-than-tin… (10-29)
- YouTube: www.youtube.com/watch?v=sQ8sN8hlG_I (10-27,204 views)
- Chinese reposts: www.80aj.com/2026/10/27/pngdeer-compression-ai/, baffox.com/pngdeer-lossy-png-compressor/, youtol.cn/article/1608
- HeyDeer example page: heydeer.ai/examples/slimdeer-pr-6; pricing heydeer.ai/pricing
- Our repo database: github (repo_profile/repo_day/search), hackernews (no results), 2026-11-06 queries