Tu

Turn Your APIs into Swift Protocols

Hacker News

Turn Your APIs into Swift Protocols

Hey HN! 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! I've been wishing Swift had a [Retrofit]( https://square.github.io/retrofit/ ) style API definition library for years, and with macros it seemed like this was now possible. I'd like to show you all Papyrus, a library that turns your APIs into type-safe Swift protocols. Would love to get your feedback. https://github.com/joshuawright11/papyrus

Share card

Actual performance

2points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: mac, apis · Missing: agents, macos, agent
73%73% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
57%57% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: io · Missing: https docs, excited, just released
57%57% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRFits verified-revenue profile · Missing: mobile apps, ios, personal
51%51% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
29%29% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
16%16% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
1%1% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

Ph
PhoneNumberKit – a Swift take on libphonenumber43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

PhoneNumberKit – a Swift take on libphonenumber

Hacker News4
Au
Autocompletion for Swift on Emacs54%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Autocompletion for Swift on Emacs

Hacker News79
A
A Lisp Interpreter in Swift65%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A Lisp Interpreter in Swift

Hacker News3
At
Attributed strings in Swift 426%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Attributed strings in Swift 4

Hacker News28
Tr
Trailer Swift43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Trailer Swift

Hacker News32
Po
Populating a UITableView in Swift54%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Populating a UITableView in Swift

Hacker News1
20
2048 in Swift44%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

2048 in Swift

Hacker News92
Cl
Clojure-ish Lisp interpreter implemented in Swift72%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Clojure-ish Lisp interpreter implemented in Swift

Hacker News2
Ge
Get to grips with NSTimer in Swift43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Get to grips with NSTimer in Swift

Hacker News3
Sw
Swift Playgrounds on steroids43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Swift Playgrounds on steroids

Hacker News1