As a monorepo grows, tsconfig settings scatter across tsconfig.base.json, per-package tsconfig.json files and the root one. Finding out which file a strict comes from, or why tsc -b fails with TS6306, takes longer than it should.

The tsconfig Visualizer draws how tsconfig files extend and reference each other from several pasted tsconfig.json files. It never runs tsc and works only in your browser.

Screenshot of the tsconfig Visualizer

How to paste

Separate the files with lines like // file: packages/app/tsconfig.json. The line is a JSONC comment, so a single file needs no marker. Relative extends and references paths are resolved from the path on that line.

Reading the diagram

  • Solid lines are extends, from the inheriting file to the base
  • Dotted lines are references, from the referencing project to the referenced one
  • External packages such as @tsconfig/node20 appear as cloud nodes
  • A “solution-style” config that compiles nothing itself (files: [] plus references) appears with a gateway icon

Click a node to see its effective compilerOptions with the file each value comes from (strict: true ← tsconfig.base.json).

Reading the inheritance

  • When extends is an array, lines are numbered ①②; later numbers win
  • A node’s details show the inheritance chain as a tree
  • In the comparison table and details, a setting that overrides a base value is marked ⇡, such as “overrides true from tsconfig.base.json”

What is checked

Check What happens
Referenced project is not composite: true tsc -b fails with TS6306
extends or references cycle tsc cannot resolve the config
references without files: [] Sources are compiled twice
composite together with noEmit A composite project must emit .d.ts
strict is not on in a leaf config Type checking stays loose
include overlaps another project The same sources are compiled in two projects
extends or references target not pasted A hint that you forgot to paste it

Values inherited through extends are taken into account, so “the base has composite: true” is read correctly.

FAQ

Does it replace tsc --showConfig?

No. --showConfig shows what the real tsc resolved. This tool only reads the structure of inheritance and references from the pasted files.

Is my input sent to a server?

No. It is processed in your browser, and your input and display settings are saved in this browser’s localStorage.

Summary

  • Follow the lines to see inheritance and references
  • See which file sets each value
  • TS6306, cycles and missing files: [] are checked just by pasting
  • Everything runs in your browser