TSConfig Builder
Build a tsconfig.json from five presets with target, module, strict flags, path aliases and project references, with an explanation of each option.
TSConfig Builder
Preset
Compilation
Strictness
Modules & output
Paths
No path aliases. Set baseUrl above and click Add.
Project references
For monorepos with multiple tsconfigs. Enable composite to use.
Files
{
"compilerOptions": {
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "Bundler",
"lib": [
"ES2022"
],
"strict": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
"skipLibCheck": true,
"resolveJsonModule": true,
"outDir": "./dist",
"rootDir": "./src"
},
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
"dist"
]
}tsconfig.json updated, 25 lines
Updated . Provided as is. Check the output before you rely on it in production.
How to use TSConfig Builder
- 1
Pick a preset
Choose a starting preset that matches your project: node-app for backend services, react-app for Vite-based React, library for npm packages, monorepo-root for project references, or deno for the strictest flags.
- 2
Tune compilation targets
Adjust target, module, moduleResolution, and lib to match your runtime. Bundler resolution pairs with Vite/esbuild; NodeNext targets native Node ESM.
- 3
Set strictness flags
Toggle strict (the master switch) and individual flags such as noUncheckedIndexedAccess and exactOptionalPropertyTypes. Hover any option for an inline explanation panel.
- 4
Add path aliases and references
Define path mappings like @/* to src/* (set baseUrl first) and add project references for monorepos. Each row updates the live preview on the right.
- 5
Copy the JSON
Inspect the live tsconfig.json on the right, then click Copy to drop it into your project. The output is comment-free, valid JSON, ready to commit.
Questions and answers
What is TSConfig Builder?
Which presets are included?
Does it explain each compiler option?
Does it send my data to a server?
Can I extend the output later?
For AI agents: how to call this tool
Machine-readable contract, endpoints and examples. Humans can ignore this section.
Best Path For Builders
Browser workflow
Runs instantly in the browser with private local processing and copy/export-ready output.
Browser Workflow
This tool is optimized for instant in-browser execution with local data handling. Run it here and copy/export the output directly.
/tsconfig-builder/
For automation planning, fetch the canonical contract at /api/tool/tsconfig-builder.json.