</>PackageGraphPackageGraph

tsx

npmv4.23.13

TypeScript 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.

1
Direct dependencies

Runtime packages this one declares itself.

1
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

664 KB
Install size

Unpacked size of this package plus its entire runtime tree.

1
Tree depth

Longest resolved dependency chain below this package.

Licenses in the dependency tree

MIT

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.

PackageWeekly downloadsDependentsLicenseLast release
tsxthis page61.9M26MIT11 days ago
ts-node42.2M38MIT1 day ago
next40.6M0MIT1 day ago
valibot16.8M5MIT1 day ago
esm6.2M5MIT1 day ago
sql-escaper5M1MIT1 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.

entitiesnpm

Encode & decode XML and HTML entities with ease & speed

204M/wk3 dependentsBSD-2-ClauseTS
vitenpm

Native-ESM powered web dev build tool

158.6M/wk26 dependentsMIT
csstypenpm

Strict TypeScript and Flow types for style based on MDN data

142.8M/wk2 dependentsMITTS
pg-connection-stringnpm

Functions for dealing with a PostgreSQL connection string

38.9M/wk2 dependentsMITTS
magicastnpm

Modify a JS/TS file and write back magically just like JSON!

33.9M/wk3 dependentsMITTS
@reduxjs/toolkitnpm

The official, opinionated, batteries-included toolset for efficient Redux development

26.4M/wk2 dependentsMITTS
cheerionpm

The fast, flexible & elegant library for parsing and manipulating HTML and XML.

24.1M/wk5 dependentsMITTS
drizzle-ormnpm

Drizzle ORM package for SQL databases

19M/wk0 dependentsApache-2.0TS
kyselynpm

Type safe SQL query builder

15.6M/wk1 dependentsMIT
mysql2npm

fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS

10.5M/wk3 dependentsMITTS
sql-escapernpm

🛡️ Faster SQL escape and format for JavaScript (Node.js, Bun, and Deno).

5M/wk1 dependentsMITTS
@devframes/json-render-uinpm

Vue renderer for devframe views described as JSON.

37.5K/wk1 dependentsMIT
@vitest/browser-webdriverionpm

Browser running for Vitest using webdriverio

0/wk1 dependentsMITTS
geckodrivernpm

Mozilla's Geckodriver for Node.js

0/wk2 dependentsMITTS
@modelcontextprotocol/sdknpm

Model Context Protocol implementation for TypeScript

0/wk1 dependentsMIT
ip-addressnpm

A library for parsing IPv4 and IPv6 IP addresses in node and the browser.

0/wk3 dependentsMITTS
zod-to-json-schemanpm

Converts Zod schemas to Json Schemas

0/wk1 dependentsISCTS
eventsourcenpm

WhatWG/W3C compliant EventSource client for Node.js and browsers

0/wk3 dependentsMITTS
@testing-library/react-nativenpm

Simple and complete React Native testing utilities that encourage good testing practices.

0/wk10 dependentsMITTS
@vitejs/devtools-oxcnpm

DevTools for the Oxc toolchain

0/wk1 dependentsMITTS
@open-draft/deferred-promisenpm

A Promise-compatible abstraction that defers resolving/rejecting promises to another closure.

0/wk2 dependentsMIT
aws-ssl-profilesnpm

AWS RDS SSL certificates bundles.

0/wk1 dependentsMITTS
gelnpm

The official Node.js client library for Gel

0/wk1 dependentsApache-2.0TS
@typescript-eslint/typesnpm

Types for the TypeScript-ESTree AST spec

0/wk2 dependentsMITTS

Relationship graph

Dependencies (left) and dependents (right) of tsx.

Frequently installed together

Release history

31 releases in the last two years, typically about 1 day apart.

Recent versions of tsx
VersionPublishedSizeLicense
4.23.13latest11 days ago520 KBMIT
4.23.121 month ago522 KBMIT
4.23.111 month ago522 KBMIT
4.23.101 month ago521 KBMIT
4.23.91 month ago521 KBMIT
4.23.81 month ago520 KBMIT
4.23.71 month ago517 KBMIT
4.23.61 month ago517 KBMIT
4.23.51 month ago515 KBMIT
4.23.41 month ago513 KBMIT
4.23.31 month ago513 KBMIT
4.23.21 month ago513 KBMIT
4.23.11 month ago513 KBMIT
4.23.02 months ago508 KBMIT
4.22.52 months ago506 KBMIT

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

Keywords

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.