# twostraws/Sitrep

A source code analyzer for Swift projects.

Repository: https://github.com/twostraws/Sitrep
Canonical: https://ross.abutalabs.com/products/sitrep
Homepage: https://www.hackingwithswift.com/
Language: Swift
License: Apache-2.0
License Family: permissive
Topics: swift, xcode, analyzer
Last push: 2026-04-17T08:17:35+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 77, release rhythm 35, longevity 100
- inputs: {"age_days": 2400, "days_push": 138, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1349, forks 65 (observed 2026-08-28T04:04:27.876508+00:00)

## What it is
Sitrep is a source code analyzer for Swift projects that reports high-level code statistics such as type counts, lines of code, longest files, imports, and UI view counts. It is built on SwiftSyntax and ships as both a command line tool and a Swift library (SitrepCore).

## Use cases
- get an overview of how large my Swift project is
- count classes structs enums and protocols in a Swift codebase
- find the longest files and types in my Swift project
- measure source lines of code excluding comments and whitespace
- see which imports my Swift project uses most
- count UIViews and SwiftUI views in an iOS project

## When to choose
- you want quick high-level metrics for a Swift or Xcode project
- you need a simple CLI code statistics tool installable via Homebrew or Mint
- you want to embed Swift code analysis in your own Swift code as a library

## When to avoid
- you need deep static analysis, linting, or bug detection rather than summary statistics
- you work in languages other than Swift
- you need CI quality gates or complexity scoring, which Sitrep does not provide

## Facets
- artifact type: cli-tool
- maturity: active
- function: parser, developer-tools, cli
- domain: developer-tools, programming-languages
- platform: cli
- tags: swift, swift-syntax, code-analysis, static-analysis, code-metrics, command-line, macos, linux

## Member repositories
- twostraws/Sitrep (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:27.876508+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:42:23.483095+00:00, confidence not recorded.
  - readme: https://github.com/twostraws/Sitrep (fetched 2026-08-28T04:04:27.876508+00:00, sha f2980121ef29)
  - homepage: https://www.hackingwithswift.com/ (fetched 2026-08-29T12:01:23.349086+00:00, sha 2d9e02e583e0)
  - site_page: https://www.hackingwithswift.com/about (fetched 2026-08-29T12:01:23.360530+00:00, sha 06265cc51cf9)
  - site_page: https://www.hackingwithswift.com/articles/283/how-to-install-and-use-ai-agent-skills-in-xcode (fetched 2026-08-29T12:01:23.362362+00:00, sha 42e8003985d2)
  - site_page: https://www.hackingwithswift.com/faq (fetched 2026-08-29T12:01:23.358373+00:00, sha 6bf188bbb1af)
- Data as of 2026-08-30T08:39:29.467469+00:00.
