🍺 BREW Explorer

← all formulae

sourcekitten

brew install sourcekitten v0.37.3 MIT

Swift framework and command-line tool for parsing Swift AST, extracting docs, and querying SourceKit metadata.

Why you might care

SourceKitten bridges Swift code analysis by interfacing with Apple's SourceKit daemon to extract syntax information, documentation, and AST data from Swift and Objective-C projects. It's essential infrastructure for linters, code generators, and documentation tools built on Swift—particularly SwiftLint and Jazzy, which depend on it for accurate language-aware analysis.

Categories

Alternatives

SwiftLint Jazzy tree-sitter
7.8k
30-day installs · #425
20.3k
90-day · #515
98.1k
365-day · #426
2.4k
★ GitHub stars · updated 2mo ago

Links

Blurb generated by claude-haiku-4-5 on today.

Raw metadata
{
  "aliases": [],
  "alternatives": [
    "SwiftLint",
    "Jazzy",
    "tree-sitter"
  ],
  "build_dependencies": [],
  "categories": [
    "parser",
    "framework",
    "library",
    "sysadmin"
  ],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Framework and command-line tool for interacting with SourceKit",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:40:51+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "sourcekitten",
  "github_default_branch": "main",
  "github_last_commit_at": "2026-04-08T09:21:29Z",
  "github_readme_excerpt": "# SourceKitten\n\nAn adorable little framework and command line tool for interacting with [SourceKit][uncovering-sourcekit].\n\nSourceKitten links and communicates with `sourcekitd.framework` to parse the Swift AST, extract comment docs for Swift or Objective-C projects, get syntax data for a Swift file and lots more!\n\n![SwiftPM](https://github.com/jpsim/SourceKitten/workflows/SwiftPM/badge.svg)\n\n## Installation\n\nBuilding SourceKitten requires Xcode 13.3 or later or a Swift 5.6\ntoolchain or later with the Swift Package Manager.\n\nSourceKitten typically supports previous versions of SourceKit.\n\n### Homebrew\n\nRun `brew install sourcekitten`.\n\n### Swift Package Manager\n\nRun `swift build` in the root directory of this project.\n\n### Bazel\n\nAdd the following to your `WORKSPACE` file:\n\n```python\nSOURCEKITTEN_VERSION = \"SOME_VERSION\"\nSOURCEKITTEN_SHA = \"SOME_SHA\"\nhttp_archive(\n    name = \"com_github_jpsim_sourcekitten\",\n    url = \"https://github.com/jpsim/SourceKitten/archive/refs/tags/%s.tar.gz\" % (SOURCEKITTEN_VERSION),\n    sha256 = SOURCEKITTEN_SHA,\n    strip_prefix = \"SourceKitten-%s\" % SOURCEKITTEN_VERSION\n)\n```\n\nThen run: `bazel run @com_github_jpsim_sourcekitten//:sourcekitten -- -h`\n\n### Xcode (via Make)\n\nRun `make install` in the root directory of this project.\n\n### Package\n\nDownload and open SourceKitten.pkg from the [releases tab](https://github.com/jpsim/SourceKitten/releases).\n\n## Command Line Usage\n\nOnce SourceKitten is installed, you may use it from the command line.\n\n```\n$ sourcekitten help\nOVERVIEW: An adorable little command line tool for interacting with SourceKit\n\nUSAGE: sourcekitten \u003csubcommand\u003e\n\nOPTIONS:\n  --version               Show the version.\n  -h, --help              Show help information.\n\nSUBCOMMANDS:\n  complete                Generate code completion options\n  doc                     Print Swift or Objective-C docs as JSON\n  format                  Format Swift file\n  index                   Index Swift file and print as JSON\n  module-info         ",
  "github_repo": "jpsim/SourceKitten",
  "github_stars": 2419,
  "github_topics": [],
  "homepage": "https://github.com/jpsim/SourceKitten",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 7800,
  "installs_365d": 98114,
  "installs_90d": 20334,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "MIT",
  "llm_generated_at": "2026-06-20T23:44:47+00:00",
  "llm_model": "claude-haiku-4-5",
  "name": "sourcekitten",
  "oldnames": [],
  "one_liner": "Swift framework and command-line tool for parsing Swift AST, extracting docs, and querying SourceKit metadata.",
  "optional_dependencies": [],
  "rank_30d": 425,
  "rank_365d": 426,
  "rank_90d": 515,
  "raw_hash": "7027d8496cc32d8b",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/s/sourcekitten.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [
    "swift"
  ],
  "version_head": "HEAD",
  "version_stable": "0.37.3",
  "versioned_formulae": [],
  "why_use_this": "SourceKitten bridges Swift code analysis by interfacing with Apple\u0027s SourceKit daemon to extract syntax information, documentation, and AST data from Swift and Objective-C projects. It\u0027s essential infrastructure for linters, code generators, and documentation tools built on Swift\u2014particularly SwiftLint and Jazzy, which depend on it for accurate language-aware analysis."
}