# swc-node: 4.8 out of 10

Keep, but not for new work. 8th of 10 in [Script runners and process managers](https://elestia.ai/opensource/script-runners/index.md).

@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`.

## Scores

- **Overall: 4.8** (likely 3.7 to 5.9)
  - Claude Opus 5.5 (4.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): 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 many: 4.7** (likely 3.6 to 5.8)
  - Claude Opus 5.5 (5.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): 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 lot: 5.2** (likely 4.1 to 6.3)
  - Claude Opus 5.5 (4.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): 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 time: 4.8** (likely 3.7 to 6.3)
  - Claude Opus 5.5 (4.5): 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.
  - GPT-6.2 Sol (5.1): 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 widely: 4.0** (likely 2.9 to 5.2)
  - Claude Opus 5.5 (4.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): 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.
- **Vouched for: 4.9** (likely 3.8 to 6.2)
  - Claude Opus 5.5 (4.0): 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): 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.
- **Safe: 7.2** (likely 5.8 to 8.3)
  - Claude Opus 5.5 (7.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.
  - GPT-6.2 Sol (7.3): 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

- Downloads, 4 weeks: 26M
- In a year: ×2.8
- GitHub stars: 2k
- Commits, 12 months: 103
- Last npm release: Jul 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/swc-project/swc-node
- npm: https://www.npmjs.com/package/@swc-node/register

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
