tsx vs ts-node
In 4,864 JavaScript/TypeScript projects set up for AI coding agents, tsx is a dependency in 957 (19.7%) and ts-node in 298 (6.1%): tsx is 3.2× as common. Among repos created in the last 90 days that use a languages, types and runtimes tool, tsx is in 26.8% and ts-node in 2.1%, against 27.1% and 8.8% of older ones. 89 projects list both, often a sign of a migration or of a monorepo with several apps.
Languages, types and runtimes npm Updated Nov 17, 2026
Side by side
| tsx | ts-node | |
|---|---|---|
| Agent projects that use it | 957 | 298 |
| Rank in languages, types and runtimes | #2 | #3 |
| In new repos with a languages, types and runtimes tool (last 90 days) | 26.8% | 2.1% |
| In older repos with one | 27.1% | 8.8% |
| Downloads, last 7 days | 141M | 58.2M |
| GitHub stars | 12.2K | 13.1K |
| Last push to its repo | Sep 25, 2026 | Jul 18, 2024 |
| License | MIT | MIT |
| Funding | — | — |
| Projects that list both | 89 | |
Downloads include CI runs and installs as a dependency of other packages. Stars and pushes are from GitHub's API; downloads from npm.
By coding agent
| Projects set up for | JavaScript/TypeScript repos | tsx | ts-node |
|---|---|---|---|
| Claude Code | 2,617 | 21.5% | 5.3% |
| GitHub Copilot | 2,350 | 17.7% | 6.5% |
| Cursor | 1,990 | 19.5% | 7.8% |
| Gemini CLI | 422 | 23.9% | 5.5% |
| OpenAI Codex | 409 | 19.6% | 6.1% |
| OpenCode | 304 | 14.8% | 5.3% |
| OpenClaw | 241 | 31.1% | 2.1% |
| Devin Desktop | 231 | 21.6% | 10.4% |
| Kiro | 125 | 26.4% | 4.8% |
| Roo-Code | 90 | 18.9% | 10.0% |
Share of the JavaScript/TypeScript repos configured for each agent (its config file in the repo) that list the tool. A repo set up for two agents counts for both.
tsx
Node.js enhanced with esbuild to run TypeScript and ESM files.
Most often used with it:
| TypeScript | 95.3% of its projects |
|---|---|
| Zod | 57.8% of its projects |
| Vitest | 51.9% of its projects |
| dotenv | 44.6% of its projects |
| ESLint | 53.2% of its projects |
npm install tsx
ts-node
TypeScript execution environment for Node.js with source map support.
Most often used with it:
| Jest | 44.0% of its projects |
|---|---|
| TypeScript | 96.0% of its projects |
| dotenv | 46.0% of its projects |
| ESLint | 69.5% of its projects |
| Prettier | 49.3% of its projects |
npm install ts-node
More matchups
How we count
Projects are public GitHub repos our weekly scan finds through coding-agent config files (CLAUDE.md, AGENTS.md, .cursor/mcp.json and others); a project uses a tool when its package.json, requirements.txt or pyproject.toml lists it. "Same job" was checked for every pair, so add-ons and companions are never paired. Shares by repo age compare repos created in the last 90 days with older ones in the same scan. More on the method.