{"id":16462711,"url":"https://github.com/alexstack/cloud-configuration","last_synced_at":"2025-06-13T10:09:46.221Z","repository":{"id":197915900,"uuid":"699672960","full_name":"AlexStack/cloud-configuration","owner":"AlexStack","description":"This is the npm package for CloudConfig","archived":false,"fork":false,"pushed_at":"2024-05-27T05:45:38.000Z","size":45,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-13T10:09:32.222Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/AlexStack.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,"zenodo":null}},"created_at":"2023-10-03T05:30:17.000Z","updated_at":"2024-05-27T05:45:42.000Z","dependencies_parsed_at":"2024-10-11T11:12:09.674Z","dependency_job_id":"4c8279d6-0f05-49f7-9b5f-91cf8bea8878","html_url":"https://github.com/AlexStack/cloud-configuration","commit_stats":null,"previous_names":["alexstack/cloud-config-package"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/AlexStack/cloud-configuration","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexStack%2Fcloud-configuration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexStack%2Fcloud-configuration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexStack%2Fcloud-configuration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexStack%2Fcloud-configuration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexStack","download_url":"https://codeload.github.com/AlexStack/cloud-configuration/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexStack%2Fcloud-configuration/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259624743,"owners_count":22886331,"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-11T11:12:08.075Z","updated_at":"2025-06-13T10:09:46.197Z","avatar_url":"https://github.com/AlexStack.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Global Cloud Config\n\nManage your cloud configuration with ease to build API-driven modern web apps.\n\n## Installation\n\n```bash\nnpm install cloud-configuration\n```\n\nor\n\n```bash\nyarn add cloud-configuration\n```\n\n## Upgrade\n\n```bash\nnpm update cloud-configuration\n```\n\nor\n\n```bash\nyarn upgrade cloud-configuration\n```\n\n## Basic Usage\n\n```typescript\nimport cloudConfig from 'cloud-configuration';\n\nconst configs = await cloudConfig.fetchAll();\n\n// return value or null for default projectName \u0026 default groupName\nconst auFlagUrl = cloudConfig.get({ configs, featureKey: 'au_flag_url' });\n\n// return typed value or default value, good for TypeScript\nconst usFlagUrl = cloudConfig.getWithDefault({\n  configs,\n  featureKey: 'us_flag_url',\n  defaultValue: 'https://example.com/us.png',\n});\n\n// not default projectName \u0026 not default groupName\nconst auFlagUrl = cloudConfig.get({\n  configs,\n  projectName: 'my-project-001',\n  groupName: 'my-group-002',\n  featureKey: 'au_flag_url',\n});\n```\n\n## Local .env examples\n\n```bash\nCLOUD_CONFIG_SERVER_ENCRYPT_SECRET=S_+2/QGV3Xz\nCLOUD_CONFIG_SERVER_ACCESS_TOKEN=PRIVATE_U2FsdGVkX1/V6tnPtjtXIy9pX9oVKt1M73fasTvAsFpaQtvZg==\nNEXT_PUBLIC_CLOUD_CONFIG_CLIENT_ENCRYPT_SECRET=C_/uTPZ+2Qrr\nNEXT_PUBLIC_CLOUD_CONFIG_ORG_ID=U2FsdGVkX1/1dETBp2nedJo/uDqXrpc=\n```\n\n## Whole package size\n\n- package size: \u003c 10 kB\n\n## Demo projects using Global Cloud Config\n\n\u003c!--\nTEMPLATE\n- [sitename](https://sitelink.com) ([Source](https://github.com/githublink))\n- [sitename](https://sitelink.com)\n--\u003e\n\n- [HiHB](https://hihb.com/)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexstack%2Fcloud-configuration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexstack%2Fcloud-configuration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexstack%2Fcloud-configuration/lists"}