Key Concepts
Before using Mapnostics, it helps to understand the core ideas behind it. These six concepts appear throughout the product and explain why certain features work the way they do.
Concept browser
Click any term on the left to read its full definition. The browser auto-cycles through all six concepts with a typewriter effect β click to jump directly to any term.
πDead Code
Code that exists in the repository but is never executed at runtime. Dead code passes tests and compiles cleanly β it is invisible to most tools. Mapnostics identifies it by tracing every import and call site across the entire codebase.
Examples
- An exported function that no other file imports.
- A React component that was replaced but the old file was never deleted.
- A utility module from a feature that was rolled back.
π§Zombie Code
Code that is called but whose outputs are never consumed. Unlike dead code (never called), zombie code runs β it just produces results that go nowhere. More subtle and harder to detect, but often just as wasteful.
Examples
- A function that calculates a value, but the return value is always discarded.
- An event listener that fires but updates state that is never read.
- A fetch call whose response is parsed but never displayed or stored.
π₯Blast Radius
The set of files that would be affected if a given file, function, or export were changed or removed. Knowing the blast radius before making a change is the difference between a confident refactor and a production incident.
Examples
- auth.middleware.ts has a blast radius of 12 files β every protected route depends on it.
- A utility function has a blast radius of 1 β safe to rename or delete.
πDependency Graph
A directed graph where every node is a file and every edge is an import relationship. Mapnostics builds this graph from static analysis β no runtime required. The Code Map is a visual interface over this graph.
Examples
- App.tsx β Router.tsx β Dashboard.tsx β useData.ts β a 3-hop dependency chain.
- A file with 40 incoming edges is a high-risk hub β changes to it affect 40 other files.
πHealth Score
A composite 0β100 number representing the overall quality of a codebase. Calculated from dead code ratio, zombie code, average file size, test coverage, secrets exposure, and duplicate code. Updated after every re-index.
Examples
- Score 90β100: Healthy. Low debt, safe to move fast.
- Score 60β79: Moderate. Worth a cleanup sprint.
- Score 0β59: At Risk. Unpredictable blast radius on refactors.
πΊοΈIntent
The purpose and architectural role of a file β not what it does mechanically, but why it exists. Intent is recovered by AI from the file's content, commit history, and import relationships. When the original author leaves, intent is usually lost. Mapnostics reconstructs it.
Examples
- Intent of auth.middleware.ts: "JWT validation layer between HTTP requests and protected route handlers. Must run before any controller logic."
What's next
Now that you understand the core concepts, follow the Quick Start guide to connect your first repository and run your first analysis in under 5 minutes.