pkg.soopen package index

brew / 排名 4385

使用 Homebrew, apk, Nix, scoop 安装 swc

查看 swc 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install swc

local Homebrew formula metadata

Linux

Alpine Linux apk已验证 · 92%
sudo apk add swc

Alpine Linux edge package indexes · swc · 来源: dl-cdn.alpinelinux.org

Nix已验证 · 92%
nix profile install nixpkgs#swc

nixpkgs package indexes · pkgs/by-name/sw/swc/package.nix · 来源: api.github.com

Windows

Scoop已验证 · 92%
scoop install main/swc

Scoop official bucket manifest trees · bucket/swc.json · 来源: api.github.com

概览

软件包摘要

Super-fast Rust-based JavaScript/TypeScript compiler

命令和别名

  • swc

历史

项目历史与用法

SWC, short for Speedy Web Compiler, is a Rust-based JavaScript and TypeScript compiler distributed to JavaScript users through packages such as @swc/core and @swc/cli and to system package users through formulae such as Homebrew's swc. In package-manager culture it is part of the broader move from JavaScript build tools implemented in JavaScript to fast native compilers shipped as prebuilt binaries.

项目历史

The project announced SWC 1.0 on February 8, 2019, describing it as a fast JavaScript compiler able to transpile TypeScript, JSX, and modern ECMAScript to browser-compatible JavaScript. The official repository describes SWC as both a Rust and JavaScript library, which explains why it matters to two package ecosystems at once: Rust crates for compiler internals and npm packages for day-to-day web builds.

采用历史

The SWC website presents it as used by tools such as Next.js, Parcel, and Deno and by companies including Vercel, ByteDance, Tencent, Shopify, and Trip.com. Its adoption story is closely tied to performance: official documentation compares it with Babel and advertises large single-thread and multi-core speedups, making it attractive in CI, editor, and monorepo workflows where transpilation time is visible.

使用方式

CLI users commonly install @swc/cli with @swc/core and run swc over source files, while project-level behavior is configured with .swcrc. The Homebrew package gives non-npm users a direct swc executable, but most web projects still consume SWC through their JavaScript package manager or through higher-level tools that embed it.

为什么软件包爱好者会关心

SWC is interesting to package maintainers because it combines native-code speed with the packaging complexity of multi-platform binary distribution. It also turns compiler versioning into dependency graph plumbing: JavaScript packages, Rust crates, WebAssembly plugins, and framework integrations all need to line up well enough that a build tool can be upgraded without surprising users.

时间线

  • 2019: SWC 1.0 announced as a fast JavaScript compiler.
  • 2020: Official SWC/Babel performance comparison published.
  • 2025: Official documentation describes SWC as a Rust-based platform used by major tools and companies.

Related projects

  • Babel is the main historical comparison point in SWC's own documentation.
  • Next.js, Parcel, and Deno are named by the SWC website as tools that use SWC.
  • Rspack, swc-loader, @swc/jest, and SWC WebAssembly plugins are documented as adjacent integrations.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • 未记录 Homebrew bottle 元数据。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
.swcrc

可执行文件

已安装的可执行文件

命令类型暴露范围备注
swc可执行文件已索引可执行文件从本地可执行文件索引发现。

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-08-03
管理器版本1.15.47
管理器更新时间2026-07-29
本地数据未知
上游不可用
检测到的最新版本未检测到
  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:swc
版本1.15.47
软件包管理器Homebrew
主页https://swc.rs
仓库https://github.com/swc-project/swc
最后更新2026-07-29T16:58:27Z
Pulseupdated
Bottle未记录
服务未声明

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

swc

nix profile install nixpkgs#swc
  • normalized package name match
  • 匹配方式:Swc
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/sw/swc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

swc 1.15.7-r0

A super-fast TypeScript / JavaScript compiler written in Rust

https://swc.rs

sudo apk add swc
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: swc
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Swc
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: swc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
Scoop95%

main/swc

scoop install main/swc
  • normalized package name match
  • 匹配方式:Swc
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/swc.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • pkg.so package database
  • pkgdb category and tag curation