# Install swc with Homebrew, apk, Nix, scoop

Super-fast Rust-based JavaScript/TypeScript compiler. Version 1.15.43 via Homebrew; verified 2026-06-22.

## Install

```sh
sudo av install brew:swc
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install swc
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add swc
```

  Evidence: Alpine Linux edge package indexes: swc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#swc
```

  Evidence: nixpkgs package indexes: pkgs/by-name/sw/swc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- Scoop (92%):

```sh
scoop install main/swc
```

  Evidence: Scoop official bucket manifest trees: bucket/swc.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:swc
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/swc>
- **Version:** 1.15.43
- **Source summary:** Super-fast Rust-based JavaScript/TypeScript compiler
- **Homepage:** <https://swc.rs>
- **Repository:** <https://github.com/swc-project/swc>
- **Upstream docs:** <https://github.com/swc-project/swc#readme>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/swc-project/swc/archive/refs/tags/v1.15.43.tar.gz>
- **Last updated:** 2026-06-22T17:49:12Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- swc (cli)
- swc (alias)

## Build dependencies

- rust

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.15.43
- Package-manager updated: 2026-06-22
- Local data: ok
- Upstream repository: https://github.com/swc-project/swc
- Upstream latest detected: v1.15.43 (current)
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

- <https://github.com/swc-project/swc>
- <https://swc.rs/>
- <https://swc.rs/blog/perf-swc-vs-babel>
- <https://swc.rs/blog/swc-1>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals


## 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

- Unix: .swcrc
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** swc
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Nix - swc: normalized package name match | nixpkgs package indexes: pkgs/by-name/sw/swc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - swc - 1.15.7-r0: normalized package name match | Alpine Linux edge package indexes: swc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A super-fast TypeScript / JavaScript compiler written in Rust | https://swc.rs
- Scoop - main/swc: normalized package name match | Scoop official bucket manifest trees: bucket/swc.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [rust](https://www.automicvault.com/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [closure-compiler](https://www.automicvault.com/pkg/brew/closure-compiler/) - Shares av.db curated category or tags: cli, compiler, developer-tools, javascript.
- [emscripten](https://www.automicvault.com/pkg/brew/emscripten/) - Shares av.db curated category or tags: cli, compiler, developer-tools, javascript.
- [lunarml](https://www.automicvault.com/pkg/brew/lunarml/) - Shares av.db curated category or tags: cli, compiler, developer-tools, javascript.
- [roblox-ts](https://www.automicvault.com/pkg/brew/roblox-ts/) - Shares av.db curated category or tags: cli, compiler, developer-tools, typescript.
- [bsc](https://www.automicvault.com/pkg/brew/bsc/) - Shares av.db curated category or tags: cli, compiler, developer-tools.
- [cc65](https://www.automicvault.com/pkg/brew/cc65/) - Shares av.db curated category or tags: cli, compiler, developer-tools.
- [mako](https://www.automicvault.com/pkg/brew/mako/) - Shares av.db curated category or tags: cli, developer-tools, javascript, rust, typescript.
- [oxfmt](https://www.automicvault.com/pkg/brew/oxfmt/) - Shares av.db curated category or tags: cli, developer-tools, javascript, rust, typescript.

## Combined YAML source

View the package source record on GitHub. [combined/swc.yml](https://github.com/automic-vault/db/blob/main/combined/swc.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
