The Swift Package Index Blog

Package Dependencies - Step One

Posted Monday, October 18, 2021.

We’ve said several times on this blog that one of the primary goals of the Swift Package Index is to help you make better decisions about the dependencies you include in your Swift projects.

In pursuit of that goal, we just launched a new feature that shows you how many dependencies each of the packages in our index has. 🚀

Even better, it doesn’t just give you the number of top-level dependencies that a package declares in its Package.swift file. Instead, we inspect the Package.resolved file after the build system has done the hard work of dependency resolution.

Package metadata showing that the package being inspected depends on nine other packages.

That said, while this feature adds value and we’re happy to get it launched, this is step one towards where we’d like to be with dependency metadata. Some things to note:

However, what we have for now is still a step in the right direction!


The Swift Package Index is a search engine for Swift packages with one goal. To help you make better decisions about dependencies. For more information, the best place to start is with the Frequently Asked Questions.