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

@tsrx/typescript-plugin

v0.4.11

Published

TypeScript plugin for TSRX

Readme

@tsrx/typescript-plugin

npm version npm downloads

TypeScript plugin for .tsrx files. It selects the compiler for the active project, generates TypeScript virtual code, and maps language-service results back to TSRX source.

The TSRX Syntax for VS Code already bundles this plugin through @tsrx/language-server; no separate VS Code configuration is needed.

Configuration

For a standalone tsserver integration, install this package and add it to the project's tsconfig.json. The compiler and jsxImportSource should match the chosen target. For example, a React project can use:

{
  "tsrx": {
    "compiler": "@tsrx/react",
    "platform": "web"
  },
  "compilerOptions": {
    "jsx": "preserve",
    "jsxImportSource": "react",
    "plugins": [
      {
        "name": "@tsrx/typescript-plugin"
      }
    ]
  }
}

All targets use the .tsrx extension. The tsrx.compiler value must be a bare package specifier such as @tsrx/react, @tsrx/preact, @tsrx/solid, @tsrx/vue, @tsrx/ripple, octane, or a third-party TSRX compiler. Package subpaths are supported; relative and absolute paths are not.

tsrx.platform is optional. When present, it must be exactly "web", "ios", or "android"; it selects compile-time import.meta.env.platform guards in virtual TSX. In-repo build integrations read the same setting automatically. Their explicit platform option is only an override/fallback and must agree with tsconfig when both are present. There is no implicit default. Both compiler and platform follow the active project's complete extends graph, including nested projects.

Compiler declarations follow the active TypeScript project's extends graph. If no compiler is declared, the plugin detects installed target packages and uses the nearest package.json to resolve ambiguity.

The language server, tsserver plugin, and tsrx-tsc share the same compiler selection behavior. See the TSRX documentation for target setup and authoring guidance.

Command-line type checking

Install this package, TypeScript, and your target compiler, then run tsrx-tsc --noEmit -p tsconfig.json to check TypeScript and .tsrx files.

With Deno 2.8 or newer and the npm dependencies installed locally, add a task to deno.json:

{
  "tasks": {
    "check": "tsrx-tsc --noEmit -p tsconfig.json"
  }
}

Run deno task check. This uses the npm-installed TypeScript version and your tsconfig.json, including tsrx.compiler. No custom loader script is needed.