How to Add Your Package to the Swift Package Index

A tutorial on how to make your package discoverable by adding it to the unofficial Swift Package Index search engine.

Paul Pela
The Startup

--

Until recently, it was a matter of searching on GitHub for interesting packages you could use in your Swift project. You can do a few Google searches and it’s possible you will find what you were looking for. But now, it’s become even easier as we have the Swift Package Index available.

As Apple didn’t take care of creating a central repository or a search engine for discovering Swift packages, two developers (Dave Verwer and Sven A. Schmidt) — and a number of contributors — helped to make the process much simpler.

Check it out for yourself at https://swiftpackageindex.com!

Apple is planning to create a package registry, but the Swift Package Index is much more than a list of available packages — it’s a search engine.

It will not only help you to find the packages you could use, but it will also give you some useful stats, especially about the activity on the project — if it’s being actively developed and maintained.

If you’ve created your own Swift package and you’d like to add it to the index, you…

--

--

Paul Pela
The Startup

Future dad, 9to5: tech support agent. I write about the User Experience of learning programming.