# SourceKitten

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

Source: https://talira.ai/catalog/sourcekitten-q4tbkgaf
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [developer tools / parsing / source code](https://talira.ai/categories/developer-tools/parsing/source-code), [languages / swift](https://talira.ai/categories/languages/swift)
- Platforms: macos, linux[^2]
- Licence: MIT[^3]
- Pricing: Free and open source[^3]
- Pricing notes: Free and open source (MIT).
- Free tier: yes[^3]
- Backed by: [JP Simard](https://talira.ai/orgs/jp-simard.md)

SourceKitten is a Swift framework and command-line tool that talks to Apple's SourceKit to parse the Swift AST, extract documentation comments from Swift and Objective-C projects, get syntax and structure data for a Swift file, index it, format it and generate code completions, printing the results as JSON. [SwiftLint](https://talira.ai/catalog/swiftlint-9xkk742n.md), Jazzy and Sourcery are built on it. It runs on macOS with Xcode and on Linux with a Swift toolchain.

## Links

- GitHub: https://github.com/jpsim/SourceKitten

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/sourcekitten>[^1]

## Problems it solves

- extract the doc comments from my Swift code as JSON to build documentation
- get the structure of a Swift file from a script without writing a parser
- build a Swift linting or code generation tool on top of SourceKit

## Features

- Swift and Objective-C documentation as JSON
- Swift structure, syntax and index information as JSON
- code completion options
- Swift file formatting
- raw SourceKit requests
- installs with Homebrew, Swift Package Manager, Bazel or a .pkg

## Limitations

- On Linux it needs SourceKit at /usr/lib/libsourcekitdInProc.so or a path set in LINUX_SOURCEKIT_LIB_PATH[^2]

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.49 out of 1.
Signals: maintenance 0.50, adoption 0.68, momentum 0.37, community 0.76, backing 0.30, extensibility 0.20.

- last commit 2 months ago
- 8 commits in the last 90 days
- latest release 0.39.0 2 months ago
- 2.4k GitHub stars
- 78 contributors
- 4k Homebrew installs in 30 days
- backed by JP Simard

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 28 Nov 2026)
[^2]: https://github.com/jpsim/SourceKitten/blob/main/README.md (checked 28 Nov 2026)
[^3]: https://github.com/jpsim/SourceKitten/blob/main/LICENSE (checked 28 Nov 2026)
