About this project
Swinub is a simple Mastodon API library written in Swift. It is distributed through the Swift Package Manager, so projects can add it as a package dependency and pull a version from the 0.0.x range.
The library models API calls as request objects. The README example constructs an authorization value, creates a `GetV1TimelinesHome` request with that authorization, and performs it through `URLSession.shared.response(request)`, which returns a tuple of decoded statuses and the `HTTPResponse`. This shows the intended usage pattern: build a typed request, hand it to an async URLSession extension, and receive decoded model objects plus the raw HTTP response.
The repository includes a GitHub Actions workflow that runs Swift Package Manager tests, indicated by the test badge at the top of the README. The README also lists an app using the library, linking to an App Store listing, which suggests it is used in production iOS software.
Swinub is released under the MIT license. The README is short and focused on installation and a single usage example; it does not document the full set of supported endpoints, authentication flows, or model types beyond the home timeline example. Developers evaluating it should check the source for the complete API surface.
Comments
0 people shared their preference · Deer Point appears after 10 participants
Sign in to join the discussion.