MapnosticsDOCS
← Back to Main Site
Docsβ€ΊGetting Startedβ€ΊKey Concepts
πŸ’‘

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.

NOTE
This page is for new users getting oriented. If you already understand these terms, jump straight to the feature documentation or the Quick Start guide.

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.

mapnostics.com/docs/key-concepts
Concept Browser
Click any term to explore the definition
6 TERMS
ACCURACY
DEFINITION
Β 

πŸ”Dead Code

ACCURACY

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

DETECTION

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

SAFETY

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

VISUALIZATION

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

METRICS

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

AI-POWERED

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.