Automic VaultAutomic Vault

brew

Installer sourcery avec Homebrew, Nix

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de sourcery pour les workflows d'agents IA.

installation

Commandes d'installation supplémentaires

macOS

Homebrewvérifié · 100%
brew install sourcery

local Homebrew formula metadata

Linux

Nixvérifié · 92%
nix profile install nixpkgs#sourcery

nixpkgs package indexes · pkgs/by-name/so/sourcery/package.nix · Source: api.github.com

aperçu

Résumé du paquet

Meta-programming for Swift, stop writing boilerplate code

Commandes et alias

  • sourcery

historique

Historique du projet et usages

Sourcery is a Swift command-line code generator for reducing repetitive source code through templates and annotations. In package-manager culture it is most visible as a developer automation tool installed by Homebrew, CocoaPods, Mint, Swift Package Manager plugins, and pre-commit.

Historique du projet

The GitHub repository was created in December 2016 and describes Sourcery as a Swift code generator built on Apple's SwiftSyntax. The project presents its core purpose as extending Swift's language abstractions so teams can generate boilerplate automatically.

The README documents Sourcery as both a standalone command-line executable and an integrated build-tool option. It supports direct binary downloads, Homebrew, CocoaPods, Mint, Swift Package Manager plugin use, and source builds.

Historique d'adoption

The official README states that Sourcery is used in more than 40,000 iOS and macOS projects and names Airbnb, Bumble, and The New York Times as example users. The project also claims that broad community adoption helped influence Apple's later derived Equality and automatic Codable conformance work.

For package users, Sourcery became a familiar Swift ecosystem utility because it can be installed through several package channels while still producing ordinary generated Swift files that fit into Xcode and CI workflows.

Modes d'utilisation

Typical CLI usage runs `sourcery --sources <path> --templates <path> --output <path>`, or places options in a `.sourcery.yml` file. The README highlights common templates for equality, hashing, enum cases, mocks and stubs, LinuxMain, decorators, Codable support, and property diffing.

SwiftPM plugin usage is documented separately from the standalone executable: users add Sourcery as a package dependency, place `.sourcery.yml` near the target sources, and run the package plugin with write access enabled.

Pourquoi les passionnés de paquets s'y intéressent

Sourcery matters to package nerds because it sits at the intersection of source generation, build reproducibility, and Swift package distribution. A formula or package gives teams the same generator binary locally and in CI, making generated-code diffs predictable.

Its presence across Homebrew, CocoaPods, Mint, SwiftPM, and pre-commit also makes it a useful example of a CLI that escaped a single package ecosystem and became part of routine iOS and macOS project automation.

Chronologie

  • 2016: GitHub repository created.
  • 2017: Early public discussion and tutorials helped popularize Sourcery in Swift projects.
  • 2022: README documents Swift Package command plugin support from package version 1.8.3.
  • 2026: Official README still describes active community maintenance and broad project usage.

Related projects

  • SwiftSyntax provides the parsing foundation named by the README.
  • Stencil templates are part of Sourcery's template workflow.
  • CocoaPods, Mint, Homebrew, Swift Package Manager, and pre-commit are documented installation or integration surfaces.

posture de sécurité

Niveau de risque : vert

narrow executable package without higher-risk signals.

Classificateur de risque

risque vert · confiance faible · appliance

Pourquoi

  • narrow executable package without higher-risk signals

Signaux

  • metadata:no-higher-risk-signals

Comportement d'installation

  • Aucun hook post-install Homebrew n’est enregistré dans les métadonnées de formule.
  • Les métadonnées de bottle Homebrew sont disponibles pour 6 plateformes.

Revue recommandée

Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.

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

exécutables

Exécutables installés

CommandeTypeExpositionNote
sourcerycliexécutable global

fraîcheur

Version et fraîcheur

Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.

page générée2026-07-25
version du gestionnaire2.3.0
gestionnaire mis à jour
données localesOK
amontà jour
dernière version détectée2.3.0

https://github.com/krzysztofzablocki/Sourcery

  • infoNo package-manager update timestamp was available.confiance faible

métadonnées d'installation

Métadonnées du paquet

Clé du paquetbrew:sourcery
Version2.3.0
Gestionnaire de paquetsHomebrew
Page du gestionnaire de paquetshttps://formulae.brew.sh/formula/sourcery
Page d'accueilhttps://github.com/krzysztofzablocki/Sourcery
Dépôthttps://github.com/krzysztofzablocki/Sourcery
Docs amonthttps://github.com/krzysztofzablocki/Sourcery#readme
LicenceMIT
Archive sourcehttps://github.com/krzysztofzablocki/Sourcery/archive/refs/tags/2.3.0.tar.gz
Bibliothèques fournies par macOScurl, libxml2, ncurses, sqlite, swift
Bouteilledisponible (sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
post-install Homebrewnon défini
Serviceaucun déclaré

faits du registre

Détails de la base source

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namesourcery
Version Scheme1
Revision1
Head VersionHEAD
Requirements
  • xcode
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

correspondances dans les bases sources

Autres enregistrements de gestionnaires de paquets

Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.

Nix95%

sourcery

nix profile install nixpkgs#sourcery
  • normalized package name match
  • Correspondance par : Sourcery
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/so/sourcery/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

piste source

Généré depuis les données du dépôt

Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.

Sources utilisées

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