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 🙏

© 2026 – Pkg Stats / Ryan Hefner

tsc-rs

v0.5.0

Published

A Rust port of the TypeScript 7 compiler

Readme

tsc-rs

A Rust port of the TypeScript 7 compiler (tsc).

It is a direct port of Microsoft's native TypeScript compiler, which is written in Go. On the projects we test, it gives the same diagnostics and output as that compiler, and it is faster.

This is an early release. Report problems at https://github.com/pingdotgg/ts-rust/issues.

Use

npm install -D tsc-rs
npx tsc-rs -p tsconfig.json

tsc-rs takes the same options as tsc. tsc-rs --version prints the TypeScript version that it ports (7.1.0-dev), not the npm version.

Effect diagnostics

tsc-rs has the Effect language service diagnostics built in (codes 377xxx), so an Effect project needs no second compiler. They come from the same check as the TypeScript diagnostics, and the language server shows them too. They run only when the tsconfig has the plugin, as with @effect/language-service:

{ "compilerOptions": { "plugins": [{ "name": "@effect/language-service" }] } }

The rules, options and @effect-diagnostics comments are a port of Effect-TS/tsgo 0.51.1. The language server also has its editor features: the Effect hover (with the Layer summary), inlay hints, the auto-import style, quick fixes, document symbols, completions and refactors. All the editor features of 0.51.1 are ported. The lightbulb, the quick fix menu and the editor's Refactor menu show the Effect refactors: as in 0.51.1, the server lists refactor.rewrite in its code action kinds.

The API stability rules of 0.51.1 read the @stability JSDoc tags of Effect 4. unstableApiUsage (TS377136) and experimentalApiUsage (TS377135) report each use of an unstable or experimental API, as warnings by default. allowedUnstableApis and allowedExperimentalApis in the plugin entry allow a module (effect/cli) or one export (effect/cli/Command#make). apiStabilityLeak (TS377137, off by default) is for library maintainers. So a project on effect@4 gets TS377136 warnings for its unstable imports, as with effect-tsgo 0.51.1. See the Effect diagnostics doc.

VS Code

The TypeScript 7 extension looks for the typescript package, so it does not find tsc-rs by itself. Point it at the dir of the tsc in the platform package, in .vscode/settings.json, and allow it when VS Code asks:

{ "js/ts.tsdk.path": "node_modules/@tsc-rs/linux-x64/lib" }

On Linux arm64, use @tsc-rs/linux-arm64. On macOS, use @tsc-rs/darwin-arm64 (Apple silicon) or @tsc-rs/darwin-x64 (Intel). On Windows, use @tsc-rs/win32-x64 or @tsc-rs/win32-arm64.

Platforms

  • Linux x64 (static, any distribution)
  • Linux arm64 (static, any distribution)
  • macOS arm64 (Apple silicon)
  • macOS x64 (Intel)
  • Windows x64
  • Windows arm64

Known problems

  • In some monorepos, the source files of a workspace package are reachable both through node_modules and through a direct import. There, tsc-rs can write output for more of those files than tsc does. (The set from tsc also changes from run to run there.)
  • In tsc -b, when one project imports the output of another project without a project reference, tsc-rs can report TS2307 (cannot find module) where tsc happens to build the other project first. Add the reference to fix it.
  • tsc -b --watch can stop with an internal error (exit code 70) after some edits.
  • In the editor, memory grows slowly during long edit sessions.

License

MIT. The port keeps the licenses and notices of TypeScript (Apache-2.0, Copyright (c) Microsoft Corporation) and Go (BSD-3-Clause). See NOTICE.txt.