# tsx: 8.0 out of 10

A strong pick. 1st of 10 in [Script runners and process managers](https://elestia.ai/opensource/script-runners/index.md).

tsx runs TypeScript files in Node.js with no setup. It uses esbuild and has a built-in watch mode. Today it is the strongest third-party choice for this job and has replaced ts-node as the usual pick, though Node's built-in type stripping now covers simple scripts. It does not keep a process alive in production the way PM2 does.

**Best for:** Node.js developers who want to run or watch TypeScript files, including JSX, path aliases and mixed ESM/CJS, with no config.

## Scores

- **Overall: 8.0** (likely 6.9 to 8.7)
  - Claude Opus 5.5 (8.0): For running and watching TypeScript in Node, tsx is the best third-party pick today. It is ahead of ts-node, which is unmaintained, and of swc-node. Node's native stripping is enough for simple erasable scripts, and you still need tsc for type checks and PM2 for production supervision. Single-maintainer risk and occasional regressions keep it from a 9.
  - GPT-6.2 Sol (8.0): tsx is the strongest pick among the listed peers for new Node.js projects that need to run and watch TypeScript with JSX, path aliases, or mixed module formats. Modern Node.js already covers scripts that use only erasable TypeScript syntax, and PM2 is better suited to services that need automatic crash recovery. The recent release gap and open watcher issues keep tsx below a default for the whole category.
- **Needed by many: 6.7** (likely 5.6 to 7.8)
  - Claude Opus 5.5 (7.0): Most TypeScript developers on Node need to run .ts scripts, seeds, CLIs or dev servers directly. tsx covers the run and watch parts of the category but not production process management. Node's native stripping now handles part of this need.
  - GPT-6.2 Sol (6.4): Node.js and TypeScript are common enough that direct script execution and file watching serve a large group. Built-in type stripping and watch mode cover simple scripts on recent Node.js releases. tsx is most useful when projects need JSX, path aliases, or TypeScript syntax that requires transformation.
- **Helps a lot: 8.1** (likely 7.0 to 9.0)
  - Claude Opus 5.5 (8.0): It is fast and needs no config. It handles ESM/CJS interop, JSX, tsconfig paths, watch mode and a REPL, and it accepts Node flags. Its clear limits are that it does no type checking and does not support decorator metadata. Occasional regressions in minor releases keep it below 9.
  - GPT-6.2 Sol (8.1): Version 4.23.15 combines configurable watch mode, JSX support, and CommonJS and ESM interoperability in a well-documented CLI. An independent benchmark on older builds put tsx ahead of ts-node for startup and behind native Node.js on a simple script. Type checks run separately, and the watcher waits for an edit or manual rerun after an exit. Reports of a macOS watcher leak and a loader regression leave some uncertainty around long sessions and more complex setups.
- **Holds up over time: 6.9** (likely 5.5 to 8.1)
  - Claude Opus 5.5 (7.0): It is active, with 24 releases and 109 commits in the last year and the latest release two months ago. It depends mostly on one maintainer funded by sponsorships, and 55 PRs are open. Node's native type stripping may shrink its role over time, but it is not a successor for JSX, paths or non-erasable syntax.
  - GPT-6.2 Sol (6.8): The project logged 109 commits and 24 releases over the year, well ahead of ts-node's recent activity. September patches addressed Node.js compatibility, followed by about two months without a release while issues and fixes continued to arrive. Releases are credited to one maintainer, and the project relies on donations. Native Node.js now covers some of the same work, adding uncertainty about future demand.
- **Used widely: 7.3** (likely 6.2 to 8.2)
  - Claude Opus 5.5 (8.5): It had 556M downloads in 4 weeks, up from 61M a year ago. That ratio of about 9x is far above the 4.1 median, and it now has more than twice the downloads of ts-node. Some of these downloads come through other tools that depend on it. Its ecosyste.ms dependent count (18.8k repos) is low next to ts-node and nodemon, which keeps the range wide.
  - GPT-6.2 Sol (6.1): Four-week downloads grew 9.1× year over year, ahead of the 4.1× catalog median and every listed peer. The index found 18,790 dependent repositories and 3,783 packages, with far fewer repositories than ts-node, nodemon, or jiti. Automated installs and dependencies such as Drizzle Kit and Payload account for some of the volume, so the growth in direct choices is harder to estimate.
- **Vouched for: 7.5** (likely 6.4 to 8.5)
  - Claude Opus 5.5 (7.0): The official Node.js docs use tsx as their example for full TypeScript support. Independent guides from LogRocket and Better Stack recommend it, and well-known developers such as Wes Bos say they use it. State of JS does not rate it directly, so there is no survey satisfaction data.
  - GPT-6.2 Sol (8.0): Node.js uses tsx in its TypeScript documentation, Prisma shows it for seed scripts, and Payload integrates its loader into the CLI. Developers report using it for path aliases, and independent benchmarks show a startup tradeoff on older releases. These sources mostly cover development tooling, so confidence is lower for long-running production workloads.
- **Safe: 7.2** (likely 6.0 to 8.3)
  - Claude Opus 5.5 (7.5): It has no advisories, an MIT licence and a small dependency tree (esbuild and get-tsconfig). There is no OpenSSF Scorecard, and releases rest mainly on one maintainer, which is a supply-chain concentration risk. esbuild's native binaries add some attack surface.
  - GPT-6.2 Sol (6.8): tsx uses the permissive MIT license, declares one required npm dependency, and publishes through a GitHub Actions workflow that runs tests first. OSV lists zero direct advisories, while an open report identifies an affected copy of Picomatch bundled into watch mode and invisible to npm audit. The reporter found no way to exploit it through tsx, and a fix had yet to ship in the latest release. The missing OpenSSF Scorecard and unverified npm publisher roster widen the range.

## Good

- It works with no config: `npx tsx file.ts` runs ESM, CJS, JSX and tsconfig paths.
- It is fast because esbuild does the transpiling, and it has a watch mode for reloads.
- The Node.js docs name it as the example tool for full TypeScript support.
- Use is growing much faster than the median project (downloads up about 9x in a year), and it has no known advisories.

## Bad

- It does not type-check, so you still need to run tsc.
- It does not support emitDecoratorMetadata, which hurts NestJS-style dependency injection.
- One person maintains it and 55 pull requests are open; minor releases have caused regressions, such as the 'module status 3' break in 4.20.
- Node's built-in type stripping (stable, on by default since 22.18) is taking over the simple-script use case.

## The numbers

- Downloads, 4 weeks: 556M
- In a year: ×9.1
- GitHub stars: 12k
- Commits, 12 months: 109
- Last npm release: Sept 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/privatenumber/tsx
- npm: https://www.npmjs.com/package/tsx

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
