{"id":25984881,"url":"https://github.com/pluto/pluto-swift-sdk","last_synced_at":"2026-05-07T20:32:09.950Z","repository":{"id":280684018,"uuid":"903039930","full_name":"pluto/pluto-swift-sdk","owner":"pluto","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-04T18:23:33.000Z","size":144,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T19:27:20.554Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pluto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"publiccode":null,"codemeta":null}},"created_at":"2024-12-13T19:56:02.000Z","updated_at":"2025-03-04T18:23:36.000Z","dependencies_parsed_at":"2025-03-04T19:37:39.291Z","dependency_job_id":null,"html_url":"https://github.com/pluto/pluto-swift-sdk","commit_stats":null,"previous_names":["pluto/pluto-swift-sdk"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pluto%2Fpluto-swift-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pluto%2Fpluto-swift-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pluto%2Fpluto-swift-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pluto%2Fpluto-swift-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pluto","download_url":"https://codeload.github.com/pluto/pluto-swift-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242022136,"owners_count":20059292,"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":"2025-03-05T11:39:14.571Z","updated_at":"2026-05-07T20:32:04.898Z","avatar_url":"https://github.com/pluto.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PlutoSwiftSDK\n\nPlutoSwiftSDK is a Swift library that provides tools for proof generation and includes a reusable BrowserView component.\n\n## Features\n\n\n- Proof generation for your provided configuration.\n- Reusable BrowserView component based on WKWebView.\n\n## Requirements\n\n\n- macOS: 11.0 or later\n- Xcode: 14.0 or later\n- iOS: 12.0 or later\n- Swift: 5.0+\n\n\n## Getting Started\n\n### 1. Clone the Repository\n\n```bash\ngit clone https://github.com/yourusername/PlutoSwiftSDK.git\ncd PlutoSwiftSDK\n```\n\n### 2. Build the Framework\n\nOpen the Xcode project:\n\n```bash\nopen PlutoSwiftSDK.xcodeproj\n```\n\nSelect the PlutoSwiftSDK scheme and build it with Cmd + B.\n\n### 3. Run the Test App\n\n\nSelect the PlutoSDKTestApp scheme and run it:\n\n```bash\nCmd + R\n```\n\n\n### 4. Run Unit Tests\n\n\nRun the tests in Xcode with Cmd + U.\nOr from the terminal:\n\n```bash\nxcodebuild test -scheme PlutoSwiftSDK -destination 'platform=iOS Simulator,name=iPhone 14'\n```\n\n## Folder Structure\n\n```\nPlutoSwiftSDK/\n├── Sources/                 # Source code\n│   ├── Enums.swift          # Enums\n│   ├── ManifestModels.swift # Models for manifest\n│   ├── ManifestParser.swift # JSON parsing\n│   ├── BrowserView.swift    # BrowserView component\n│   └── PlutoSDK.swift       # Public API\n├── Tests/                   # Unit tests\n├── PlutoSDKTestApp/         # Sample app\n├── PlutoSwiftSDK.xcodeproj  # Xcode project\n└── README.md                # Project documentation\n```\n\n## Using PlutoSwiftSDK in Your Project\n\n### Swift Package Manager\n1. Open Xcode and go to File \u003e Swift Packages \u003e Add Package Dependency.\n2. Enter the repository URL:\n   https://github.com/yourusername/PlutoSwiftSDK.git\n\n### CocoaPods\n1. Add this to your Podfile:\n```ruby\npod 'PlutoSwiftSDK', :git =\u003e 'https://github.com/yourusername/PlutoSwiftSDK.git'\n```\n\n2. Run\n```bash\npod install\n```\n\n## Example Usage\n\n### Proof Generation\n\n```swift\nimport PlutoSwiftSDK\n\nlet manifestConfig = \"\"\"\n{\n    \"manifestVersion\": \"1.0\",\n    \"id\": \"1234\",\n    \"title\": \"Sample\",\n    \"description\": \"This is a test.\",\n    \"mode\": \"TLSN\",\n    \"request\": {\n        \"method\": \"POST\",\n        \"url\": \"https://example.com/api\",\n        \"headers\": { \"Content-Type\": \"application/json\" },\n        \"body\": \"{\\\\\"key\\\\\":\\\\\"value\\\\\"}\"\n    },\n    \"response\": {\n        \"status\": \"200\",\n        \"headers\": {},\n        \"body\": {\n            \"json\": [[\"key\", \"value\"]],\n            \"contains\": \"success\"\n        }\n    }\n}\n\"\"\"\n\nif let manifest = PlutoSDK.parseManifest(config: manifestConfig) {\n    print(\"Manifest ID: \\(manifest.id)\")\n}\n```\n\n### BrowserView Component\n\n```swift\nimport PlutoSwiftSDK\nimport UIKit\n\nlet browserView = BrowserView(frame: someView.bounds)\nbrowserView.load(url: URL(string: \"https://example.com\")!)\nsomeView.addSubview(browserView)\n```\n\n## Contributing\n1. Fork the repository.\n2. Create a new branch.\n3. Commit and push your changes.\n4. Open a pull request.\n\n## License\nThis project is licensed under the MIT License.\n\n## Contact\nGitHub: [pluto](https://github.com/pluto)\n\nTwitter: [@plutolabs_](https://x.com/plutolabs_)\n\n\n## Release\n\nFirst, update the version in the `PlutoSwiftSDK.podspec` file.\n\n```bash\nmake release\n```\n\nThis will archive the framework, zip it up, and give you a sha256 of it.\nNext, upload the zipped file to the [GCP Bucket](https://console.cloud.google.com/storage/browser/swift-sdk).\nOnce that is uploaded, grab the public URL and update the `PlutoSwiftSDK.podspec` file with the new URL and sha256.\n\nFinally, publish then new version to CocoaPods:\n\n```bash\npod trunk push PlutoSwiftSDK.podspec\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpluto%2Fpluto-swift-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpluto%2Fpluto-swift-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpluto%2Fpluto-swift-sdk/lists"}