# @typescript/native-preview

> Preview CLI and JS API for the native TypeScript compiler port

Latest version **7.0.0-dev.20260707.2** (published 2026-07-07) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @typescript/native-preview
pnpm add @typescript/native-preview
yarn add @typescript/native-preview
bun add @typescript/native-preview
```

Provides the command `tsgo`.

## Health

**Score 65/100 (B)** — status: active.

Positive: esm support; no vulnerabilities; recently updated; high maintenance score; popular repo.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 7.0.0-dev.20260707.2 |
| Published | 2026-07-07 |
| First published | 2025-05-22 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | ESM |
| Node | >=16.20.0 |
| Dependencies | 7 |
| Unpacked size | 2.4 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 26195 |
| Author | Microsoft Corp. |
| Maintainers | microsoft1es, typescript-bot, weswigham, andrewbranch, typescript-deploys, microsoft-oss-releases, jakebailey |
| Keywords | TypeScript, Microsoft, compiler, language, javascript, tsgo |

## Links

- npm: https://www.npmjs.com/package/@typescript/native-preview
- Repository: https://github.com/microsoft/typescript-go
- Homepage: https://www.typescriptlang.org/
- Issues: https://github.com/microsoft/typescript-go/issues
- npm.io page: https://npm.io/package/@typescript/native-preview

## Dependencies (7)

- [@typescript/native-preview-linux-arm](https://npm.io/package/@typescript/native-preview-linux-arm.md) 7.0.0-dev.20260707.2
- [@typescript/native-preview-linux-x64](https://npm.io/package/@typescript/native-preview-linux-x64.md) 7.0.0-dev.20260707.2
- [@typescript/native-preview-win32-x64](https://npm.io/package/@typescript/native-preview-win32-x64.md) 7.0.0-dev.20260707.2
- [@typescript/native-preview-darwin-x64](https://npm.io/package/@typescript/native-preview-darwin-x64.md) 7.0.0-dev.20260707.2
- [@typescript/native-preview-linux-arm64](https://npm.io/package/@typescript/native-preview-linux-arm64.md) 7.0.0-dev.20260707.2
- [@typescript/native-preview-win32-arm64](https://npm.io/package/@typescript/native-preview-win32-arm64.md) 7.0.0-dev.20260707.2
- [@typescript/native-preview-darwin-arm64](https://npm.io/package/@typescript/native-preview-darwin-arm64.md) 7.0.0-dev.20260707.2

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 7.0.0-dev.20260707.2 (latest) — 2026-07-07
- 7.0.0-dev.20260421.2 (beta) — 2026-04-21
- 7.0.0-dev.20260706.1 — 2026-07-06
- 7.0.0-dev.20260705.1 — 2026-07-05
- 7.0.0-dev.20260704.1 — 2026-07-04
- 7.0.0-dev.20260703.1 — 2026-07-03
- 7.0.0-dev.20260702.3 — 2026-07-02
- 7.0.0-dev.20260701.1 — 2026-07-01
- 7.0.0-dev.20260630.1 — 2026-06-30
- 7.0.0-dev.20260629.1 — 2026-06-29
- 7.0.0-dev.20260628.1 — 2026-06-28
- 7.0.0-dev.20260627.2 — 2026-06-27
- 7.0.0-dev.20260626.1 — 2026-06-26
- 7.0.0-dev.20260624.1 — 2026-06-24
- 7.0.0-dev.20260623.1 — 2026-06-23
- … 386 more at https://npm.io/package/@typescript/native-preview/versions

## README

# TypeScript (Native Preview)

This package provides a preview build of [the native port of TypeScript](https://devblogs.microsoft.com/typescript/typescript-native-port/).
Not all features are implemented yet.

This package is intended for testing and experimentation.
It will eventually be replaced by the official TypeScript package.

## Usage

For TypeScript 7.0 RC and later, use `tsc` just like for TypeScript 6.0.

For other builds, use the `tsgo` command just like you would use `tsc`:

```sh
npx tsgo --help
```

## Issues and Feedback

The native port of TypeScript is still in progress.
We expect many gaps, but are seeking experimentation and feedback.
If you have found differences that are not yet known, we encourage you to leave feedback on [the issue tracker](https://github.com/microsoft/typescript-go/issues).

---
_Source: https://npm.io/package/@typescript/native-preview · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
