tsx VS deno

Compare tsx vs deno and see what are their differences.

tsx

⚡️ TypeScript Execute: Node.js enhanced to run TypeScript & ESM (by privatenumber)

deno

A modern runtime for JavaScript and TypeScript. (by denoland)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
tsx deno
23 448
7,633 92,841
7.7% 0.5%
9.1 9.9
4 days ago 6 days ago
TypeScript Rust
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

tsx

Posts with mentions or reviews of tsx. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-11-21.
  • Finally, a guide for Node.js and TypeScript and ESM that works
    18 projects | news.ycombinator.com | 21 Nov 2023
    I really enjoy frontend/node/typescript development. I roll my eyes whenever the HN-types complain about CSS or frontend development being a hellhole. Mostly the comments I see seem ignorant or impatient ("Why doesn't this thing work without be bothering to learn it?")

    However, the intersection of typescript, nodejs, and ES modules is consistently the most frustrating experience I ever have. Trying to figure out which magic incantation of tsconfig/esbuild/tsc/node options will let me just write code and run it is a fools errand. You might figure something out, and then you try to use Jest and then you descend into madness again.

    The biggest tip I can give people is to ditch ts-node and just use (the awkwardly named) tsx https://github.com/privatenumber/tsx, which pretty much just "mostly works" for running Typescript during dev for node.

    The problem mostly seems to stem for all the stakeholders being pretty dogmatic to whatever their goals are, rather than the pragmatic option of just meeting people where they are. I really wish the Node, Typescript, Deno/Bun, and maybe some bundler people would come together and figure out how to make this easier for people.

  • ERDIA: TypeORM entity specification documentation tool
    6 projects | dev.to | 28 Aug 2023
    If your TypeORM entity is written in TypeScript, you have to run ERDIA using ts-node or tsx as follows.
  • xtsz - a TS / JS file runner with support for HTTP/S imports
    5 projects | /r/node | 22 Apr 2023
    Want to import a package / file conveniently from esm.sh or unpkg or directly from a GitHub repo for a one-off script (for example). To do this I created a custom ESBuild plugin to handle HTTP imports - that worked for ,js files. To support running both ESM and CJS, I use tsx.
  • What is your must have npm package on any given project?
    15 projects | /r/webdev | 5 Apr 2023
    I prefer tsx honestly. Nodemon will detect that your using TypeScript and switch from node to ts-node but tsx is a no config necessary version of ts-node that also runs faster. Of course you can configure ts-node to use swc to be faster but then you're playing with config files to get things working.
  • Question about debugging TypeScript
    1 project | /r/typescript | 3 Apr 2023
    I highly recommend you give this a shot over ts-node
  • Jsx as a general templating language?
    1 project | /r/reactjs | 8 Mar 2023
    Dude I just worked on a PoC a few hours ago. What I did was use ReactDOM's renderToStaticMarkup and tsx to execute the script so I get jsx transpilation on the fly.
  • Thoughts about Deno?
    3 projects | /r/typescript | 25 Feb 2023
    I’ve been trying to adopt Deno into new projects, but I find Node through tsx good enough.
  • Will nodeJs ever have out of the box typescript support?
    6 projects | /r/node | 22 Feb 2023
    try tsx. it has support for watch mode and works great with esm module projects.
  • Why is this so hard to do? Help
    3 projects | /r/typescript | 19 Feb 2023
    This is the answer: https://github.com/esbuild-kit/tsx
  • <3 Deno
    11 projects | news.ycombinator.com | 12 Feb 2023
    Have a look at https://github.com/esbuild-kit/tsx

    _tsx is a CLI command (alternative to node) for seamlessly running TypeScript & ESM, in both commonjs & module package types.

    It's powered by esbuild so it's insanely fast._

deno

Posts with mentions or reviews of deno. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-02.
  • Bun - The One Tool for All Your JavaScript/Typescript Project's Needs?
    4 projects | dev.to | 2 Apr 2024
    NodeJS is the dominant Javascript server runtime environment for Javascript and Typescript (sort of) projects. But over the years, we have seen several attempts to build alternative runtime environments such as Deno and Bun, today’s subject, among others.
  • Bun 1.1
    17 projects | news.ycombinator.com | 1 Apr 2024
    https://github.com/denoland/deno/issues is the ideal place -- we try to triage all incoming issues, the more specific the repro the easier it is to address but we will take a look at everything that comes in.
  • I have created a small anti-depression script
    4 projects | dev.to | 5 Mar 2024
    Install Node.js (or Bun, or Deno, or whatever JS runtime you prefer) if it's not there
  • How QUIC is displacing TCP for speed
    1 project | news.ycombinator.com | 9 Feb 2024
    QUIC is very exciting, after seeing what it can do for performance in Cloudflare network and Cloudflare workers, I can't wait to finally see it in Deno[0] 1.41.

    [0] https://github.com/denoland/deno/pull/21942#issuecomment-192...

  • Unison Cloud
    7 projects | news.ycombinator.com | 7 Feb 2024
    So as an end user it's kind of like https://deno.com/ where you buy into a runtime + comes prepacked with DBs (k/v stores), scheduling, and deploy stuff?

    > by storing Unison code in a database, keyed by the hash of that code, we gain a perfect incremental compilation cache which is shared among all developers of a project. This is an absolutely WILD feature, but it's fantastic and hard to go back once you've experienced it. I am basically never waiting around for my code to compile - once code has been parsed and typechecked once, by anyone, it's not touched again until it's changed.

    Interesting. Whats it like upgrading and managing dependencies in that code? I'd assume it gets more complex when it's not just the Union system but 3rd party plugins (stuff interacting with the OS or other libs).

  • Deno in 2023
    8 projects | news.ycombinator.com | 5 Feb 2024
    ~90MB+ at this stage and do now allow compression without erroring out. Deploying ala Golang is not feasible at that level but could well be down the line if this dev branch is picked up again!

    The exe output grew from from ~50MB to plus ~90MB from 2021 to 2024: https://github.com/denoland/deno/discussions/9811 which mean Deno is worse than Node.js's pkg solution by a decent margin.

  • Mini site for recommending songs using Svelte & Deno
    2 projects | dev.to | 3 Feb 2024
    Behind the scenes is a simple Sveltekit-powered server function to fetch a Spotify client token then find a user's recommendation playlist and its track information. A Deno edge function to performs this data fetch and renders server-side Svelte.
  • Supercharge your app with user extensions using Deno JavaScript runtime
    4 projects | dev.to | 24 Jan 2024
    If your application is written in JavaScript, integrating it with JavaScript extensions is a no-brainer. However, Secutils.dev is entirely written in Rust. How would I even begin? Fortunately, I recently came across an excellent blog post series explaining how to implement your JavaScript runtime in a Rust application with Deno:
  • Deno, the next-generation JavaScript runtime
    1 project | news.ycombinator.com | 11 Jan 2024
  • Oxlint – written in Rust – 50-100 Times Faster than ESLint
    13 projects | news.ycombinator.com | 15 Dec 2023

What are some alternatives?

When comparing tsx and deno you can also consider the following projects:

esbuild-runner - ⚡️ Super-fast on-the-fly transpilation of modern JS, TypeScript and JSX using esbuild

ASP.NET Core - ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.

ts-node - TypeScript execution and REPL for node.js

typescript-language-server - TypeScript & JavaScript Language Server

ts-runtime-comparison - Comparison of Node.js TypeScript runtimes

pnpm - Fast, disk space efficient package manager

esno - Alias to `tsx`

esbuild - An extremely fast bundler for the web

esbuild-node-tsc - Build your Typescript Node.js projects using blazing fast esbuild

bun - Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one

vite - Next generation frontend tooling. It's fast!

Koa - Expressive middleware for node.js using ES2017 async functions