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
@finnvoorhees defining structs in functions will always be my “neat little thing” in swift