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`.
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.
- peers tsx: tsx has 556M downloads, a 9x year-over-year ratio and 18.8k dependent repos
- github.com/swc-project/swc-node/issues/1049: Breaks with TypeScript 7
- betterstack.com/community/guides/scaling-nodejs/tsx-vs-ts-node: tsx has a built-in watcher and runs with no setup
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.
- app.unpkg.com/@swc-node/register@1.12.1/files/README.md: Documents legacy decorator metadata and the Node preload workflow.
- tsx.hirok.io/watch-mode: tsx ships a dedicated watch command.
- github.com/swc-project/swc-node/issues/1049: Stable TypeScript 7 compatibility remains open.
- npm downloadsLast4Weeks, medianDownloadsRatio, and peers tsx: swc-node trails both the catalog growth baseline and its closest runner peer.
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.
- nodejs.org/download/release/v26.3.0/docs/api/typescript.html: Node now strips erasable TypeScript natively
- betterstack.com/community/guides/scaling-nodejs/tsx-vs-ts-node: Comparison notes that watch mode needs an external tool for register-style loaders
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.
- 2025.stateofjs.com/en-US/other-tools/#runtimes: Node.js led the runtime question with 10,062 of 11,141 respondents.
- 2025.stateofjs.com/en-US/usage: The share of respondents writing all their code in TypeScript grew.
- nodejs.org/api/typescript.html: Node has stable built-in type stripping.
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.
- github.com/swc-project/swc-node/issues: Open bugs: subpath imports, nodenext defaults, relative import resolution, segfault
- github.com/swc-project/swc-node/issues/1049: Fails with TypeScript 7; users rely on workarounds
- npm hasTypes: Registry reports no bundled types
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.
- app.unpkg.com/@swc-node/register@1.12.1/files/README.md: Documents configuration, metadata, caching, and source maps.
- app.unpkg.com/@swc-node/register@1.12.1/files/package.json: Exports CommonJS and ESM hooks and requires TypeScript below 7.
- github.com/swc-project/swc-node/issues/1049: User confirmed a startup crash with 1.12.1 and stable TypeScript 7.
- tsx.hirok.io/typescript: tsx documents that it cannot emit decorator metadata.
- github.com/kevinsimper/typescript-startup-time-benchmark: A 2026 hello-world comparison found roughly 140 ms for swc-node and 145 ms for installed tsx.
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.
- github commitsLastYear and npm versionsLastYear: 103 repository commits and two register releases.
- github.com/swc-project/swc-node/commit/8fdebc5b86567b6831778f094eeb0c5563b3b1b9: July 18 release restored source-map behavior for debuggers.
- github.com/swc-project/swc-node/pull/1053: The open TypeScript 7 PR received a bot update at the snapshot's latest push time.
- nx.dev/docs/reference/environment-variables#nx_prefer_node_strip_types: Nx uses the register hook as a fallback on recent Node versions.
- github.com/swc-project/swc-node: The repository asks for individual sponsorship.
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.
- npm downloadsLast4Weeks / downloadsSame4WeeksYearAgo: 25.7M vs 9.1M, ratio 2.8 below median 4.1
- dependents: 3,945 repos and 569 packages, against 18,790 repos for tsx
- cdn.jsdelivr.net/npm/nx@23.1.0/dist/src/plugins/js/utils/register.d.ts: Nx loads @swc-node/register when present, which inflates installs
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.
- hackerNews / bluesky: Zero stories and zero posts
- cdn.jsdelivr.net/npm/nx@23.1.0/dist/src/plugins/js/utils/register.d.ts: Nx prefers it over ts-node for its ESM loader
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.
- nx.dev/docs/reference/environment-variables: Nx documents the loader as a supported fallback.
- github.com/apache/arrow-js/pull/491: Apache Arrow JS merged the update to 1.12.1 in September 2026.
- github.com/nrwl/nx/issues/36685: A user reported 200 successful runs after switching their setup to swc-node.
- github.com/kevinsimper/typescript-startup-time-benchmark: One independent benchmark measured small-script startup.
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.
- advisories total, scorecard, and npm dependencies: Zero listed direct advisories, no Scorecard, and nine direct dependencies.
- app.unpkg.com/@swc-node/register@1.12.1/files/package.json: MIT license and native compiler and resolver dependencies.
- raw.githubusercontent.com/swc-project/swc-node/8fdebc5b86567b6831778f094eeb0c5563b3b1b9/.github/workflows/CI.yml: The release commit uses a test-gated publish job with an OIDC token permission.
- github.com/swc-project/swc-node/security: Private reporting and a security-fix policy for the latest release.
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.