npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@rxliuli/tsgo

v2025.5.23

Published

typescript-go npm release(unofficial)

Downloads

15,446

Readme

Unofficial NPM Package for TypeScript-Go

This package provides an unofficial NPM distribution of Microsoft's TypeScript-Go project, which is a Go-based port of TypeScript.

⚠️ Important Notice

This is NOT an official package from the TypeScript team. It is published as a convenience for testing and evaluation purposes only. The TypeScript-Go project is still under active development and considered experimental.

Per this discussion, the official team currently has no plans to publish an NPM package as the project is still very incomplete.

Why This Package Exists

This unofficial package allows developers to:

  • Try TypeScript-Go without building from source
  • Test integration with existing tooling
  • Experiment with the Go-based TypeScript implementation

Installation

npm install @rxliuli/tsgo

Optional Installation Parameters

You may add these environment variables to your system to invoke custom installation parameters:

  • TSGO_DIRECTORY : If you do not want to download a copy of tsgo that someone else built, you can specify this environment variable. This should be a path to the directory, where the typescript-go project is, should contain the partial path ./built/local/tsgo.
  • TSGO_PROVIDER : If you want to download a copy of tsgo from a custom GitHub user, you can specify this environment variable. This should be a GitHub username that has releases for tsgo.

Usage

This package provides the tsgo binary which functions similarly to tsc:

# Check a TypeScript file (similar to tsc)
npx tsgo tsc path/to/file.ts

# Use a tsconfig.json file
npx tsgo tsc --project path/to/tsconfig.json

For LSP (Language Server Protocol) usage, please refer to the official repository for setup instructions.

Current Limitations

As noted in the official repository, TypeScript-Go is still a work in progress with many features incomplete. Current limitations include:

  • Not all resolution modes are supported
  • JavaScript-specific inference and JSDoc are not ready
  • JSX support is not ready
  • Declaration emit is not ready
  • Emit (JS output) is in progress (only target: esnext is well-supported)
  • Watch mode is prototype-only
  • Build mode / project references are not ready
  • Incremental build is not ready
  • Language service (LSP) is prototype-only with minimal functionality

Updates

This unofficial package will be updated periodically as significant progress is made in the TypeScript-Go repository. When the official team decides to publish an official package, this unofficial package will be deprecated in favor of the official one.

Contributing

For issues related to TypeScript-Go itself, please file them in the official repository.

For issues specific to this NPM package distribution, please file them in https://github.com/rxliuli/tsgo-npm-release.

License

The TypeScript project is licensed under the Apache License 2.0.