{"id":13572961,"url":"https://github.com/polywrap/swift-client","last_synced_at":"2026-04-15T04:30:17.584Z","repository":{"id":159825226,"uuid":"613612679","full_name":"polywrap/swift-client","owner":"polywrap","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-20T15:05:04.000Z","size":11464,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-18T19:28:58.231Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/polywrap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"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-03-13T23:14:35.000Z","updated_at":"2023-03-17T23:04:38.000Z","dependencies_parsed_at":"2024-03-17T04:38:37.137Z","dependency_job_id":"f8ca0269-be60-4b1a-91f5-1c027b040ee9","html_url":"https://github.com/polywrap/swift-client","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polywrap%2Fswift-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polywrap%2Fswift-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polywrap%2Fswift-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polywrap%2Fswift-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/polywrap","download_url":"https://codeload.github.com/polywrap/swift-client/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240005442,"owners_count":19732756,"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","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":"2024-08-01T15:00:25.353Z","updated_at":"2026-04-15T04:30:17.523Z","avatar_url":"https://github.com/polywrap.png","language":"Swift","readme":"![polywrap-banner](https://raw.githubusercontent.com/polywrap/branding/master/assets/banner.png)\n\n# Swift Client  [![codecov](https://codecov.io/gh/polywrap/swift-client/branch/main/graph/badge.svg?token=JvNaa0OHjc)](https://codecov.io/gh/polywrap/swift-client)\n\n\nImplementation of the Polywrap client in Swift.\n\n## Installation\n\nPolywrapClient is available through Swift Package Manager and Cocoapods.\n\n#### Via Cocoapods\n\nAdd pod to your Podfile:\n\n```Ruby\npod 'PolywrapClient'\n```\n\n#### Via Xcode Menu\n\nTo add Polywrap Client as an SPM package to your project in Xcode you must do: File -\u003e Swift Packages -\u003e Add Package Dependency. And then enter https://github.com/polywrap/swift-client\n\n#### Via Package file\n\nAdd it as a dependency within your Package.swift manifest:\n\n```swift\nlet package = Package(\n    ...\n    dependencies: [\n        .package(url: \"https://github.com/polywrap/swift-client.git\", from: \"0.0.3\")\n    ],\n    ...\n)\n```\n\n## Getting started\n\nCreate a new Polywrap Client Config Builder instance, add the bundles you want to use, and then create a new Polywrap Client instance from the builder.\n\n```swift\nimport PolywrapClient\n\nstruct CatArgs: Codable {\n    var cid: String\n    var ipfsProvider: String\n}\n\nfunc main() throws {\n    let client = BuilderConfig()\n        .addSystemDefault()\n        .build()\n\n    let catResult: Data = try client.invoke(\n        uri: try Uri(\"wrapscan.io/polywrap/ipfs-http-client@1.0\"),\n        method: \"cat\",\n        args: CatArgs(\n            cid: resolveResult.cid,\n            ipfsProvider: resolveResult.provider\n        )\n    )\n\n    print(catResult)\n}\n```\n\n## Resources\n\n- [Documentation](https://docs.polywrap.io/)\n- [Examples](./Example)\n- [Features supported](https://github.com/polywrap/client-readiness/tree/main/clients/swift/Sources/Readiness/Features)\n- [Support](https://discord.polywrap.io)\n\n## Contributions\n\nPlease check out our [contributing guide](./CONTRIBUTING.md) for guidelines about how to proceed.","funding_links":[],"categories":["Clients"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolywrap%2Fswift-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpolywrap%2Fswift-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolywrap%2Fswift-client/lists"}