tsx Review (2026): Pricing, Features & Honest Verdict

Reviewed by MakerStack · Published · 6 min read

TLDR

tsx is a zero-config TypeScript executor for Node.js that uses esbuild for near-instant transpilation. It replaces ts-node with dramatically better performance and no setup. Best for: developers who want to run TypeScript files in Node.js without friction. Price: free and open source. Rating: 7.4/10

What is tsx?

tsx (TypeScript Execute) is a tool that lets you run TypeScript files directly in Node.js without any configuration. Created by Hiroki Osame, it is a modern replacement for ts-node that focuses on speed and simplicity. Under the hood, tsx uses esbuild to transpile TypeScript to JavaScript on the fly, which makes it orders of magnitude faster than ts-node’s default TypeScript compiler approach.

The tool solves a specific and common pain point: running .ts files in Node.js requires either compiling them first with tsc, or using ts-node which is slow and often requires fiddling with tsconfig.json settings. tsx eliminates both problems. You install it, run your file, and it works. No tsconfig required, no compilation step, no module resolution headaches between CommonJS and ESM.

tsx supports both CommonJS and ESM modules, includes a watch mode for development, and works as a drop-in replacement for the node command. It has become the go-to choice for running TypeScript scripts, development servers, and CLI tools in the Node.js ecosystem.

Key Features

Zero Configuration

tsx requires no tsconfig.json, no babel configuration, and no build setup. Install it globally or as a dev dependency, then run your .ts files. It handles TypeScript, JSX, TSX, and even .cts/.mts files automatically. This zero-config approach is tsx’s defining feature and its biggest advantage over ts-node, which frequently requires configuration tweaks to work correctly.

esbuild-Powered Speed

tsx uses esbuild for transpilation, which is written in Go and compiles TypeScript to JavaScript extremely fast. Where ts-node can take several seconds to start a TypeScript file (especially with type checking enabled), tsx starts almost instantly. For scripts that run frequently during development, this speed difference is immediately noticeable and meaningfully improves iteration cycles.

CJS and ESM Support

One of the most frustrating aspects of TypeScript in Node.js is the CommonJS vs ESM module resolution mess. tsx handles both seamlessly. It automatically detects the module format based on file extensions (.cts for CommonJS, .mts for ESM) and package.json type field. You do not need to juggle module settings in tsconfig.json or worry about interop issues.

Watch Mode

tsx includes a built-in watch mode (tsx watch) that re-runs your script whenever files change. This is useful for development servers, scripts, and tools that need to restart on code changes. It replaces the need for nodemon combined with ts-node, consolidating two tools into one command.

Node.js Loader Integration

tsx can be used as a Node.js loader via –import tsx or –loader tsx, which means you can integrate it into existing Node.js workflows. This lets you use tsx with other tools that spawn Node processes, test runners that support custom loaders, and complex project setups where replacing the node command entirely is not practical.

Path Alias Support

tsx respects TypeScript path aliases defined in tsconfig.json (like @/ imports). This works without additional configuration. ts-node requires the tsconfig-paths package for this feature. tsx handles it natively, which is a small but appreciated quality-of-life improvement for projects that use path mapping.

Pricing

tsx is completely free and open source under the MIT license. There are no paid tiers, no premium features, and no usage restrictions.

Pros

  • Truly zero-config TypeScript execution in Node.js
  • Near-instant startup thanks to esbuild transpilation
  • Handles CJS and ESM module resolution automatically
  • Built-in watch mode replaces nodemon + ts-node combo
  • Path alias support works without extra packages
  • Drop-in replacement for the node command
  • Actively maintained with regular updates

Cons

  • Does not perform type checking (by design, but worth noting)
  • Not a full runtime replacement, still requires Node.js
  • Some edge cases with decorators and advanced TypeScript features
  • No bundling, testing, or package management features
  • Less useful if your project already has a build pipeline
PlanPricePlan FeaturesBest For
Open SourceFreeFull TypeScript execution, watch mode, path aliases. MIT license.Everyone

Who is tsx Best For?

tsx is perfect for developers who want to run TypeScript in Node.js without any ceremony. If you write scripts, CLI tools, API servers, or automation tasks in TypeScript and just want them to execute instantly, tsx is the simplest path. It is especially valuable for solo developers and small teams who do not want to maintain a complex build configuration.

The tool shines in development workflows. Running a development server, executing database migrations, running seed scripts, or testing quick ideas in TypeScript all become frictionless with tsx. If your project already has a full build pipeline with tsc compilation, tsx is less necessary for the build itself but still useful for scripts and development tasks.

tsx vs ts-node

ts-node was the original solution for running TypeScript in Node.js, but it has become increasingly frustrating to use. It often requires careful tsconfig.json configuration, is slow due to using the TypeScript compiler for transpilation, and struggles with ESM modules. tsx solves all three problems: it needs no configuration, uses esbuild for speed, and handles module formats automatically. For the vast majority of use cases, tsx is the better choice.

Alternatives

ts-node

The original TypeScript executor for Node.js. ts-node supports type checking at runtime (tsx does not) and has deeper TypeScript compiler integration. However, it is significantly slower, requires more configuration, and has persistent ESM compatibility issues. Choose ts-node only if runtime type checking is a hard requirement.

Bun

Bun is a complete JavaScript runtime that runs TypeScript natively. Unlike tsx, which is a tool that runs on top of Node.js, Bun replaces Node.js entirely. It is faster than tsx for TypeScript execution and includes a package manager, bundler, and test runner. Choose Bun if you want to replace your entire JavaScript toolchain, not just TypeScript execution.

Deno

Deno is a secure JavaScript and TypeScript runtime with built-in tooling. Like Bun, it replaces Node.js rather than running on top of it. Deno runs TypeScript natively with a security-first permissions model. Choose Deno if you want a complete runtime with built-in security, not just a TypeScript execution tool for Node.js.

Verdict

tsx does one thing and does it exceptionally well: running TypeScript in Node.js without friction. It is not trying to be a full runtime, a bundler, or a test framework. It simply makes TypeScript execution fast and painless. That focused scope is both its greatest strength and its limitation.

For developers who live in the Node.js ecosystem and want TypeScript to just work, tsx is essential. At 7.4/10, it gets a solid recommendation as the best tool in its specific category. The only reason it does not score higher is that tools like Bun and Deno offer TypeScript execution as part of a much broader feature set. But if you want to keep using Node.js and just need TypeScript to run instantly, tsx is the answer.

FAQ

Does tsx do type checking?

No. tsx uses esbuild for transpilation, which strips types without checking them. This is a deliberate design choice for speed. Run tsc –noEmit separately in your CI pipeline or editor for type checking. This separation of concerns (tsx for execution, tsc for type checking) is the recommended workflow.

Can tsx replace tsc for building?

tsx is designed for running TypeScript, not building distributable packages. For building libraries or applications that need compiled JavaScript output, tsc or a bundler like esbuild/rollup is more appropriate. tsx is best for development execution, scripts, and CLI tools.

How does tsx compare to running tsc –watch?

tsc –watch compiles your TypeScript to JavaScript files on disk, then you run the JavaScript with node. tsx skips the compilation step entirely and runs TypeScript directly. For development, tsx is simpler and faster. For production builds, tsc is still the standard approach.

tsx Pros & Cons

What We Like

  • Truly zero-config TypeScript execution
  • Near-instant startup with esbuild transpilation
  • Handles CJS and ESM automatically
  • Built-in watch mode replaces nodemon + ts-node
  • Path alias support without extra packages
  • Drop-in replacement for the node command
  • Actively maintained with regular updates

What Could Be Better

  • Does not perform type checking
  • Not a full runtime replacement, requires Node.js
  • Some edge cases with decorators and advanced features
  • No bundling, testing, or package management
  • Less useful if project already has a build pipeline

tsx FAQ

Does tsx do type checking?

No. tsx uses esbuild which strips types without checking them. Run tsc --noEmit separately for type checking.

Can tsx replace tsc for building?

tsx is for running TypeScript, not building packages. Use tsc or a bundler for compiled JavaScript output.

How does tsx compare to tsc --watch?

tsc --watch compiles to JS files on disk then you run them. tsx runs TypeScript directly, skipping the compilation step entirely.

What is tsx?

Zero-config TypeScript executor for Node.js powered by esbuild. Drop-in replacement for ts-node with near-instant startup and automatic CJS/ESM support.

How much does tsx cost?

tsx pricing starts at Free (open source). A free plan is available.

Is tsx worth it?

tsx is the simplest, fastest way to run TypeScript in Node.js. Zero config, esbuild speed, automatic module resolution. Essential for any Node.js developer writing TypeScript. We rate it 7.4/10.

Disclosure: MakerStack is funded by featured placement fees, sponsor slots and a small number of affiliate links. Nobody paid for this review. Where any of those does apply to a review, we say so on the page. The scoring criteria are the same in every case. See our editorial policy.

This review describes tsx as we tested it on March 20, 2026. Pricing, plans and features may have changed since. We don't update reviews on request; see our update policy.