A zero-configuration build tool for the web that bundles HTML, CSS, JavaScript and assets without a config file.
microsoft/TypeScript
A typed superset of JavaScript that adds optional static types and compiles to readable, standards-based JavaScript.
- Stars
- 111,543
- Forks
- 16,709
- Open issues
- 5,144
- Last commit
- 9 hours ago
What is it?
TypeScript is a programming language for building application-scale JavaScript. It adds optional type annotations to JavaScript, which enable editor tooling and static checking across large codebases.
TypeScript code compiles to plain JavaScript that runs in any browser, on any host, and on any operating system. The compiler's output is readable and follows web standards, so existing JavaScript can be adopted incrementally.
The project is distributed on npm as the typescript package, with a nightly build available under the next tag. A browser-based playground lets you try the language without installing anything.
Key features
- 01Optional static types added to JavaScript syntax
- 02Compiles to readable JavaScript that targets browsers, Node.js and other hosts
- 03Editor tooling support for large-scale codebases
- 04Distributed on npm with stable and nightly releases
- 05Browser-based playground for trying the language
Use cases
- Building large front-end or Node.js applications that need static type checking
- Adding types incrementally to an existing JavaScript project
- Catching type errors during development before code runs
Quick start
- 1
Install the latest stable TypeScript via npm
npm install -D typescript - 2
Or install nightly builds via npm
npm install -D typescript@next - 3
Try it out in the online playground
Things to know
- The README does not describe a standalone runtime; it is installed as a compiler package via npm.
Topics
FAQ
- What is TypeScript?
- A typed superset of JavaScript that adds optional static types and compiles to readable, standards-based JavaScript. TypeScript is a programming language for building application-scale JavaScript. It adds optional type annotations to JavaScript, which enable editor tooling and static checking across large codebases.
- Is TypeScript free to use? What license does it have?
- TypeScript is open source under the Apache-2.0 license. Check the license terms before using it in commercial products.
- Is TypeScript still maintained?
- Actively maintained. The last commit to TypeScript was on Oct 21, 2026.
- What can I use TypeScript for?
- Building large front-end or Node.js applications that need static type checking Adding types incrementally to an existing JavaScript project Catching type errors during development before code runs
- How do I install TypeScript?
- Install the latest stable TypeScript via npm: npm install -D typescript Or install nightly builds via npm: npm install -D typescript@next Try it out in the online playground
- Where can I get TypeScript?
- The source code and installation instructions are on GitHub: https://github.com/microsoft/TypeScript
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
An extremely fast JavaScript, TypeScript, JSX and CSS bundler with a CLI, JS and Go API.
A experimental TypeScript and JavaScript compiler that turns programs into native executables or WebAssembly, without requiring Node.js at runtime.
A JavaScript module bundler that packs many modules and assets into a few bundles, with code splitting and loaders for non-JS files.
Open source React and Svelte libraries for building interactive node-based UIs such as flowcharts, graphs and workflow editors.
A Go framework for building cross-platform desktop apps with a web frontend (React, Vue, Svelte, etc.) using native rendering engines.