I was adding URL schemes to an app while also creating a REST API using Hono and decided to make a Hono/Express-like router for app URL schemes.

You can add handlers for paths and it automatically decodes a Codable from the URL query items. It also fully supports x-callback-url, automatically calling x-success or x-error if you throw an error from the handler.

Check it out here: https://github.com/finnvoor/URLSchemeRouter

GitHub - finnvoor/URLSchemeRouter: Easy URL scheme routing with codables

Easy URL scheme routing with codables. Contribute to finnvoor/URLSchemeRouter development by creating an account on GitHub.

GitHub
I was going to implement URL query item decoding myself but discovered URLQueryItemCoder from @kyle, which does exactly what I wanted: https://github.com/kylehughes/URLQueryItemCoder
GitHub - kylehughes/URLQueryItemCoder: Encoder & decoder for working with Codable types as URLQueryItems.

Encoder & decoder for working with Codable types as URLQueryItems. - kylehughes/URLQueryItemCoder

GitHub
@finnvoorhees @kyle This was a great idea! And I’m *so* happy to see some real collaboration via packages here! 💯💯💯
@finnvoorhees 🥹 brings a tear to my eye