TypeScript

A strongly typed superset of JavaScript that compiles to clean, portable JavaScript.

Tool
npm
v7.0.2
111,371 stars
Apache License 2.0

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
97 /100 Excellent
Development Activity 100
Maintenance 96
Community 92
Maturity 60
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
89 /100 Excellent
Architecture 92
Code Quality 90
Innovation 85
Learning Curve 85

TypeScript is an open-source language developed by Microsoft that adds optional static typing to JavaScript. It is a strict syntactical superset of JavaScript, so every valid JS program is also valid TypeScript, but its type system lets you annotate code, catch entire classes of bugs before runtime, and unlock rich editor tooling like autocompletion and safe refactoring.

The TypeScript compiler (tsc) type-checks your code and transpiles it to standards-based JavaScript that runs in any browser, on any host, and on any OS. The same engine powers tsserver, the language service behind first-class editor support in virtually every modern IDE.

What You Get

  • The tsc command-line compiler that type-checks and transpiles TypeScript to clean JavaScript.
  • A tsconfig.json-driven configuration surface for targets, module systems, and strictness levels.
  • The tsserver language service that powers completions, diagnostics, and refactors in editors.
  • Automatic generation of .d.ts declaration files for publishing typed libraries.
  • A programmatic Compiler API exposing the scanner, parser, checker, and emitter for tooling authors.

Common Use Cases

  • Adding static type safety to new or existing JavaScript codebases.
  • Building large-scale applications where refactoring safety and editor tooling matter.
  • Authoring and publishing strongly-typed libraries with generated declaration files.
  • Powering IDE features and custom developer tooling via the Compiler API and language service.

Under The Hood

Architecture — TypeScript is a self-hosted compiler organized as a classic multi-stage pipeline under src/compiler (43 modules): a scanner tokenizes source, the parser builds an AST, the binder constructs symbol tables and scopes, and the checker performs structural type inference and type-checking before a set of transformers lower modern syntax and the emitter produces JavaScript plus .d.ts declaration files. On top of the core compiler, src/services and src/server implement the language service and tsserver that power editor features (completions, refactors, diagnostics), while src/tsc and src/tsserver are thin CLI entry points wired to the bin/tsc and bin/tsserver binaries.

Tech Stack — The project is written almost entirely in TypeScript (99.86% of the codebase) and compiles itself. It ships with zero runtime dependencies and targets Node >=14.17. The build is driven by Hereby (Herebyfile.mjs) with roughly 42 dev dependencies for bundling, linting (a custom ESLint flat config), and formatting; the public entry point is ./lib/typescript.js (the Compiler API) with tsc/tsserver exposed as bin scripts.

Code Quality — TypeScript maintains an extensive baseline-driven test suite: tests/cases holds thousands of fixtures whose compiler output is diffed against checked-in tests/baselines, exercised through the 25-file harness in src/harness and src/testRunner. Being fully typed and self-hosting, the codebase enforces its own type discipline end to end, and the maintainers gate contributions with ESLint rules, formatting checks, and CI.

API Design — Two public surfaces coexist: the tsc CLI is near-frictionless (npm install -D typescript, then tsc), driven declaratively by tsconfig.json; and the programmatic Compiler API exposes the scanner, parser, checker, and emitter for tooling authors. The CLI and config surface are highly ergonomic and exhaustively documented on typescriptlang.org, while the low-level Compiler API is powerful but expects familiarity with compiler internals.

Used by 503 apps in this directory

TypeScript
98%
AGPL 3.0

Checkmate

Analytics · Devops · Monitoring

10,922

Self-hosted uptime and infrastructure monitoring with multi-protocol checks, global geo-coverage, and beautiful real-time dashboards.

View details
90
Repo Health
82
Technical
67
Dependency
Built with
TypeScript 98%
Updated yesterday
TypeScript
99%
AGPL 3.0

Cherry Studio

AI Assistants

52,500

All-in-one AI desktop client with 300+ assistants and multi-model support

View details
89
Repo Health
84
Technical
70
Dependency
Built with
TypeScript 99%
Updated today
TypeScript
99%
MIT

Circle

Developer Tools · Project Management

4,557

A Linear-inspired project management interface built with Next.js and shadcn/ui — issues, cycles, projects, teams, and a mocked AI agent chat, running entirely on client-side mock data as a self-hostable front-end template.

View details
67
Repo Health
64
Technical
73
Dependency
Built with
TypeScript 99%
Updated 1 months ago
TypeScript
72%
MIT

Claude Context

AI Code Assistants · Mcp

12,594

An MCP server and VS Code extension by Zilliz that turns your entire codebase into semantically searchable context for Claude Code, Cursor, and Gemini CLI, using vector embeddings and Merkle-tree change detection.

View details
45
Repo Health
71
Technical
71
Dependency
Built with
TypeScript 72%
Python 13%
JavaScript 11%
Updated 2 months ago
TypeScript
58%
Apache 2.0

claude-mem

AI Agents · AI Development · AI Memory

99,033

Give your AI coding agents persistent memory — claude-mem captures everything that happens during sessions, compresses it with AI, and surfaces the right context in every future session automatically.

View details
86
Repo Health
82
Technical
77
Dependency
Built with
TypeScript 58%
JavaScript 31%
Updated yesterday
TypeScript
82%
MIT

clawless

AI Agents · Developer Tools

535

Run Claw AI agents entirely in the browser — no server required — with WebContainers WASM sandboxing, policy enforcement, and complete audit logging.

View details
37
Repo Health
71
Technical
84
Dependency
Built with
TypeScript 82%
Updated 3 months ago
Java
48%
Apache 2.0

ClearFlask

Community · Product Management

451

Open-source feedback management and roadmap tool that lets product teams collect, prioritize, and respond to user input — with AI-powered summarization and full self-hosting control.

View details
83
Repo Health
73
Technical
62
Dependency
Built with
Java 48%
TypeScript 47%
Updated yesterday
TypeScript
98%
Apache 2.0

Cline

AI Code Assistants

70,090

An open-source AI coding agent that lives in your editor and terminal — reads and edits your codebase, runs commands, browses the web, and requires human approval for every action by default.

View details
91
Repo Health
74
Technical
65
Dependency
Built with
TypeScript 98%
Updated today
Swift
61%
GPL 3.0

cmux

AI Development · Developer Tools

28,072

A native, Ghostty-based macOS terminal with vertical tabs, agent-aware notifications, and a scriptable browser built for running many parallel AI coding agent sessions instead of juggling tmux panes.

View details
85
Repo Health
81
Technical
68
Dependency
Built with
Swift 61%
Rust 11%
Updated today

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers