Elestia Open Source Ratings
4.8

swc-node

Keep, but not for new work. 8th of 10 script runners and process managers.

@swc-node/register is a Node.js require/import hook that uses SWC to run TypeScript files without type checking. It works and it is fast, but it has no watch mode and no process manager, and it has open ESM, tsconfig and TypeScript 7 bugs. Most of its installs come from Nx workspaces. For new work, tsx or Node's built-in type stripping is the better pick.

Best for: Nx monorepos and existing setups that already load TypeScript through `node -r @swc-node/register`.

GitHubnpm

Scores

Overall4.8

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 4.0, likely 3.0 to 5.0

It is a working, fast transpile-only loader that fits where Nx already uses it. For a new project, tsx does the same job with watch mode and fewer ESM bugs, and Node's native type stripping covers simple cases. Its slow release pace, unanswered issues and TypeScript 7 breakage mean you should keep it where it runs and pick something else for new work.

GPT-6.2 Sol: 5.5, likely 4.3 to 6.7

swc-node is a reasonable pick when a Node.js project needs SWC's legacy decorator metadata and can keep TypeScript 6 available. tsx offers a simpler CLI and built-in watch mode for most new projects. The unresolved TypeScript 7 compatibility gap and slower relative adoption make swc-node harder to recommend broadly.

Needed by many4.7

How many developers need a tool for this job?

Claude Opus 5.5: 5.0, likely 4.0 to 6.0

Many TypeScript developers need to run .ts files directly, but this package covers only the transpile-on-load part of the category's job. It does not watch files or keep processes running. Node's native type stripping also shrinks the need for a separate loader.

GPT-6.2 Sol: 4.3, likely 3.2 to 5.6

The State of JavaScript survey shows broad use of both Node.js and TypeScript. swc-node serves the smaller group that needs to transform TypeScript at runtime in Node.js, for example to emit decorator metadata. Node can already run scripts that only need type stripping, and the survey does not measure how many projects need a separate loader.

Helps a lot5.2

How well does it do the job for those who need it?

Claude Opus 5.5: 4.5, likely 3.5 to 5.5

Transpiling with SWC is fast and handles full TypeScript syntax, including enums and decorators. But users report open ESM resolution bugs, ignored nodenext defaults, a crash with TypeScript 7 and a segfault on glibc Linux. tsx does the same job with a CLI and watch mode built in and fewer edge-case failures.

GPT-6.2 Sol: 5.8, likely 4.6 to 7.1

Version 1.12.1 supports CommonJS and ESM, source maps, transform caching, and legacy decorator metadata that tsx cannot emit. It needs a separate type check and has no built-in watch or supervision. The published package excludes TypeScript 7, and a user confirmed a startup crash when the CommonJS hook loaded stable TypeScript 7. A small independent benchmark found startup close to tsx for one script, so it gives little evidence about larger projects.

Holds up over time4.8

Will it still be a good choice in two years?

Claude Opus 5.5: 4.5, likely 3.5 to 6.0

The repository is active, with 103 commits last year, many of them from Renovate. But npm saw only two releases in the year, and one main maintainer appears to carry the project alongside the larger SWC and napi-rs work. Recent issues often get no maintainer reply, and the ecosystem is moving towards tsx and native type stripping.

  • github commitsLastYear / releasesLastYear: 103 commits but 1 GitHub release
  • npm versionsLastYear: 2 versions in a year
  • github.com/swc-project/swc-node/issues/1049: Only a peer-dependency commit, no direct maintainer reply

GPT-6.2 Sol: 5.1, likely 3.8 to 6.5

The repository recorded 103 commits in a year, but the register package published twice, with a debugger fix in July. The latest recorded push was a bot refresh of an open TypeScript 7 dependency PR. Nx now prefers native type stripping where it works, and the project's sponsorship appeal gives little visibility into funding or how many maintainers can publish.

Used widely4.0

How many use it, and is that growing?

Claude Opus 5.5: 4.5, likely 3.5 to 5.5

It has about 25.7M downloads in 4 weeks. The ratio of 2.8x is below the 4.1 median, so it is losing ground. Many of those downloads come from Nx workspaces that install it by default. At 3,945 dependent repos it trails tsx (18,790) and ts-node by far.

GPT-6.2 Sol: 3.5, likely 2.3 to 4.8

Four-week downloads reached 25.7 million, up 2.82× year over year, below the 4.1× catalog baseline and tsx's 9.06×. The index found 3,945 dependent repositories and 569 packages, compared with 18,790 repositories for tsx. Nx tooling and automated installs make downloads a weak measure of direct choices, and the snapshot found no matching Hacker News stories or Bluesky links.

  • npm downloadsLast4Weeks and npm downloadsSame4WeeksYearAgo: 25.7 million versus 9.13 million downloads.
  • medianDownloadsRatio and peers tsx: Growth trailed both the 4.1× baseline and tsx.
  • dependents and peers tsx dependentRepos: 3,945 indexed repositories versus 18,790 for tsx.
  • hackerNews stories and bluesky posts: Zero matches on either platform.
  • nx.dev/docs/technologies/typescript/migrations: An Nx migration updates swc-node in existing workspaces.
Vouched for4.9

Who stands behind it being good?

Claude Opus 5.5: 4.0, likely 3.0 to 5.5

Nx builds on it, and the SWC organisation owns it. That counts as one notable backer. I found no Hacker News stories or Bluesky posts, no survey coverage, and no independent benchmarks that favour it today.

GPT-6.2 Sol: 5.7, likely 4.5 to 6.9

Nx integrates swc-node as a fallback, and Apache Arrow JS uses it in development tooling. An Nx user reported that forcing the loader resolved an intermittent config-loading issue in their setup. The independent startup comparison covers one small script, and current evidence of broader production use or user satisfaction is sparse.

Safe7.2

How safe is it to depend on?

Claude Opus 5.5: 7.0, likely 5.5 to 8.0

It has no advisories in OSV and an MIT licence. It pulls in 9 dependencies, including native @swc/core and oxc-resolver binaries, which widens the attack surface and has caused install failures on some Windows machines. There is no Scorecard data, so the range stays moderate.

  • advisories: 0 advisories
  • npm dependencies: 9 dependencies, including native binaries
  • scorecard: No Scorecard data
  • github.com/swc-project/swc-node/issues: oxc-resolver postinstall breaks on some Windows machines

GPT-6.2 Sol: 7.3, likely 6.0 to 8.5

The package has a permissive MIT license, and OSV lists zero direct advisories. The release workflow runs tests before publishing from GitHub Actions with OIDC permissions, and the project has a private reporting channel. Nine direct dependencies, native components, and the lack of a Scorecard or a verified publisher count keep the range wide.

Good

  • SWC's native transform makes startup much faster than ts-node with type checking.
  • It works as a drop-in `-r` or `--import` hook for test runners such as Mocha and AVA.
  • It reads tsconfig.json, including `extends`, paths and JSX options.
  • It has no known security advisories and an MIT licence.

Bad

  • It has no built-in watch mode or CLI runner, so restarting on a change needs nodemon or a similar tool.
  • Bugs with ESM resolution and tsconfig defaults stay open for months, such as subpath imports since 1.10.1 and the defaults implied by `module: nodenext`.
  • It broke with TypeScript 7 because it imports the `typescript` API, and users fall back on aliasing workarounds.
  • Few npm releases, and most issues get no maintainer reply.

The numbers

npm downloads, 4 weeks
26M ×2.8 in a year
GitHub stars
2k
Commits, 12 months
103
npm version
1.12.1 Jul 2026
Versions, 12 months
2
Advisories, 24 months
0 of 0 ever
OpenSSF Scorecard
None
Licence
MIT

Read on 21 November 2026 from GitHub (swc-project/swc-node), npm (@swc-node/register), OSV and the OpenSSF Scorecard.

Script runners and process managers

  1. 8.0tsx
  2. 6.7PM2
  3. 6.3concurrently
  4. 6.0nodemon
  5. 5.6jiti
  6. 5.0Wireit
  7. 4.9npm-run-all2
  8. 4.8swc-node
  9. 3.3ts-node
  10. 2.6forever
Compare all 10 on six scores