# jpsim/SourceKitten

An adorable little framework and command line tool for interacting with SourceKit.

Repository: https://github.com/jpsim/SourceKitten
Canonical: https://ross.abutalabs.com/products/sourcekitten
Language: Swift
License: MIT
License Family: permissive
Last push: 2026-08-09T11:13:15+00:00

## Health v2 (maintenance only)
Score: 88/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 71, longevity 100
- inputs: {"age_days": 4399, "days_push": 24, "days_rel": 38, "gap_med": 116.5, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2426, forks 237 (observed 2026-08-28T04:06:50.813946+00:00)

## What it is
SourceKitten is a Swift framework and command line tool that links with sourcekitd.framework to interact with SourceKit. It parses Swift ASTs, extracts comment docs for Swift or Objective-C projects, and provides syntax, structure, index, and code completion data as JSON.

## Use cases
- extract documentation comments from Swift or Objective-C code as JSON
- parse the Swift AST and get syntax structure for a file
- generate code completion options for Swift
- index a Swift file and print results as JSON
- run raw SourceKit requests programmatically
- build Swift linting or documentation tools on top of SourceKit

## When to choose
- you need programmatic access to SourceKit data for Swift or Objective-C
- you're building developer tools like linters, doc generators, or formatters for Swift
- you want a stable CLI or Swift library wrapping sourcekitd

## When to avoid
- you need to parse languages other than Swift or Objective-C
- you want a high-level code formatter rather than raw syntax data
- you're not on macOS or Linux with a Swift toolchain available

## Facets
- artifact type: cli-tool
- maturity: stable
- function: parser, developer-tools, cli, documentation, sdk
- domain: developer-tools, programming-languages, documentation, parsers
- platform: cli
- tags: sourcekit, swift-ast, code-analysis, static-analysis, xcode, objective-c, syntax-tree, command-line, macos, linux, swift

## Member repositories
- jpsim/SourceKitten (main) score 88

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:50.813946+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-30T02:31:38.454495+00:00, confidence not recorded.
  - readme: https://github.com/jpsim/SourceKitten (fetched 2026-08-28T04:06:50.813946+00:00, sha 594f329a8e43)
- Data as of 2026-08-30T08:39:29.467469+00:00.
