Hey HN!<p>If you're a fan of Swift you may have noticed that with WWDC 2023 came the (beta) release of macros. They're super powerful and expressive!<p>I've been wishing Swift had a [Retrofit](<a href="https://square.github.io/retrofit/" rel="nofollow noreferrer">https://square.github.io/retrofit/</a>) style API definition library for years, and with macros it seemed like this was now possible.<p>I'd like to show you all Papyrus, a library that turns your APIs into type-safe Swift protocols.<p>Would love to get your feedback.<p><a href="https://github.com/joshuawright11/papyrus">https://github.com/joshuawright11/papyrus</a>