pkg.soopen package index

brew / rank 8747

Install srgn with Homebrew, MacPorts, Nix, pacman

Code surgeon for precise text and code transplantation. Version 0.14.2 via Homebrew; verified from local package data. Also installable with nix: nix profile install nixpkgs#srgn.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install srgn

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install srgn

MacPorts ports tree · devel/srgn/Portfile · source: api.github.com

Linux

Nixverified · 92%
nix profile install nixpkgs#srgn

nixpkgs package indexes · pkgs/by-name/sr/srgn/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S srgn

Arch Linux sync databases · srgn · source: geo.mirror.pkgbuild.com

overview

Package summary

Code surgeon for precise text and code transplantation

Commands and aliases

  • srgn

history

Project history and usage

srgn is a Rust command-line search and transformation tool that combines regular-expression scopes with optional syntax-aware scopes based on programming-language grammars. Its author characterizes it as a mix of `tr`, `sed`, `ripgrep`, and tree-sitter.

Project history

The public repository was created in 2023 and released v0.1.0 that October. The README records that its earliest core was a Rust rewrite of a tool devoted to German character substitutions; it then expanded into a general code-aware search and transformation utility.

Adoption history

The official installation guide documents release binaries, cargo-binstall, Homebrew, Nix and a repository flake, MacPorts, and compilation through Cargo. The package metadata additionally records a Pacman package, giving srgn unusually broad distribution for a focused refactoring CLI.

How it is used

srgn can search or transform stdin and files with regular expressions, then narrow operations to syntax-aware language scopes. Actions include replacement, case conversion, deletion, squeezing, and language-specific transformations, and shell completions are built into the CLI.

Why package nerds care

srgn sits between traditional Unix text filters and IDE refactoring: it preserves a composable command-line interface while using parsers to select structural code regions. Its prebuilt binaries and presence across Cargo, Homebrew, Nix, MacPorts, and Pacman make it especially accessible to polyglot CLI users.

Timeline

  • 2023: Official repository created.
  • 2023: v0.1.0 published.
  • 2025: v0.14.0 changed replacement syntax to reduce accidental destructive use.
  • 2026: v0.14.2 published.

Related projects

  • The README positions srgn alongside tr, sed, ripgrep, and tree-sitter while distinguishing its combination of regex actions and grammar-aware scopes.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew bottle metadata was recorded.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
srgnexecutableindexed executableDiscovered from the local executable index.

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-08-03
manager version0.14.2
manager updated
local dataunknown
upstreamnot available
latest detectednot detected
  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:srgn
Version0.14.2
Package managerHomebrew
Homepagehttps://github.com/alexpovel/srgn
Repositoryhttps://github.com/alexpovel/srgn
Bottlenot recorded
Servicenone declared

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

srgn

nix profile install nixpkgs#srgn
  • normalized package name match
  • Matched by: Srgn
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/sr/srgn/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
pacman95%

srgn 0.14.2-1

A code surgeon for precise text and code transplantation

https://github.com/alexpovel/srgn

sudo pacman -S srgn
  • License: MIT
  • Architecture: x86_64
  • 2 dependencies
  • normalized package name match
  • Matched by: Srgn
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: srgn from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
MacPorts95%

srgn

sudo port install srgn
  • normalized package name match
  • Matched by: Srgn
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/srgn/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

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