# privatenumber/tsx

⚡️ TypeScript Execute | The easiest way to run TypeScript in Node.js

Repository: https://github.com/privatenumber/tsx
Canonical: https://ross.abutalabs.com/products/tsx
Homepage: https://tsx.hirok.io
Language: TypeScript
License: MIT
License Family: permissive
Topics: esbuild, esm, node, typescript, loader, runtime, cli, watch
Last push: 2026-08-10T03:39:15+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 97, longevity 100
- inputs: {"age_days": 1632, "days_push": 23, "days_rel": 23, "gap_med": 2, "n_releases_24m": 32}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 12119, forks 258 (observed 2026-08-28T04:10:51.792475+00:00)

## What it is
tsx is a Node.js enhancement that runs TypeScript files directly, acting like an alias to node with esbuild-powered transpilation. It supports CJS/ESM interop, tsconfig paths, and a watch mode for fast development iteration.

## Use cases
- run a typescript file directly without compiling
- replace ts-node with a faster typescript runner
- run typescript scripts in node with no config
- watch and re-run a typescript file on save
- import esm packages from a commonjs project
- quickly execute a .ts script with npx

## When to choose
- you want zero-config TypeScript execution in Node.js
- you need fast startup via esbuild instead of ts-node
- you want built-in watch mode for development
- you need CJS and ESM interoperability

## When to avoid
- you need type-checking at runtime (tsx strips types without checking)
- you're bundling for production rather than running directly
- you're targeting runtimes other than Node.js like Deno or Bun

## Facets
- artifact type: cli-tool
- maturity: active
- function: cli, interpreter, developer-tools
- domain: developer-tools, programming-languages
- platform: cli, cross-platform
- tags: typescript, esbuild, esm, cjs, watch-mode, nodejs-loader, typescript-runner, command-line, nodejs

## Member repositories
- privatenumber/tsx (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:51.792475+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:14:55.381570+00:00, confidence not recorded.
  - readme: https://github.com/privatenumber/tsx (fetched 2026-08-28T04:10:51.792475+00:00, sha 44e63909767a)
  - homepage: https://tsx.hirok.io (fetched 2026-08-29T08:12:35.172285+00:00, sha d35764be6d0a)
  - site_page: https://tsx.hirok.io/getting-started (fetched 2026-08-29T08:12:35.181408+00:00, sha 9546383c71f4)
  - registry_npm: https://registry.npmjs.org/tsx (fetched 2026-08-29T08:12:35.186507+00:00, sha 7d3069355f84)
  - site_page: https://tsx.hirok.io/faq (fetched 2026-08-29T08:12:35.183572+00:00, sha a3fa643ee004)
- Data as of 2026-08-30T08:39:29.467469+00:00.
