{"id":22203861,"url":"https://github.com/0xwal/confy","last_synced_at":"2026-01-11T13:30:26.396Z","repository":{"id":42683260,"uuid":"474432530","full_name":"0xwal/confy","owner":"0xwal","description":"Load yaml configuration. 📄","archived":false,"fork":false,"pushed_at":"2022-04-02T21:55:53.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-30T03:43:42.121Z","etag":null,"topics":["server","yaml-configuration"],"latest_commit_sha":null,"homepage":"","language":"Dart","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/0xwal.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-26T18:24:45.000Z","updated_at":"2022-03-27T21:08:30.000Z","dependencies_parsed_at":"2022-08-26T00:20:44.920Z","dependency_job_id":null,"html_url":"https://github.com/0xwal/confy","commit_stats":null,"previous_names":["0xwal/confy","0xwaleed/confy"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xwal%2Fconfy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xwal%2Fconfy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xwal%2Fconfy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xwal%2Fconfy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xwal","download_url":"https://codeload.github.com/0xwal/confy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245388748,"owners_count":20607163,"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":["server","yaml-configuration"],"created_at":"2024-12-02T17:14:46.286Z","updated_at":"2026-01-11T13:30:26.363Z","avatar_url":"https://github.com/0xwal.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"confy to load YAML based configuration file.\n\n## Why\n\nI love yaml \u003c3\n\n## Features\n\n* Load global configuration file `.confy.yaml` or `.confy.yml`.\n* Load specific configuration file conditionally based. `.confy.prod.yml` or `.confy.dev.yml`.\n\n## Usage\n\n1. Add your global configuration `.confy.yml` in the same dart application directory.\n2. Optionally add another envy file to override specific environment keys `.confy.prod.yml`.\n3. Load Confy as follows.\n\n```dart\nimport \"package:confy/confy.dart\";\n\nmain() {\n  // to load configuration files global and another one based on APP_ENV environment.\n  confyLoad(environmentResolver: () =\u003e Platform.environment[\"APP_ENV\"]);\n\n  print(\"name ${confy(\"NAME\")}\");\n  print(\"description ${confy(\"DESC\")}\");\n  print(\"environment path: ${confy(\"PATH\")}\"); // from System Environment set ./examples/.confy.yml\n\n  final v = confy(\"APP.VERSION\");\n\n  final appVersion = \"${v?[\"MAJOR\"]}.${v?[\"MINOR\"]}.${v?[\"PATCH\"]}\";\n\n  print(\"app version: $appVersion\");\n\n  print(\"key not exist ${confy(\"MY_SECRET\", defaultValue: 123)}\");\n\n  confySet(\"NAME\", \"Edited\"); // useful when doing unit testing\n  print(\"name ${confy(\"NAME\")}\");\n  // ... your code\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xwal%2Fconfy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xwal%2Fconfy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xwal%2Fconfy/lists"}