About decomp.fun
A hub for matching decompilation projects
decomp.fun is a directory and leaderboard of matching decompilation projects: games being rewritten in C or C++ so that the source compiles back into exactly the original executable, byte for byte. Each game is listed once, with progress read straight from the project’s own builds. Everything runs by itself: projects are added, updated and removed without anyone reviewing them by hand.
Right now: 204 games from 210 repositories, 187 of them with a live progress report.
Terms
- Decompiled
- Code whose rewritten source compiles to exactly the same machine code as the original. The main percentage is the share of the game’s code, measured in bytes, that matches.
- Fully linked
- Decompiled code in source files that are finished and built from source in the project’s own build, rather than taken from the original binary.
- Partly decompiled
- Functions that are written but don’t match exactly yet, counted by how close they are. Shown as the faint stripes at the end of a bar.
- Data
- The game’s data (tables, strings, constants), measured the same way and shown in blue: decompiled, then fully linked. Data often lags behind code; the main percentage is code only.
- Complete
- 100% of the code decompiled.
- Source file (unit)
- One file of the project’s source, usually a single
.cor.cpp. The map on each project page has one box per file, sized by how much code it holds. - Build
- One specific executable of a game, such as the USA or Japan release. A project can track several.
Where the numbers come from
Each project’s own GitHub Actions build the game and upload a progress report in the objdiff format. decomp.fun reads the newest report from the default branch.
- Every project is refreshed every hour.
- Opening a project page asks GitHub (at most once a minute per project) whether there is newer progress. If there is, the site is rebuilt with it (about 2 minutes) and the page reloads by itself. This happens up to 100 times a day per project and 40 times an hour across the site; beyond that, the hourly refresh picks it up.
- GitHub deletes build artifacts after 90 days. A project that hasn’t published a newer report keeps its last known numbers, labelled as such on its page.
One listing per game
Several repositories can work on the same game. They share one listing: the one with the most code decompiled leads, and the others are shown on its page.
- Taking the lead. Another repository takes the listing after leading by at least 1 percentage point for 7 days in a row. A submitted repository must also have been listed for 30 days. A fork can’t take its parent’s place; its page offers a link to open a pull request instead.
- Comparing builds. Repositories are compared build to build. The same build ID with the same code size is the same executable. Different builds, such as USA and Japan, are both fine. The same build ID with a different code size is a conflict.
- Contesting. A submission that conflicts with the listed repository is shown as contesting on the game’s page. 2 independent contesters (different owners, no shared commits, repositories at least 30 days old) that agree with each other replace a submitted listing.
- Original listings (the ones inherited from decomp.dev) are never removed this way; they are marked contested instead.
Adding and removing projects
Adding is automatic: on Add a project, sign in with GitHub and paste the repository. It is checked within a few minutes; if it passes, it appears in the directory, or on its game’s page when the game is already listed.
Removing is automatic too. A repository that is deleted or made private disappears once it has been missing for three refreshes in a row and at least 48 hours (so a brief GitHub hiccup never removes anything). Archived repositories stay, tagged “Repository archived”. There is nobody to ask: the site only shows what is public on GitHub.
History
decomp.fun picks up where decomp.dev left off; its author retired that index in October 2026. The starting list of projects and the older history points were recovered from public Internet Archive snapshots of the decomp.dev index. Only facts were taken: names, repositories, systems and percentages. None of decomp.dev’s code is used; this site’s code is its own.
Data sources and licences
- Game lists from No-Intro and Redump, plus DOS.dat, via libretro-database (CC BY-SA 4.0).
- Arcade sets from MAME.
- Switch titles from titledb (MIT).
- Windows games from Wikidata (CC0).
- Built with Pico CSS and uPlot (MIT, licences).
- Card banners are drawn from each project’s own progress map; no game artwork is used. Game names belong to their owners, and all credit for the decompilations goes to the people doing them.
Privacy
- No analytics, no ads, no third-party scripts.
- Signing in with GitHub (only needed to add a project) sets a cookie for 7 days holding your GitHub username and numeric ID. decomp.fun sees only your public profile.
- Submissions are public: your GitHub username is shown next to each one on Add a project.
- Your theme and list layout choices stay in your own browser.
For scripts and agents
Start at /llms.txt. Every page is static, and the data behind it is plain JSON:
/<owner>/<repo>/history.json: progress over time./<owner>/<repo>/<build>/units.json: every source file of a build with its size and percentage decompiled./fresh.json: the commit each project page was built from./submissions.json: recent submissions and their results.