You have just been handed a codebase you do not know. One command, one HTML page, under a second.
repo-xray ~/work/their-codebase --open
Not a ranking. A cover. The fewest files that are the only import route into most of the codebase, so the claim is one you can check by hand: nothing in those files is reachable by an import without passing through one of the entrances listed. On outline that is 1,657 of 2,098 files behind five entrances; on immich, 779 of 1,263.
Each entrance also names the files the rest of its region depends on most — the models, types and base classes the code is written in terms of. Where the graph is too flat for this to mean anything, as in a single-package Go project, the report says so instead of guessing.
repo-xray-lite is one Python file, MIT licensed, no dependencies and no install. It answers the first ten minutes of questions — how do I run this, what is big, what changes constantly, who is the only person who has ever touched it, is a credential committed:
curl -O https://raw.githubusercontent.com/AlexEnabled/repo-xray-lite/master/repo-xray-lite.py python3 repo-xray-lite.py /path/to/repo
It does not build the import graph, so it cannot tell you what your tests never reach, what is genuinely dead, or which imports will break in CI. That is the paid tool below. The free one is the honest half, not a crippled demo.
Five real reports for repositories you already know, one per supported language. Nothing was executed to produce them - the tool read the files and git log.
Tidy libraries are the easy case. These two are what you are actually handed:
Dead-code tools fail the same way: confidently wrong, you check three findings, all three are fine, and you never open the tool again.
Fifteen ways a static analyser lies to you — every false finding this tool produced on the repositories above, and what each one actually was. It is the most useful thing on this site even if you never buy anything.
What a static reader gets wrong about a modern codebase — and then I pointed it at four repositories people actually work in, and it said 970 of immich's files were dead. Sixteen are. Eleven causes, with the line of real code behind each, and how about 80 false findings became 15 real ones.
On the five tidy repositories above it reports no missing production dependencies and no dead files, because there are none. On the four large modern ones it reports 15 undeclared production imports across 8,700 source files, and every one of them is real. It knows that an import inside try: / except ImportError: is optional by design, that node:path is a builtin, that a package imported only from docs/ is a dev dependency, that config files and scripts/ tools are run rather than imported, and that import.meta.glob('./*.tsx') really does load those files. Where code is loaded from a variable it cannot resolve, the report says the dead-code list cannot be trusted rather than guessing.
No import, no install, no test run, no network. It will not even read per-file history on a partial clone, because that would quietly download every missing file.
Python, JavaScript/TypeScript, Go and Rust get the import graph; other languages are inventoried and explicitly not judged. Python 3.10+, no dependencies. One developer, every repository you work on, client work included.
env-xray — the same approach pointed at configuration: what must be set before your repo starts somewhere else, what fails silently instead, and what your .env.example forgot. Four sample reports, and why environment-variable linters cry wolf.