TypeScript native preview (tsgo)
Do not start with it. 9th of 10 type checkers.
@typescript/native-preview was the nightly preview channel for Microsoft's Go port of the TypeScript compiler, run as tsgo. It is now replaced: TypeScript 7 ships the same compiler as tsc in the typescript package, the staging repository was archived on 1 September 2026, and the preview package's last build is a July 2026 dev snapshot. Do not start a new project with it. Install typescript@^7 instead, or typescript@next if you want nightly builds.
Best for: Nobody starting today: projects that still pin it should move to typescript@7, or to typescript@next for nightlies.
Scores
Overall1.9
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 2.0, likely 1.0 to 3.0
The compiler is excellent, but this package has been replaced by its own successor. The same compiler ships as stable tsc in typescript@7, with ongoing fixes, and nightlies ship as typescript@next. Projects that pin @typescript/native-preview should migrate; new projects should never add it.
- devblogs.microsoft.com/typescript/announcing-typescript-7-0: Install typescript for 7.0; nightlies move to typescript@next
- github.com/microsoft/typescript-go: The repository is archived and work continues in microsoft/TypeScript
- peers TypeScript (tsc): The successor is active, with 1902 commits last year and a release on 2026-07-08
GPT-6.2 Sol: 1.8, likely 0.9 to 2.7
The final preview is still a capable checker, and a pinned copy is useful for reproducing older results. Stable TypeScript 7 gives new projects the same native compiler through the maintained `typescript` package. The confirmed move makes the recommendation clear even though the old package still gets substantial traffic.
- devblogs.microsoft.com/typescript/announcing-typescript-7-0: Confirms the stable release and the end of the separate nightly channel.
- github.com/microsoft/TypeScript/releases/tag/v7.0.2: Lists the stable native release in the main TypeScript repository.
- github archived and npm latestPublishedAt: The staging repository is archived and the package last published in July 2026.
Needed by many7.6
How many developers need a tool for this job?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
Most TypeScript developers need a type checker in most projects, and this tool checks plain TypeScript in any project. It cannot check Vue, Svelte or Astro files, and tooling that needs a compiler API cannot use it. That narrows it a little below the whole category.
- devblogs.microsoft.com/typescript/announcing-typescript-7-0: Vue, MDX, Astro and Svelte tooling must stay on 6.0 for now
- peers TypeScript (tsc) dependentRepos: About 2.1M repositories depend on TypeScript, so the job is very broad
GPT-6.2 Sol: 8.1, likely 7.0 to 9.2
The checker serves ordinary TypeScript and checked JavaScript projects across frameworks and runtimes. State of JS shows that TypeScript accounts for a large share of respondents’ work. The range reflects how many teams need framework-specific template checking or compiler integrations that this build cannot provide.
- 2025.stateofjs.com/en-US/usage: Respondents reported a median of 88% of their JavaScript and TypeScript time spent writing TypeScript.
- github.com/microsoft/typescript-go: Documents JavaScript, JSDoc, JSX, and project-reference support.
- devblogs.microsoft.com/typescript/announcing-typescript-7-0: Describes gaps for embedded languages and framework tooling.
Helps a lot7.1
How well does it do the job for those who need it?
Claude Opus 5.5: 6.0, likely 4.0 to 7.0
The compiler in this package checks types like TypeScript 6 at about 10x the speed, which is excellent. The package is frozen at a dev build from 7 July 2026, so it misses the fixes in 7.0.2 and later. It has no API, and the stable typescript package does the same job better.
- infoq.com/news/2026/08/typescript-7-released: VS Code build fell from 125.7s to 10.6s; Slack CI checks fell from 7.5 to 1.25 minutes; no API until 7.1
- npm latestVersion: 7.0.0-dev.20260707.2 is a pre-GA dev snapshot
- devblogs.microsoft.com/typescript/announcing-typescript-7-0-beta: The beta matched tsc 6.0 behaviour on TypeScript code
GPT-6.2 Sol: 8.1, likely 7.0 to 9.1
The final July preview combines familiar TypeScript diagnostics and project configuration with much faster full checks in independent tests. One user also reported differences in JavaScript inference after migrating a large codebase. The unstable compiler API, embedded-language gaps, and small benchmark sample leave room for variation across projects.
- gist.github.com/enyst/82751750aed01648f4722a5187eba7fc: Tests the exact final preview on three real projects and documents a `baseUrl` migration.
- reddit.com/r/typescript/comments/1ugc6bn/anyone_migrated_to_typescript_70_rc_yet: Users report faster checks, JavaScript inference differences, and continued reliance on the old API.
- app.unpkg.com/@typescript/native-preview@7.0.0-dev.20260707.2/files/package.json: The final package exposes programmatic entry points under `unstable`.
- devblogs.microsoft.com/typescript/announcing-typescript-7-1-beta: The successor adds content mappers for embedded languages.
Holds up over time1.2
Will it still be a good choice in two years?
Claude Opus 5.5: 1.0, likely 0.0 to 2.0
The repository was archived on 1 September 2026, and development moved to microsoft/TypeScript. Nightlies now ship as typescript@next, and this package has had no build since July. The compiler itself has a strong future, but under another package name.
- github archived: The repository is archived and read-only
- github.com/microsoft/typescript-go: The README says the port is complete and points to microsoft/TypeScript
- devblogs.microsoft.com/typescript/announcing-typescript-7-0: Nightlies move to typescript@next
- npm latestPublishedAt: Last build was 2026-07-07
GPT-6.2 Sol: 1.4, likely 0.7 to 2.4
The staging repository is archived, and the preview package last published on July 7, 2026. Microsoft moved active development and nightly builds to `typescript`, giving a clear upgrade path and little reason to expect updates to the old package.
- github archived and commitsLastYear: Archived after 1,249 commits in the measured year.
- npm latestVersion and latestPublishedAt: The final preview is 7.0.0-dev.20260707.2.
- github.com/microsoft/typescript-go/blob/main/README.md?plain=1: Directs development and discussion to the main TypeScript repository.
- devblogs.microsoft.com/typescript/announcing-typescript-7-0: Moves nightlies to `typescript@next`.
Used widely5.3
How many use it, and is that growing?
Claude Opus 5.5: 5.0, likely 3.0 to 7.0
Downloads were about 28M in the last 4 weeks, up 5.7x on a year before, which beats the 4.1 median. That number mostly comes from CI runs of projects that adopted the preview before 7.0 shipped. New projects pick typescript@7, so this package's share should fall. The repository's 26k stars were earned for the port as a whole.
- npm downloadsLast4Weeks: 27.9M now against 4.9M a year before
- medianDownloadsRatio: The 5.7x ratio is above the 4.1 median, but it reflects the preview period
- infoq.com/news/2026/08/typescript-7-released: More than 8.5M weekly downloads before GA
GPT-6.2 Sol: 5.6, likely 3.7 to 7.2
The preview recorded 27.9 million four-week installs, up 5.7× year over year against the 4.1× baseline. Repeated CI installs inflate that total, and repository attention includes interest in the stable compiler. Documented migrations to `typescript` point away from new adoption of the preview, while the missing dependent count leaves the number of projects using it uncertain.
- npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, and medianDownloadsRatio: 27.9 million versus 4.9 million installs, with 5.7× growth against the 4.1× baseline.
- github stars, bluesky posts, dependents, and peers: 26,063 stars and at least 100 Bluesky posts cover the native-port repository. The preview lacks a dependent count, while `typescript` has about 2.1 million observed dependent repos across all its uses.
- github.com/elizaOS/eliza/issues/16128: Documents a switch from the preview to stable TypeScript 7 for native checks.
Vouched for6.0
Who stands behind it being good?
Claude Opus 5.5: 5.0, likely 3.0 to 7.0
The compiler has strong, current backing: VS Code, Slack and Vanta report large speedups, and community benchmarks on Sentry, Playwright and tldraw agree. That backing now goes to TypeScript 7 in the typescript package, not to this frozen preview package. The Bluesky top posts also note that framework support is missing.
- infoq.com/news/2026/08/typescript-7-released: Production reports from Slack and Vanta; 7.7-8.9x community benchmarks
- hackerNews top: The TypeScript 7 story scored 720 points
- bluesky top: Daniel Roe notes there is no Vue or Svelte type-checking yet
GPT-6.2 Sol: 7.0, likely 5.8 to 8.1
Independent tests measured substantial speedups on the exact package, and teams reported running previews in real monorepos and CI, including Grafana. These reports establish practical value, but mainly cover pre-release trials and migrations. Oxc’s stable integration validates the native engine shipped in TypeScript 7.0.2.
- gist.github.com/enyst/82751750aed01648f4722a5187eba7fc: Publishes timings and methodology for the final preview on three codebases.
- reddit.com/r/typescript/comments/1ugc6bn/anyone_migrated_to_typescript_70_rc_yet: A Grafana contributor links side-by-side CI runs for TypeScript 6 and the native release candidate.
- developers.cellixjs.org/docs/decisions/typescript-7-upgrade: Records preview adoption and passing builds and tests in the CellixJS monorepo.
- oxc.rs/blog/2026-07-22-type-aware-linting-stable: Oxc shipped a stable linting engine based on the TypeScript 7.0.2 native port.
Safe6.2
How safe is it to depend on?
Claude Opus 5.5: 6.0, likely 4.0 to 8.0
It is published by Microsoft under Apache-2.0, has no advisories, and runs only as a dev-time tool. Its 7 dependencies are mostly platform binaries. It has no Scorecard data, and as a frozen dev snapshot from an archived repository it will get no security or bug fixes.
- advisories total: No known advisories
- npm dependencies: 7 dependencies
- scorecard: No Scorecard data
- github license: Apache-2.0
GPT-6.2 Sol: 6.4, likely 4.9 to 7.9
The package uses the permissive Apache-2.0 license, and OSV lists zero advisories. Its seven npm dependencies are pinned alternatives for different platforms. Microsoft provides a security reporting channel, but fixes now ship through `typescript`, and the preview’s publishing controls and OpenSSF checks could not be verified.
- advisories total and scorecard: Zero collected OSV advisories and no OpenSSF Scorecard record.
- app.unpkg.com/@typescript/native-preview@7.0.0-dev.20260707.2/files/package.json: Shows Apache-2.0 and seven optional binary packages pinned to the same version.
- github.com/microsoft/typescript-go/blob/main/SECURITY.md: Routes vulnerability reports to the Microsoft Security Response Center.
- devblogs.microsoft.com/typescript/announcing-typescript-7-0: Identifies the standard package as the distribution channel going forward.
Good
- Type checking is about 8-10x faster than the TypeScript 6 JavaScript compiler, with matching results on real codebases.
- It is published by Microsoft's TypeScript team under the Apache-2.0 licence, with no known advisories.
- Large codebases tested it heavily, and their results fed into the stable TypeScript 7 release.
Bad
- The repository is archived and the package has had no build since July 2026, so it gets no further fixes.
- The typescript package now ships the same compiler as stable tsc, which makes this package obsolete.
- Like TypeScript 7.0, it has no programmatic API, so Vue, Svelte, Astro and typescript-eslint tooling cannot use it.
- The frozen build has the TypeScript 7 breaking changes, such as hard errors for 6.0 deprecations and the removal of baseUrl, without the later fixes.
The numbers
- npm downloads, 4 weeks
- 28M ×5.7 in a year
- GitHub stars
- 26k
- Commits, 12 months
- 1.2k
- npm version
- 7.0.0-dev.20260707.2 Jul 2026
- Versions, 12 months
- 0
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- None
- Licence
- Apache-2.0
The preview package of the TypeScript compiler written in Go. TypeScript 7 ships that compiler in the typescript package.
Read on 21 November 2026 from GitHub (microsoft/typescript-go), npm (@typescript/native-preview), OSV and the OpenSSF Scorecard.
Type checkers
- 9.4TypeScript (tsc)
- 7.8svelte-check
- 7.3vue-tsc
- 6.5bun check
- 6.2astro check
- 6.1tsrs
- 4.4Flow
- 3.5deno check
- 1.9TypeScript native preview (tsgo)
- 1.8Ezno