{"id":29049289,"url":"https://github.com/configcat/openfeature-swift","last_synced_at":"2025-06-26T19:07:44.327Z","repository":{"id":299245018,"uuid":"999762349","full_name":"configcat/openfeature-swift","owner":"configcat","description":"ConfigCat OpenFeature Provider for Swift.","archived":false,"fork":false,"pushed_at":"2025-06-15T14:28:18.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-15T15:39:27.092Z","etag":null,"topics":["configcat","feature-flagging","feature-flags","feature-toggles","open-feature","openfeature","swift"],"latest_commit_sha":null,"homepage":"https://configcat.com/docs/sdk-reference/openfeature/swift","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/configcat.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-10T18:42:19.000Z","updated_at":"2025-06-15T14:26:53.000Z","dependencies_parsed_at":"2025-06-15T15:39:29.084Z","dependency_job_id":"98f09613-2dea-49d5-a6e0-76fee1e4e538","html_url":"https://github.com/configcat/openfeature-swift","commit_stats":null,"previous_names":["configcat/openfeature-swift"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/configcat/openfeature-swift","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/configcat%2Fopenfeature-swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/configcat%2Fopenfeature-swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/configcat%2Fopenfeature-swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/configcat%2Fopenfeature-swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/configcat","download_url":"https://codeload.github.com/configcat/openfeature-swift/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/configcat%2Fopenfeature-swift/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262128871,"owners_count":23263350,"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":["configcat","feature-flagging","feature-flags","feature-toggles","open-feature","openfeature","swift"],"created_at":"2025-06-26T19:07:42.930Z","updated_at":"2025-06-26T19:07:44.312Z","avatar_url":"https://github.com/configcat.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ConfigCat OpenFeature Provider for Swift\n\n[![CI](https://github.com/configcat/openfeature-swift/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/configcat/openfeature-swift/actions/workflows/ci.yml)\n\nThis repository contains an OpenFeature provider that allows [ConfigCat](https://configcat.com) to be used with\nthe [OpenFeature Swift SDK](https://github.com/open-feature/swift-sdk).\n\n## Installation\n\n### Swift Package Manager\n\nIf you manage dependencies through SPM, in the dependencies section of Package.swift add:\n\n```swift\n.package(url: \"https://github.com/configcat/openfeature-swift\", from: \"0.1.0\")\n```\n\nand in the target dependencies section add:\n```swift\n.product(name: \"ConfigCat\", package: \"openfeature-swift\"),\n```\n\n### Xcode Dependencies\n\n- Open the dependencies dialog from `File` \u003e `Add Package Dependencies...`\n- Search for `https://github.com/configcat/openfeature-swift` and click `Add Package`.\n\n## Usage\n\nThe initializer of `ConfigCatProvider` takes the SDK key and an optional `ConfigCatOptions`\nargument containing the additional configuration options for\nthe [ConfigCat Swift SDK](https://github.com/configcat/swift-sdk):\n\n```swift\nimport ConfigCatOpenFeature\nimport ConfigCat\nimport OpenFeature\n\nTask {\n    // Configure the provider.\n    let provider = ConfigCatProvider(sdkKey: \"\u003cYOUR-CONFIGCAT-SDK-KEY\u003e\") { opts in\n        opts.pollingMode = PollingModes.autoPoll()\n    }\n\n    // Configure the OpenFeature API with the ConfigCat provider.\n    await OpenFeatureAPI.shared.setProviderAndWait(provider: provider)\n\n    // Create a client.\n    let client = OpenFeatureAPI.shared.getClient()\n\n    // Evaluate feature flag.\n    let isAwesomeFeatureEnabled = client.getBooleanValue(key: \"isAwesomeFeatureEnabled\", defaultValue: false)\n}\n```\n\nFor more information about all the configuration options, see\nthe [Swift SDK documentation](https://configcat.com/docs/sdk-reference/ios/#creating-the-configcat-client).\n\n## Need help?\n\nhttps://configcat.com/support\n\n## Contributing\n\nContributions are welcome. For more info please read the [Contribution Guideline](CONTRIBUTING.md).\n\n## About ConfigCat\n\nConfigCat is a feature flag and configuration management service that lets you separate releases from deployments. You\ncan turn your features ON/OFF using \u003ca href=\"https://app.configcat.com\" target=\"_blank\"\u003eConfigCat Dashboard\u003c/a\u003e even\nafter they are deployed. ConfigCat lets you target specific groups of users based on region, email or any other custom\nuser attribute.\n\nConfigCat is a \u003ca href=\"https://configcat.com\" target=\"_blank\"\u003ehosted feature flag service\u003c/a\u003e. Manage feature toggles\nacross frontend, backend, mobile, desktop apps. \u003ca href=\"https://configcat.com\" target=\"_blank\"\u003eAlternative to\nLaunchDarkly\u003c/a\u003e. Management app + feature flag SDKs.\n\n- [Official ConfigCat SDKs for other platforms](https://github.com/configcat)\n- [Documentation](https://configcat.com/docs)\n- [Blog](https://configcat.com/blog)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconfigcat%2Fopenfeature-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconfigcat%2Fopenfeature-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconfigcat%2Fopenfeature-swift/lists"}