{"id":20710352,"url":"https://github.com/ericwindmill/web_app_config","last_synced_at":"2026-04-19T22:11:06.177Z","repository":{"id":90676643,"uuid":"145248990","full_name":"ericwindmill/web_app_config","owner":"ericwindmill","description":null,"archived":false,"fork":false,"pushed_at":"2018-08-20T15:13:11.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-13T12:23:17.180Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ericwindmill.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-18T19:58:20.000Z","updated_at":"2019-02-15T03:25:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"50a0a5aa-cbcd-45bc-9a1d-a37a848adc17","html_url":"https://github.com/ericwindmill/web_app_config","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ericwindmill/web_app_config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericwindmill%2Fweb_app_config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericwindmill%2Fweb_app_config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericwindmill%2Fweb_app_config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericwindmill%2Fweb_app_config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericwindmill","download_url":"https://codeload.github.com/ericwindmill/web_app_config/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericwindmill%2Fweb_app_config/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32024475,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-17T02:11:18.441Z","updated_at":"2026-04-19T22:11:06.154Z","avatar_url":"https://github.com/ericwindmill.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# web_app_config\n\nTools to configure Dart web apps using environment variables.\n\n## Example\n\nThe example/ directory contains an example project.\n\nWhen the server runs, it writes a config.json file based on\nthe desired environment variables:\n\n```dart\nconst List\u003cString\u003e supportedKeys = const \u003cString\u003e[\n  'app_name',\n  'app_description',\n  'app_version',\n];\n\nFuture main() async {\n  await wconfig.writeConfigFromEnvironment(supportedKeys);\n  // ...\n```\n\nThen, when the client runs, that configuration can be loaded\nand parsed into a map:\n\n```\nconst List\u003cString\u003e supportedKeys = const \u003cString\u003e[\n  'app_name',\n  'app_description',\n  'app_version',\n];\n\nFuture main() async {\n  await wconfig.writeConfigFromEnvironment(supportedKeys);\n```\n\nWhen app is run in development mode, (`pub serve` or `webdev serve`) the\nconfiguration is loaded from `web/config.yaml`\n\n```bash\npub build # Dart 2: webdev build\n\ndart bin/server.dart\n\n# observe the app says \"name: my awesome app\", configured in config.yaml\n\n# stop server\n\nexport APP_NAME=\"i am configured using an env var\"\n\ndart bin/server.dart\n\n# observe the app now says \"name: i am configured using an env var\" \n\n# stop server\n\nunset APP_NAME\n\ndart bin/server.dart\n\n# observe the app says \"name: my awesome app\" again\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericwindmill%2Fweb_app_config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericwindmill%2Fweb_app_config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericwindmill%2Fweb_app_config/lists"}