tsx
npmv4.23.13TypeScript Execute (tsx): Node.js enhanced with esbuild to run TypeScript & ESM files
Safe to adopt
Yes — tsx scores well across adoption, maintenance, weight, supply chain, and licensing. 61.9M downloads per week and 26 known dependents. Last published 11 days ago. 33 releases in the last 2 years.
- AAdoption: grade A, Excellent.
61.9M downloads per week and 26 known dependents.
- AMaintenance: grade A, Excellent.
Last published 11 days ago. 33 releases in the last 2 years.
- AWeight: grade A, Excellent.
Pulls in 1 transitive package, about 664 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding tsx to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Licenses in the dependency tree
Every license you inherit by installing tsx, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- node >=18.0.0
- Module format
- ESM + CommonJS
- TypeScript
- No bundled types
- Install scripts
- None
tsx vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| tsxthis page | 61.9M | 26 | MIT | 11 days ago |
| ts-node | 42.2M | 38 | MIT | 1 day ago |
| next | 40.6M | 0 | MIT | 1 day ago |
| valibot | 16.8M | 5 | MIT | 1 day ago |
| esm | 6.2M | 5 | MIT | 1 day ago |
| sql-escaper | 5M | 1 | MIT | 1 day ago |
Dependencies
Declared by tsx v4.23.13. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (1)
Used by
Popular packages that depend on tsx.
Encode & decode XML and HTML entities with ease & speed
Native-ESM powered web dev build tool
Strict TypeScript and Flow types for style based on MDN data
Functions for dealing with a PostgreSQL connection string
Modify a JS/TS file and write back magically just like JSON!
The official, opinionated, batteries-included toolset for efficient Redux development
The fast, flexible & elegant library for parsing and manipulating HTML and XML.
Drizzle ORM package for SQL databases
Type safe SQL query builder
fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS
🛡️ Faster SQL escape and format for JavaScript (Node.js, Bun, and Deno).
Vue renderer for devframe views described as JSON.
Browser running for Vitest using webdriverio
Mozilla's Geckodriver for Node.js
Model Context Protocol implementation for TypeScript
A library for parsing IPv4 and IPv6 IP addresses in node and the browser.
Converts Zod schemas to Json Schemas
WhatWG/W3C compliant EventSource client for Node.js and browsers
Simple and complete React Native testing utilities that encourage good testing practices.
DevTools for the Oxc toolchain
A Promise-compatible abstraction that defers resolving/rejecting promises to another closure.
AWS RDS SSL certificates bundles.
The official Node.js client library for Gel
Types for the TypeScript-ESTree AST spec
Relationship graph
Dependencies (left) and dependents (right) of tsx.
Frequently installed together
Framework for building one portable devtool integration that runs in any viewer.
TypeScript definitions for node
Next generation testing framework powered by Vite
Universal filesystem path utils
Native-ESM powered web dev build tool
An AST-based pattern checker for JavaScript.
Prettier is an opinionated code formatter
The progressive JavaScript framework for building modern web UI.
Vite DevTools Kit
Simple yet powerful framework for building command-line apps.
Blazing fast and accurate glob matcher written in JavaScript, with no dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions.
A minimal library for executing processes in Node
Release history
31 releases in the last two years, typically about 1 day apart.
| Version | Published | Size | License |
|---|---|---|---|
| 4.23.13latest | 11 days ago | 520 KB | MIT |
| 4.23.12 | 1 month ago | 522 KB | MIT |
| 4.23.11 | 1 month ago | 522 KB | MIT |
| 4.23.10 | 1 month ago | 521 KB | MIT |
| 4.23.9 | 1 month ago | 521 KB | MIT |
| 4.23.8 | 1 month ago | 520 KB | MIT |
| 4.23.7 | 1 month ago | 517 KB | MIT |
| 4.23.6 | 1 month ago | 517 KB | MIT |
| 4.23.5 | 1 month ago | 515 KB | MIT |
| 4.23.4 | 1 month ago | 513 KB | MIT |
| 4.23.3 | 1 month ago | 513 KB | MIT |
| 4.23.2 | 1 month ago | 513 KB | MIT |
| 4.23.1 | 1 month ago | 513 KB | MIT |
| 4.23.0 | 2 months ago | 508 KB | MIT |
| 4.22.5 | 2 months ago | 506 KB | MIT |
Overview
tsx is an npm package that typeScript Execute (tsx): Node.js enhanced with esbuild to run TypeScript & ESM files. It is extremely widely used, with about 61.9M downloads per week and 26 known dependents in the graph. The latest version is 4.23.13, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need typeScript Execute (tsx): Node.js enhanced with esbuild to run TypeScript & ESM files and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (61.9M weekly downloads).
- Clear open-source license (MIT).
- Lean dependency tree (2 direct dependencies).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use tsx?
Yes — tsx scores well across adoption, maintenance, weight, supply chain, and licensing. 61.9M downloads per week and 26 known dependents. Last published 11 days ago. 33 releases in the last 2 years.
How do I install tsx?
Run `npm install tsx` to add tsx to your npm project.
How many dependencies does tsx have?
tsx declares 2 direct dependencies and pulls in 1 packages in total once its runtime tree is resolved totalling about 664 KB on disk.
What license is tsx released under?
tsx is distributed under the MIT license.
How popular is tsx?
tsx has approximately 61,852,970 downloads per week and 26 known dependent packages.
Is tsx still maintained?
The most recent release of tsx (v4.23.13) was published 11 days ago.
Does tsx run install scripts?
No. tsx does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.