What it does
Epitaph scans a JavaScript/TypeScript repository, builds a real module graph with the TypeScript compiler API, and finds exports nobody imports plus modules nobody reaches. Each finding becomes a tombstone with a cause of death, a confidence, git age, and a deterministic epitaph.
Evidence, not guesses
Entry points, imports and reachability from
ts-morph. Type-only imports count as usage; opaque re-exports are marked uncertain.
No regex heuristics.
A place, not a list
Filter by kind, confidence or name. Séance mode
lights the graves. ?plain=1 removes every atmospheric layer and leaves a plain,
keyboard-accessible tool.
Read-only by construction
“Prepare burial” returns a unified diff.
You review it, download it, and git apply it yourself. Epitaph never deletes or
rewrites your code.
Screens



?plain=1 — same tool, no atmosphere
Run it locally (60 seconds)
git clone https://github.com/afei8732-hub/epitaph.git cd epitaph npm ci npm start # http://127.0.0.1:4318
In the page, scan fixtures/haunted-sample — a tiny TypeScript repo with a known
body count (fixtures/haunted-sample/EXPECTED.json). Or use the CLI:
node bin/epitaph.mjs scan fixtures/haunted-sample
No login, no API key, no network access after npm ci. Node ≥ 20.11.
Built with Kiro
The whole build ran through Kiro. The repository keeps the working artefacts at the root, in
.kiro/:
- Two specs —
graveyard-engineandhaunted-atlas-ui, each with EARS requirements, a design document, and a numbered task list. - Three steering docs — product voice, technical stack, file boundaries.
- Four hooks — Kiro visibility, spec-task sync, secret screen, scanner contract tests.
- One MCP server —
mcp/graveyard-mcp.mjs, letting the agent query the scanner, fixture ground truth, and epitaph style mid-task.
119 testsNode.jsTypeScript compiler APIfast-checkMIT