ts-node VS swc-node

Compare ts-node vs swc-node and see what are their differences.

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
ts-node swc-node
20 6
12,547 1,605
0.8% 1.8%
5.5 7.6
2 months ago 15 days ago
TypeScript TypeScript
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.

ts-node

Posts with mentions or reviews of ts-node. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-08-11.

swc-node

Posts with mentions or reviews of swc-node. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-02-25.
  • Thoughts about Deno?
    3 projects | /r/typescript | 25 Feb 2023
    swc-node is much faster. No typechecking but you can have that running as a separate process with typescript in watch mode. Basically never have to wait for compiles or typechecking checking then.
  • Node + SWC make a lightning fast typescript runtime
    4 projects | /r/javascript | 31 Jan 2023
    fwiw swc has an official loader: https://github.com/swc-project/swc-node
  • Node.js 18.x runtime now available in AWS Lambda
    1 project | /r/node | 22 Nov 2022
  • Next.js 12 - Rust Compiler, React 18 and Native ES Modules Support, React Server Components
    4 projects | /r/javascript | 26 Oct 2021
    I actually just switched my team's app over to use https://github.com/Brooooooklyn/swc-node for our Jest tests, but if we're going to upgrade to Next 12 it'd be nice to reuse whatever's included there.
  • Next.js 12
    27 projects | news.ycombinator.com | 26 Oct 2021
    I actually upgraded my team's Jest config to use https://github.com/Brooooooklyn/swc-node a few weeks ago. However, our Jenkins CI agents run RHEL7, and neither of the Linux binary targets would run. The `x64-gnu` binary needed a `GLIBC_2_23` symbol when only 2.18 was available, and the `x64-musl` binary had no `musl-libc` on the machine. I don't own the Jenkins agents, so I couldn't install other deps myself.

    I ended up building `musl-libc` from source on another RHEL7 agent, committed the `.so` to our repo, and added that to the `LD_LIBRARY_PATH` in our Jenkinsfile, and actually got that working.

    I did see some mentions that Rust could build to target an older GLibc ( https://kobzol.github.io/rust/ci/2021/05/07/building-rust-bi... ), so I'm curious if Next is going to use copies of SWC built that way for better compat or if it will require more workarounds on my part.

    I'm very curious if the Next SWC binaries

  • Build Speed Improvements
    1 project | dev.to | 6 Sep 2020

What are some alternatives?

When comparing ts-node and swc-node you can also consider the following projects:

esbuild - An extremely fast bundler for the web

vike - 🔨 Like Next.js / Nuxt but as do-one-thing-do-it-well Vite plugin.

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

sucrase - Super-fast alternative to Babel for when you can target modern JS runtimes

swc - Rust-based platform for the Web

nextjs-tailwind-ionic-capacitor-starter - A starting point for building an iOS, Android, and Progressive Web App with Tailwind CSS, React w/ Next.js, Ionic Framework, and Capacitor

entr - Run arbitrary commands when files change

TypeScript-Call-Graph - CLI to generate an interactive graph of functions and calls from your TypeScript files

Next.js - The React Framework