@mneme-ai/xray
v3.102.0
Published
Mneme Repo X-Ray — a signed, raw-free, deterministic X-Ray of any repo. Every number is reproducible from git/AST/metadata and sealed with an offline-verifiable NOTARY receipt. No source code ever leaves the machine; no LLM guesses anything.
Maintainers
Readme
@mneme-ai/xray — Repo X-Ray
Live: https://xray.mneme-ai.space — paste any public repo, get a signed health X-Ray in seconds (no install).
A signed, raw-free, deterministic X-Ray of any repo. Paste a public git URL (or point the CLI at a local path) and get a graded report: dependency mortality, secret leaks, bus factor, vitality, and complexity hotspots.
Three guarantees, by construction:
- Accurate. Every number comes from a deterministic
@mneme-ai/coreanalyzer (git history · AST outline · npm registry metadata · regex secret scan). No LLM guesses anything — the same repo at the same commit always produces the same report. - Private. Public repos are shallow-cloned to a temp dir, analysed, and deleted. The report is raw-free — it carries only metrics, counts, line numbers, symbol names, and hashes, never a line of source.
xrayLeaksRaw()proves it (gauntlet-enforced). Private repos never leave your machine: run the CLI locally. - Verifiable. The whole report is sealed with an Ed25519 NOTARY receipt any third party verifies offline with the embedded public key — no Mneme instance, no network, no shared secret.
CLI (local / private repos — nothing uploaded)
npx @mneme-ai/xray . # local folder (git OR not) — analysed in place
npx @mneme-ai/xray https://github.com/owner/repo # public repo
npx @mneme-ai/xray ./private-repo --publish \
--server https://xray.mneme-ai.space --token YOUR_KEY # send ONLY the signed, raw-free reportThe CLI works on any local folder — including one that isn't a git repo (git
signals are simply skipped). Source never leaves your machine; --publish sends
only the raw-free, signed report to your private dashboard.
Embed a badge
A signed, self-updating grade for any README — links back to the full report:
[](https://xray.mneme-ai.space/r/<fingerprint>)Server (the "Lighthouse")
npm run -w @mneme-ai/xray serve # http://0.0.0.0:8787| Endpoint | |
|---|---|
| POST /api/xray {gitUrl} | clone public repo → battery → raw-free gate → NOTARY seal → report |
| POST /api/verify {signed} | verify a report's receipt offline |
| GET /api/board | recent public X-Rays |
| GET /api/health | liveness |
| GET / | the clean white UI |
Env: PORT (8787) · HOST (0.0.0.0) · XRAY_DATA_DIR (./.xray-data).
Deploy 24/7 on DigitalOcean
One click (no command line) — authorize GitHub, get a public …ondigitalocean.app URL:
App Platform (CLI): doctl apps create --spec packages/xray/.do/app.yaml (auto-deploys on push to main).
Droplet (durable board):
docker build -f packages/xray/Dockerfile -t mneme-xray .
docker run -d --restart=always -p 80:8787 -v /srv/xray-data:/data mneme-xrayArchitecture — Lighthouse + Reactor
[ your machine: code ] --mneme-xray ./path--> raw-free signed report (private repos: never leaves)
[ public git URL ] --POST /api/xray-----> Lighthouse (DigitalOcean): clone → analyse → delete → signThe server (Lighthouse) only ever holds raw-free, signed reports. The accurate engine (Reactor) runs the same @mneme-ai/core functions whether local or in the cloud.
