tsconfig Visualizer
Paste several tsconfig.json files and see **how they extend and reference each other**. In a monorepo, click a node to see the **effective compilerOptions and the file each value comes from**. It also checks **missing targets, cycles, referenced projects without composite, solution configs missing `files: []`, and strict not being on**. Separate the files with lines like `// file: packages/app/tsconfig.json`. It runs in your browser and never sends your input to a server.
What you enter and your display settings are saved automatically in this browser (never sent to a server).
tsconfig diagram
Drag nodes to rearrange them (arrow keys work too). Hover or click to highlight only the upstream and downstream. Solid lines are extends (child → base); dotted lines are references (referencing project → referenced project).
Options compared
Effective values, file by file. Bold values are set in that file itself; faded ones are inherited (hover a cell to see which file sets it). An orange ⇡ marks a value that overrides one from a base.
Things to check
A mechanical check of the pasted files only. Files you did not paste and the contents of packages in `node_modules` are unknown, so nothing beyond them is judged.
GuideHow to use & features
- Paste the contents of tsconfig.json into the box. For several files, paste them one after another separated by lines like `// file: packages/app/tsconfig.json` (it is a comment, so a single file needs no marker). A sample is loaded at first.
- Solid lines are **extends (child → base)**; dotted lines are **references (referencing project → referenced project)**. External packages such as `@tsconfig/node20` appear as cloud nodes.
- Click a node to see what it extends, what extends it, what it references and what references it, plus the **effective compilerOptions and the file each value comes from** (such as `← tsconfig.base.json`).
- "Things to check" lists missing extends targets, extends and references cycles, referenced projects without composite (TS6306), solution configs missing `files: []`, and leaf configs where strict is not on.
- Use the checkboxes to show or hide extends, references and external packages, or to group by directory. Save the diagram as SVG or PNG.
FAQFAQ
What does the diagram show?
How tsconfig files **extend** (inherit settings from) and **reference** (project references) each other. In a monorepo you can follow the lines to see which base a package inherits from and what the build order is.Is the effective config the same as what tsc computes?
It layers `compilerOptions` by the same rules (your own value wins; later entries in an `extends` array win). Files you did not paste and the contents of packages in `node_modules` are unknown, so values set there are not shown. Like tsc, replaced options such as `paths` are not merged.What is a referenced project without composite?
A project that is listed in `references` must have `composite: true`; otherwise `tsc -b` fails with TS6306. Values inherited from a base through `extends` are taken into account.Is my input sent to a server?
No. Everything is processed in your browser. What you enter and your display settings are saved in this browser's localStorage and are never sent to a server. "Clear saved data" removes them.
Use casesCommon use cases
Find out why a monorepo option has a value
Click a package's tsconfig and see which base set `strict` or `moduleResolution`.Track down why `tsc -b` fails
Find TS6306 (referenced project without composite) and references cycles just by pasting.Understand a tsconfig setup you inherited
See configs scattered across files in one picture of inheritance and references.
NotesNotes & limitations
It is not the result of running tsc
It reads inheritance and references from file contents. Reference values are bundled for `@tsconfig/node16` to `node22`, `recommended` and `strictest`, but other packages in `node_modules` and files you did not paste are unknown, so values set there are not shown.`files`, `include` and `exclude` are not examined
It does not work out which sources belong to which project, and it cannot detect overlapping `include` patterns.Paths come from the marker lines you paste
Relative `extends` and `references` paths are resolved from the path in each `// file:` line. Without marker lines, everything is treated as `tsconfig.json`.
