The Swift Package Index logo.Swift Package Index

Searching for plugins?

With Swift 5.6, Xcode and the Swift Package Manager gained a new product type, plugins, allowing developers to extend their build process with new build commands or processing steps.

Here are two WWDC 2022 sessions that go into more detail on what plugins are and how you can create them:

What use are plugins? Rather than link to some examples directly, let’s use the latest feature of the Swift Package Index to find out! You can now filter search results based on whether packages include a plugin.

Search for packages containing a plugin

As you’ll notice, there are packages containing plugins to help you generate documentation (and you can find out more about that here, too), integrating SwiftLint, and a few more!

This feature has been a group effort by several contributors! Joe Heck first suggested it would be a helpful feature, and Marin Todorov took up the challenge and implemented it! We’re so happy to accept this contribution which means we have support for plugins just a few weeks after Apple officially introduced them at WWDC.

Thanks to open source contributions, our search is improving!

About this blog

The Swift Package Index is a search engine and metadata index for Swift packages. Our main goal is to help you make better decisions about the dependencies you include in your apps and projects. If you're new here, the best place to get started is by searching for packages.