tsx
A strong pick. 1st of 10 script runners and process managers.
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
Overall8.0
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 8.0, likely 7.0 to 8.5
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.
- peers ts-node commitsLastYear: ts-node had 0 commits last year
- npm downloads ratio: About 9x vs a 4.1 median
- dev.to/ahmed_mahmoud360/nodejs-runs-typescript-now-field-notes-on-native-type-stripping-8b4: Native stripping covers simple cases and tsx covers the rest
GPT-6.2 Sol: 8.0, likely 6.8 to 8.8
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.
- tsx.hirok.io/watch-mode: Configurable watch mode supports development reruns.
- nodejs.org/api/typescript.html: Node.js provides native type stripping for simpler scripts.
- pm2.keymetrics.io/docs/usage/restart-strategies: PM2 supports automatic crash recovery with restart backoff.
- github.latestRelease, github.releasesLastYear, peers: Strong annual release activity with a roughly two-month gap at review time.
- github.com/privatenumber/tsx/issues/855: An open macOS watcher report limits confidence in long sessions.
- github.com/privatenumber/tsx/issues/869: The latest release still has a reported bundled dependency issue.
Needed by many6.7
How many developers need a tool for this job?
Claude Opus 5.5: 7.0, likely 6.0 to 8.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.
- nodejs.org/api/typescript.md: Node docs point to third-party tools such as tsx for full TypeScript support
- infoq.com/news/2026/03/state-of-js-survey-2025: TypeScript is now the norm and Node is at 90% runtime use
GPT-6.2 Sol: 6.4, likely 5.2 to 7.5
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.
- 2025.stateofjs.com/en-US/usage: 40% of respondents to the language-balance question wrote TypeScript exclusively.
- 2025.stateofjs.com/en-US/other-tools: About 90% of respondents to the runtime question selected Node.js.
- nodejs.org/api/typescript.html: Native type stripping supports erasable syntax and ignores tsconfig.json.
- nodejs.org/api/cli.html#--watch: Node.js has built-in file watching and restarts.
- mizdra.net/entry/2025/08/28/122040: Independent comparison documents where tsx covers more TypeScript features.
Helps a lot8.1
How well does it do the job for those who need it?
Claude Opus 5.5: 8.0, likely 7.0 to 9.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.
- blog.logrocket.com/running-typescript-node-js-tsx-vs-ts-node-vs-native: Independent comparison: beginner-friendly, fast, watch mode, no type check
- dev.to/ahmed_mahmoud360/nodejs-runs-typescript-now-field-notes-on-native-type-stripping-8b4: tsx is still needed for JSX, path aliases, non-erasable syntax and older Node
- bluesky top posts: A user reports 'Unexpected module status 3' after upgrading to 4.20
- npm hasTypes: Ships its own types
GPT-6.2 Sol: 8.1, likely 7.0 to 9.0
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.
- tsx.hirok.io: Documents direct execution, JSX and module interoperability.
- tsx.hirok.io/watch-mode: Documents file selection and rerun behavior after failure.
- tsx.hirok.io/typescript: Documents separate type checking and the decorator metadata limit.
- sebastian-staffa.eu/posts/nodejs-native-ts-benchmark: Independent startup comparison with ts-node and native Node.js.
- github.com/privatenumber/tsx/issues/855: User reports a macOS watcher memory leak after repeated restarts.
- github.com/privatenumber/tsx/issues/853: User reports a regression when chaining loader hooks.
Holds up over time6.9
Will it still be a good choice in two years?
Claude Opus 5.5: 7.0, likely 5.5 to 8.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.
- github releasesLastYear / commitsLastYear: 24 releases and 109 commits in the last year
- github openPullRequests: 55 open PRs vs 169 merged
- releasealert.dev/npmjs/_/tsx: Steady 4.22 and 4.23 releases through 2026
- betterstack.com/community/guides/scaling-nodejs/tsx-vs-native-nodejs-typescript: Native stripping overlaps with tsx for simple cases
GPT-6.2 Sol: 6.8, likely 5.4 to 8.1
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.
- github.commitsLastYear, github.releasesLastYear, github.latestRelease, peers: 109 commits, 24 releases and a September 20 release. ts-node logged zero commits.
- github.com/privatenumber/tsx/releases: Recent compatibility patches are credited to the same maintainer.
- github.com/privatenumber/tsx/pulls: November compatibility and security fixes were still open.
- github.com/privatenumber/tsx/blob/master/docs/index.md: The project describes its funding as donation-based.
- nodejs.org/api/typescript.html: Stable type stripping overlaps with basic script execution.
Used widely7.3
How many use it, and is that growing?
Claude Opus 5.5: 8.5, likely 7.5 to 9.0
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.
- npm downloadsLast4Weeks: 556M vs 61M a year ago, about 9x
- peers ts-node downloadsLast4Weeks: ts-node 240M with no releases since 2023
- dependents: 18,790 repos and 3,783 packages
- github stars: 12.2k stars
GPT-6.2 Sol: 6.1, likely 4.8 to 7.4
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.
- npm.downloadsLast4Weeks, npm.downloadsSame4WeeksYearAgo, medianDownloadsRatio, peers: 556.2 million versus 61.4 million downloads. The fastest growth in the peer set.
- dependents, github.stars, bluesky.posts, peers: 18,790 indexed repositories, 3,783 packages, 12,206 stars and four Bluesky posts.
- github.com/drizzle-team/drizzle-orm/blob/main/drizzle-kit/package.json: Drizzle Kit declares tsx as a regular dependency.
- github.com/payloadcms/payload/blob/main/packages/payload/package.json: Payload pins tsx 4.23.15 as a regular dependency.
Vouched for7.5
Who stands behind it being good?
Claude Opus 5.5: 7.0, likely 6.0 to 8.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.
- nodejs.org/api/typescript.md: Node docs suggest npx tsx or node --import=tsx
- beta.syntax.fm/show/869/node-typescript-in-2025/transcript: Wes Bos says he uses tsx
- blog.logrocket.com/running-typescript-node-js-tsx-vs-ts-node-vs-native: Independent recommendation as a general dev choice
- 2025.stateofjs.com/en-US/other-tools: Not listed in State of JS tools results
GPT-6.2 Sol: 8.0, likely 6.8 to 9.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.
- nodejs.org/api/typescript.html: Node.js shows tsx as a third-party option for runtime TypeScript.
- docs.prisma.io/docs/guides/upgrade-prisma-orm/v7: Prisma ORM 7 uses tsx in its seed configuration example.
- github.com/payloadcms/payload/blob/main/packages/payload/bin.js: Payload uses the tsx loader API in its CLI.
- reddit.com/r/typescript/comments/1wfxonq/tsx_vs_native_node_watch_for_local_development_on: A developer reports choosing tsx for path aliases.
- sebastian-staffa.eu/posts/nodejs-native-ts-benchmark: Independent measurements cover startup and a larger script on tsx 4.19.2.
Safe7.2
How safe is it to depend on?
Claude Opus 5.5: 7.5, likely 6.5 to 8.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.
- advisories total: 0 advisories
- scorecard: No Scorecard data
- npm dependencies: Few direct dependencies
- npm license: MIT
GPT-6.2 Sol: 6.8, likely 5.5 to 8.1
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.
- npm.dependencies, npm.license, advisories, scorecard: One required dependency, MIT license, zero direct OSV advisories and no Scorecard result.
- github.com/privatenumber/tsx/blob/v4.23.15/.github/workflows/release.yml: Release workflow requires passing tests and uses pinned actions and an identity token.
- github.com/privatenumber/tsx/issues/869: Reports affected Picomatch 2.3.1 in the published CLI and no demonstrated exploit through tsx.
- github.com/advisories/GHSA-c2c7-rcm5-vvqj: Confirms the upstream denial-of-service advisory and the patched version.
- github.com/privatenumber/tsx/security/policy: Provides private reporting and limits security fixes to the latest release.
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
- npm downloads, 4 weeks
- 556M ×9.1 in a year
- GitHub stars
- 12k
- Commits, 12 months
- 109
- npm version
- 4.23.15 Sept 2026
- Versions, 12 months
- 24
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- None
- Licence
- MIT
Read on 21 November 2026 from GitHub (privatenumber/tsx), npm (tsx), OSV and the OpenSSF Scorecard.