{"id":30719872,"url":"https://github.com/dankinsoid/swift-api-client-addons","last_synced_at":"2025-09-03T10:42:35.408Z","repository":{"id":214164398,"uuid":"735855903","full_name":"dankinsoid/swift-api-client-addons","owner":"dankinsoid","description":"Flexible swift networking client library","archived":false,"fork":false,"pushed_at":"2024-04-07T19:23:17.000Z","size":163,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-07T20:28:14.070Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dankinsoid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-12-26T09:17:45.000Z","updated_at":"2024-03-10T22:02:54.000Z","dependencies_parsed_at":"2024-04-07T20:27:54.523Z","dependency_job_id":"994f1016-f961-4a49-9ad7-dae861449194","html_url":"https://github.com/dankinsoid/swift-api-client-addons","commit_stats":null,"previous_names":["dankinsoid/swift-networking"],"tags_count":16,"template":false,"template_full_name":"dankinsoid/iOSLibraryTemplate","purl":"pkg:github/dankinsoid/swift-api-client-addons","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dankinsoid%2Fswift-api-client-addons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dankinsoid%2Fswift-api-client-addons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dankinsoid%2Fswift-api-client-addons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dankinsoid%2Fswift-api-client-addons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dankinsoid","download_url":"https://codeload.github.com/dankinsoid/swift-api-client-addons/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dankinsoid%2Fswift-api-client-addons/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273431360,"owners_count":25104491,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-03T10:42:34.517Z","updated_at":"2025-09-03T10:42:35.399Z","avatar_url":"https://github.com/dankinsoid.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# swift-api-client-addons\nThis library extends [swift-api-client](https://github.com/dankinsoid/swift-api-client) to make it a more universal tool.\n\n## WebSocket\nThe library offers a straightforward approach to handling WebSockets, utilizing the [Starscream](https://github.com/daltoniam/Starscream.git) library.\n```swift\nlet channel: WebSocketChannel\u003cItem\u003e = try client.call(.webSocket, as: .decodable)\nfor try await item in channel {\n    ...\n}\n```\n## JSON API\nIntegrates the [swift-json](https://github.com/dankinsoid/swift-json) library for easy JSON API interactions.\n```swift\nlet json = try client.body(bodyJSON).call(.http, as: .json)\n```\n\n## Installation\n\n1. [Swift Package Manager](https://github.com/apple/swift-package-manager)\n\nCreate a `Package.swift` file.\n```swift\n// swift-tools-version:5.7\nimport PackageDescription\n\nlet package = Package(\n  name: \"SomeProject\",\n  dependencies: [\n    .package(url: \"https://github.com/dankinsoid/swift-api-client-addons.git\", from: \"0.15.0\")\n  ],\n  targets: [\n    .target(\n      name: \"SomeProject\",\n      dependencies: [\n        .product(name:  \"SwiftAPIClientAddons\", package: \"swift-api-client-addons\"),\n      ]\n    )\n  ]\n)\n```\n```ruby\n$ swift build\n```\n\n## Author\n\ndankinsoid, voidilov@gmail.com\n\n## License\n\nswift-api-client-addons is available under the MIT license. See the LICENSE file for more info.\n\n## Contributing\nWe welcome contributions to swift-api-client-addons! Please read our contributing guidelines to get started.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdankinsoid%2Fswift-api-client-addons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdankinsoid%2Fswift-api-client-addons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdankinsoid%2Fswift-api-client-addons/lists"}