tsx
Node.js enhanced with esbuild to run TypeScript and ESM files.
Languages, types and runtimes npm MIT
Used in agent projects
1,262
9.9% of 12,697 public repos built with AI coding agents
Rank in languages, types and runtimes
#2 of 18
by use in those projects
Downloads
96.8M
npm, last 7 days, tsx
GitHub stars
12.2K
last push Sep 25, 2026
How tsx is used
tsx is a dependency in 1,262 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (9.9%), #2 of 18 in languages, types and runtimes. The most used alternative there is TypeScript. Projects that use it most often also use TypeScript (94.5%), Zod (50.8%), Vitest (41.3%). It is more common in projects set up for Kiro (24.7%) than for OpenCode (12.2%).
Often used with tsx
| TypeScript | 94.5% of tsx projects · 1.7× more than average |
|---|---|
| Zod | 50.8% of tsx projects · 3.0× more than average |
| Vitest | 41.3% of tsx projects · 3.4× more than average |
| dotenv | 45.5% of tsx projects · 2.9× more than average |
| Model Context Protocol SDK (JavaScript) | 18.2% of tsx projects · 3.8× more than average |
| ESLint | 49.2% of tsx projects |
| Express | 20.3% of tsx projects · 3.1× more than average |
| React | 50.6% of tsx projects |
By coding agent
| Claude Code | 15.5% of projects set up for it |
|---|---|
| Cursor | 15.9% of projects set up for it |
| GitHub Copilot | 13.0% of projects set up for it |
| OpenAI Codex | 18.5% of projects set up for it |
| Gemini CLI | 17.4% of projects set up for it |
| Devin Desktop | 16.8% of projects set up for it |
| OpenCode | 12.2% of projects set up for it |
| Kiro | 24.7% of projects set up for it |
Share of public repos configured for each agent that list tsx as a dependency.
Install
| Package | npm install tsx |
|---|---|
| Main stacks | TypeScript / JavaScript (843), Next.js (349), Python (33), Rust (28) |
| Example projects | thedaviddias/Front-End-Checklist, apify/apify-mcp-server, NG-ZORRO/ng-zorro-antd, getsentry/MobileBuildMCP, crbnos/carbon |
Alternatives to tsx
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| TypeScript npm Language for application-scale JavaScript development with static type checking. |
7,092 (55.9%) | 305M | 111K | Apache-2.0 |
| ts-node npm TypeScript execution environment for Node.js with source map support. |
865 (6.8%) | 45.6M | 13.1K | MIT |
| vue-tsc npm TypeScript type checker for Vue.js single-file components. |
111 (0.9%) | 6.5M | 6,724 | MIT |
| tsconfig-paths npm Module resolution utility that loads Node.js modules according to TypeScript path mappings. |
86 (0.7%) | 113M | 1,908 | MIT |
| Cloudflare Workers Types npm TypeScript type definitions for Cloudflare Workers runtime. |
84 (0.7%) | 12.1M | 8,888 | MIT OR Apache-2.0 |
| jiti npm Runtime TypeScript and ESM support for Node.js without build steps. |
84 (0.7%) | 19M | 2,973 | MIT |
| CFFI pypi Foreign Function Interface for calling C code from Python. |
84 (0.7%) | 248M | 280 | — |
| pycparser pypi C language parser written in pure Python for language tools. |
83 (0.7%) | 23M | 3,575 | — |