Periphery, the unused-code detector for Swift projects, was archived in August 2026 when its author moved on to a commercial, closed-source successor (Periphery Pro, https://periphery.pro, distributed as a prebuilt `periphery-cli` binary via `periphery-pro/tap`).
The MIT-licensed code is still as useful as ever, so we are maintaining a fork:
What the fork is:
- the last open-source release (3.8.0) rebuilt and kept working with current toolchains: 3.8.1 builds unchanged with Xcode 27.1 / Swift 6.4;
- 3.8.2 fixes the non-deterministic DerivedData cache path (schemes were hashed from an unordered Set, so the cache was never reused and grew without bound);
- 3.8.3 fixes three false-positive classes: declarations referenced only inside `if os(...)`/`@available` platform-conditional blocks, the SwiftPM index store location with the Swift 6.4 `swiftbuild` backend, and Xcode 16 file system synchronized groups (target membership and exceptions);
- the 14 unresolved upstream bug reports (toolchain issues and false positives) re-opened as issues, with their origin credited;
- install: `brew install tiny-earth-moon/tap/periphery` (builds from source), or `swift build -c release --product periphery`.
- the fork is unrelated to Periphery Pro: nothing is taken from it, and both install a `periphery` executable, so install one or the other (the formulae conflict on purpose).
What it is not: there is no feature roadmap. The scope is to keep Periphery building and correct on current Xcode/Swift, fix regressions and review pull requests. Bug reports with a minimal project and PRs are welcome. Many thanks to Ian Leitch for years of work on the original.
To make it clear that this project is not affiliated with Periphery or Periphery Pro, the fork has a name of its own:
outskirts. It finds what lies at the outskirts of your Swift code: the declarations nothing reaches.
Install: brew install tiny-earth-moon/tap/outskirts (prebuilt bottle on Apple silicon), or swift build -c release --product outskirts
Coming from Periphery, nothing breaks:
periphery keeps working as an alias of outskirts
.periphery.yml is still read (.outskirts.yml takes over when you rename it)
// periphery:ignore comments and baseline files keep working
installed from the former tiny-earth-moon/tap/periphery formula? brew upgrade moves you to outskirts
What changed since 3.8.3
Linux: built and tested in CI (Swift 6.1 and 6.4), sarif available there too
Unused String Catalog (.xcstrings) keys, including SwiftUI, AppIntents and interpolated keys
Opt-in analyses: unused Metal shader functions and Swift references to missing ones (an idea from Periphery discussion #1119), unused asset catalog colors and images, unused system imports, redundant access levels, open/final, empty extensions, optionals never assigned
CI: --changed-since reports only results in files changed since a branch or commit, --quiet prints nothing when there is no result, SARIF 2.1.0 for GitHub code scanning, baselines that can only shrink (--prune-baseline, --strict-baseline)
Configuration: a JSON schema for editor completion and outskirts config check to validate the file
Fewer false positives: phantom type parameters, file system synchronized groups, if os(...) / @available, preview
Documentation: a full options reference, CI recipes for GitHub Actions and GitLab, framework conventions, and a ready-to-paste Xcode Run Script build phase
Bazel support was removed in 3.13 to focus on Xcode projects and SwiftPM
The first post said there was no feature roadmap; there is one now, driven by what users asked for upstream and in the issues. Next, from the open issues: narrower if retention, an --explain option that says why a declaration is reported, and prebuilt binaries outside Homebrew. The open issues are the backlog:
Bug reports with a minimal project and pull requests are welcome.