# tsx

6 Hacker News commenters recommended tsx and 3 criticized it, November 2025 to November 2026. It was recommended in 5 of 13 months.

**Verdict:** Runs TypeScript files in Node.js, valued for static typing and type checking. One critic reports mangled source maps that complicate debugging.

## Why people recommend it

- Static typing and type safety (4 comments): "It works nicely for these things because it already supports typed parameters and can be treated as a a raw AST without JS engine." ([source](https://news.ycombinator.com/item?id=47681080)) "You get full support for static typing and IDE code intelligence. That's huge and pretty much unique to TSX." ([source](https://news.ycombinator.com/item?id=48232787)) "I like the type safety of TSX as well as the syntax highlighting" ([source](https://news.ycombinator.com/item?id=47090144))

## Alternatives hackers recommend

- [Bun](https://hackerapproved.com/p/bun.md): 493 recommend
- [Node.js](https://hackerapproved.com/p/node-js.md): 257 recommend
- [Deno](https://hackerapproved.com/p/deno.md): 234 recommend
- [Ant JavaScript runtime](https://hackerapproved.com/p/ant-javascript-runtime.md): 16 recommend
- [workerd](https://hackerapproved.com/p/workerd.md): 13 recommend

## Cite as

Hacker Approved, "tsx", https://hackerapproved.com/p/tsx/ (counts from 1,795,640 Hacker News comments, November 2025 to November 2026).
