{"id":16032784,"url":"https://github.com/threez/openfeature.cr","last_synced_at":"2025-04-01T13:16:22.007Z","repository":{"id":244464604,"uuid":"815318382","full_name":"threez/openfeature.cr","owner":"threez","description":"Implements the openfeature specification in crystal","archived":false,"fork":false,"pushed_at":"2024-06-20T19:56:58.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T08:12:56.379Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Crystal","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/threez.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,"publiccode":null,"codemeta":null}},"created_at":"2024-06-14T21:05:32.000Z","updated_at":"2024-06-20T19:57:01.000Z","dependencies_parsed_at":"2024-10-08T21:40:39.742Z","dependency_job_id":null,"html_url":"https://github.com/threez/openfeature.cr","commit_stats":null,"previous_names":["threez/openfeature.cr"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threez%2Fopenfeature.cr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threez%2Fopenfeature.cr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threez%2Fopenfeature.cr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threez%2Fopenfeature.cr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/threez","download_url":"https://codeload.github.com/threez/openfeature.cr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246644097,"owners_count":20810687,"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-10-08T21:40:35.302Z","updated_at":"2025-04-01T13:16:21.980Z","avatar_url":"https://github.com/threez.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# openfeature [![.github/workflows/ci.yml](https://github.com/threez/openfeature.cr/actions/workflows/ci.yml/badge.svg)](https://github.com/threez/openfeature.cr/actions/workflows/ci.yml) [![https://threez.github.io/openfeature.cr/](https://badgen.net/badge/api/documentation/green)](https://threez.github.io/openfeature.cr/)\n\nOpenFeature is an open specification that provides a vendor-agnostic,\ncommunity-driven API for feature flagging that works with your favorite\nfeature flag management tool or in-house solution.\n\nFeature flags are a software development technique that allows teams to\nenable, disable or change the behavior of certain features or code paths\nin a product or service, without modifying the source code.\n\nStandardizing feature flags unifies tools and vendors behind a common\ninterface, avoiding vendor lock-in at the code level. It provides a\nframework for building extensions and integrations that can be shared\nacross the community.\n\nThis library implements the crystal version of this specification.\n\n## Installation\n\n1. Add the dependency to your `shard.yml`:\n\n   ```yaml\n   dependencies:\n     openfeature:\n       github: threez/openfeature.cr\n   ```\n\n2. Run `shards install`\n\n## Usage\n\n```crystal\nrequire \"openfeature\"\nrequire \"openfeature/providers/*\"\n\nOpenFeature.provider = OpenFeature::Providers::InMemory.new\nclient = OpenFeature.client(\"app\")\n\nv2_enabled = client.boolean_value(\"v2_enabled\", true)\nv2_enabled.should eq(true)\n```\n\nThe above code first sets the default provider. It then creates a client\nthat can be used to resolve feature flags, in this case it checks if\nthe **v2_enabled** is enabled.\n\n## Contributing\n\n1. Fork it (\u003chttps://github.com/threez/openfeature.cr/fork\u003e)\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## Contributors\n\n- [Vincent Landgraf](https://github.com/threez) - creator and maintainer\n\n## API\n\n* [OpenAPI specification](https://github.com/open-feature/protocol/blob/main/service/openapi.yaml)\n* https://openfeature.dev/specification/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthreez%2Fopenfeature.cr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthreez%2Fopenfeature.cr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthreez%2Fopenfeature.cr/lists"}