# Install weaver with Homebrew, Nix, winget

Command-line tool for Weaver. Version 1.1.7 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:weaver
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install weaver
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#weaver
```

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

### Windows

- winget (92%):

```sh
winget install --id OpenTelemetry.Weaver -e
```

  Evidence: Windows Package Manager source index: OpenTelemetry.Weaver from https://cdn.winget.microsoft.com/cache/source.msix

## Package facts

- **Package key:** brew:weaver
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/weaver>
- **Version:** 1.1.7
- **Source summary:** Command-line tool for Weaver
- **Homepage:** <https://github.com/scribd/Weaver>
- **Repository:** <https://github.com/scribd/Weaver>
- **Upstream docs:** <https://github.com/scribd/Weaver#readme>
- **License:** MIT
- **Source archive:** <https://github.com/scribd/Weaver/archive/refs/tags/1.1.7.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- weaver (cli)
- weaver (alias)

## Uses from macOS

- swift

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.1.7
- Local data: ok
- Upstream repository: https://github.com/scribd/Weaver
- Upstream latest detected: 1.1.7 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

Weaver is Scribd's declarative dependency-injection framework and command-line code generator for Swift projects. It scans Swift sources for dependency annotations, builds a dependency graph, validates it at compile time, and generates the boilerplate needed to wire dependencies into iOS, macOS, and Linux Swift code.

The package's command-line identity matters: the brew formula installs the weaver executable that runs in an Xcode build phase or from developer tooling to generate Swift source before compilation.

### Project history

Scribd introduced Weaver publicly in 2018 in a technology blog post titled 'A Painless Dependency Injection Framework for Swift.' The post framed Weaver as a response to growing Swift applications where manual dependency passing and singleton fallback patterns become hard to maintain.

The original design used comment annotations such as weaver: movieManager <- MovieManaging to declare dependencies in source code. The README later describes both property-wrapper and comment-based declarations, SourceKitten-backed scanning via Apple's SourceKit, dependency-graph linking, validation, and generated source output.

The project was eventually deprecated by Scribd. The current README begins with a deprecation notice saying Scribd no longer uses the technology internally, has decided to archive the repository, and will leave the code and resources available for reference or independent forks.

### Adoption history

Weaver's adoption was strongest in the Swift/iOS architecture community rather than across general-purpose backend development. Its README links tutorials, a demo video, and an SF SLUG talk about maintaining a dependency graph with Weaver.

Its value proposition was compile-time safety. The Scribd blog contrasts Weaver with dependency-injection containers that can crash at runtime, arguing that Weaver validates the graph before the app runs and lets dependencies remain non-optional.

### How it is used

A typical project adds Weaver to an Xcode build phase before Compile Sources, then invokes weaver swift with project and output paths. The generated dependency container code is compiled with the application, giving app code typed access to registered dependencies.

Weaver can be installed through Homebrew, CocoaPods, Mint, prebuilt release binaries, or from source. The README notes that CocoaPods was useful when a project needed a specific Weaver version because Homebrew did not automatically install specific historical versions.

### Why package nerds care

Weaver is notable as an iOS-era code-generation answer to dependency injection: instead of relying on reflection-heavy runtime containers, it uses Swift source scanning and compile-time generated containers to keep app wiring explicit and type checked.

Its deprecation also makes it useful history. It captures a period before Swift macros and newer DI patterns, when SourceKit-based tooling and build-phase generators were a common way to add static analysis and boilerplate generation to Swift projects.

### Timeline

- 2018: Scribd introduces Weaver as a lightweight dependency-injection framework for Swift.
- 2018-2019: Scribd publishes tutorial material showing Weaver in iOS dependency-injection and unit-testing workflows.
- Later project history: the README gains a deprecation notice stating that Scribd no longer uses Weaver internally and has archived the project for reference.

### Related projects

- Weaver is related to Swift, SourceKit, SourceKitten, Xcode build phases, CocoaPods, Mint, Swinject, and other dependency-injection approaches for iOS and macOS applications.

### Sources

- <https://github.com/scribd/Weaver>
- <https://raw.githubusercontent.com/scribd/Weaver/master/README.md>
- <https://tech.scribd.com/blog/2018/introducting-weaver.html>
- <https://tech.scribd.com/blog/2019/dependency-injection-with-weaver-part-2.html>


## Security Notes

narrow executable package without higher-risk signals.

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

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** weaver
- **Version Scheme:** 0
- **Revision:** 0
- **Conflicts With:** service-weaver
- **Requirements:** macos, xcode
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Nix - weaver: normalized package name match | nixpkgs package indexes: pkgs/by-name/we/weaver/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- winget - OpenTelemetry.Weaver: normalized package name match | Windows Package Manager source index: OpenTelemetry.Weaver from https://cdn.winget.microsoft.com/cache/source.msix


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [needle](https://www.automicvault.com/pkg/brew/needle/) - Shares av.db curated category or tags: cli, dependency-injection, developer-tools, ios, swift.
- [carthage](https://www.automicvault.com/pkg/brew/carthage/) - Shares av.db curated category or tags: cli, developer-tools, ios, macos, swift.
- [mint](https://www.automicvault.com/pkg/brew/mint/) - Shares av.db curated category or tags: cli, developer-tools, swift.
- [sourcedocs](https://www.automicvault.com/pkg/brew/sourcedocs/) - Shares av.db curated category or tags: cli, developer-tools, swift.
- [sourcery](https://www.automicvault.com/pkg/brew/sourcery/) - Shares av.db curated category or tags: cli, developer-tools, swift.
- [cocoapods](https://www.automicvault.com/pkg/brew/cocoapods/) - Shares av.db curated category or tags: cli, developer-tools, ios, macos.
- [mogenerator](https://www.automicvault.com/pkg/brew/mogenerator/) - Shares av.db curated category or tags: cli, developer-tools, macos, swift.
- [molten-vk](https://www.automicvault.com/pkg/brew/molten-vk/) - Shares av.db curated category or tags: cli, developer-tools, ios, macos.

## Combined YAML source

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


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- 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
