{"id":19319231,"url":"https://github.com/oramasearch/oramacloud-client-swift","last_synced_at":"2026-05-17T19:07:51.949Z","repository":{"id":248934728,"uuid":"829177406","full_name":"oramasearch/oramacloud-client-swift","owner":"oramasearch","description":"Swift client for Orama Cloud","archived":false,"fork":false,"pushed_at":"2024-07-24T21:42:38.000Z","size":61,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-27T13:48:54.075Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oramasearch.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-07-15T23:14:15.000Z","updated_at":"2024-07-24T21:42:31.000Z","dependencies_parsed_at":"2024-10-18T18:25:13.299Z","dependency_job_id":null,"html_url":"https://github.com/oramasearch/oramacloud-client-swift","commit_stats":null,"previous_names":["askorama/oramacloud-client-swift","oramasearch/oramacloud-client-swift"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/oramasearch/oramacloud-client-swift","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oramasearch%2Foramacloud-client-swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oramasearch%2Foramacloud-client-swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oramasearch%2Foramacloud-client-swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oramasearch%2Foramacloud-client-swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oramasearch","download_url":"https://codeload.github.com/oramasearch/oramacloud-client-swift/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oramasearch%2Foramacloud-client-swift/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33151626,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2024-11-10T01:22:45.955Z","updated_at":"2026-05-17T19:07:51.916Z","avatar_url":"https://github.com/oramasearch.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Orama Cloud Swift Client\n\n[![GitHub CI](https://github.com/askorama/oramacloud-client-swift/actions/workflows/swift.yml/badge.svg)](https://github.com/askorama/oramacloud-client-swift/actions/workflows/swift.yml)\n\n## Installing via CocoaPods\n\nTo install the Orama Cloud client in your Swift project, you'll need to install [CocoaPods](https://cocoapods.org/)\n\n```sh\n$ gem install cocoapods\n```\n\nThen specify the Orama Client dependency in your `PodFile`:\n\n```ruby\nsource 'https://github.com/CocoaPods/Specs.git'\nplatform :ios, '10.0'\nuse_frameworks!\n\ntarget '\u003cYour Target Name\u003e' do\n    pod 'OramaCloudClient', '~\u003e 0.0.5'\nend\n```\n\nThen, run `pod install` to install the Pod:\n\n```sh\npod install\n```\n\n## Installing via the Swift Package Manager\n\nAdd the Orama Cloud repo URL to your `Package.swift` file:\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/askorama/oramacloud-client-swift.git\", from: \"0.0.4\")\n]\n```\n\n## Usage\n\nPerforming full-text, vector, or hybrid search:\n\n```swift\nimport OramaClient\n\nstruct MyDoc: Codable {\n  let title: String\n  let description: String\n}\n\nlet clientParams = OramaClientParams(endpoint: \"\u003cORAMA CLOUD URL\u003e\", apiKey: \"\u003cORAMA CLOUD API KEY\u003e\")\nlet orama = OramaClient(params: clientParams)\n\nlet searchParams = ClientSearchParams.builder(term: \"What is Orama?\", mode: .fulltext) // Mode can be .vector or .hybrid too\n  .limit(10) // optional\n  .offset(0) // optional\n  .returning([\"title\", \"description\"]) // optional\n  .build()\n\nlet searchResults: SearchResults\u003cMyDoc\u003e = try await orama.search(query: searchParams)\n\nprint(\"\\(searchResults.count) total results.\")\n```\n\nPerforming an answer session:\n\n```swift\nimport OramaClient\n\nstruct MyDoc: Codable {\n  let title: String\n  let description: String\n}\n\nlet clientParams = OramaClientParams(endpoint: \"\u003cORAMA CLOUD URL\u003e\", apiKey: \"\u003cORAMA CLOUD API KEY\u003e\")\nlet orama = OramaClient(params: clientParams)\nlet answerSessionParams = AnswerParams\u003cE2EDoc\u003e(\n    initialMessages: [],\n    inferenceType: .documentation,\n    oramaClient: orama,\n    userContext: nil,\n    events: nil\n  )\n\nlet answerSession = AnswerSession(params: answerSessionParams)\n  .on(event: .stateChange) { print($0) }\n  .on(event: .relatedQueries) { print($0) }\n\nlet askParams = AnswerParams\u003cE2EDoc\u003e.AskParams(\n    query: \"What's the best movie to watch with the family?\",\n    userData: nil,\n    related: nil\n  )\nlet answer = try await answerSession.ask(params: askParams)\n```\n\n## License\n\n[Apache 2.0](/LICENSE.md)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foramasearch%2Foramacloud-client-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foramasearch%2Foramacloud-client-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foramasearch%2Foramacloud-client-swift/lists"}