{"id":18888023,"url":"https://github.com/codex-team/config-loader","last_synced_at":"2026-02-24T12:30:14.757Z","repository":{"id":37231002,"uuid":"504108538","full_name":"codex-team/config-loader","owner":"codex-team","description":"Config loader for Cloud Native applications","archived":false,"fork":false,"pushed_at":"2023-08-28T21:35:13.000Z","size":1184,"stargazers_count":0,"open_issues_count":9,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-04-24T09:25:23.372Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codex-team.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}},"created_at":"2022-06-16T10:19:01.000Z","updated_at":"2023-05-30T07:07:55.000Z","dependencies_parsed_at":"2024-01-23T21:15:59.138Z","dependency_job_id":"ebab56c7-7516-4783-9550-844a5c00bef9","html_url":"https://github.com/codex-team/config-loader","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codex-team%2Fconfig-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codex-team%2Fconfig-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codex-team%2Fconfig-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codex-team%2Fconfig-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codex-team","download_url":"https://codeload.github.com/codex-team/config-loader/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239859562,"owners_count":19708863,"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-11-08T07:41:29.125Z","updated_at":"2026-02-24T12:30:14.714Z","avatar_url":"https://github.com/codex-team.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# config-loader\nConfig loader for Cloud Native applications\n\n## Features\n\n- Configuration via YAML files\n- Combining and inheriting a configuration from multiple files\n- Override configuration values with environment variables\n- Provide default values for configuration\n\n## What's not included\n\n- Reading command line arguments with config files locations\n- Configuration validation\n\n## Installation\n\n```bash\nnpm install @codex-team/config-loader\n\nyarn add @codex-team/config-loader\n```\n\n## Usage\n\nIn this example we will load configuration from `app-config.yaml` and `app-config.local.yaml` files.\n[Zod](https://zod.dev/) is used for configuration validation, but you can use any other library.\n\n```ts\nimport {loadConfig} from '@codex-team/config-loader';\nimport {z} from 'zod';\n\nconst AppConfig = z.object({\n    host: z.string(),\n    port: z.number(),\n});\n\nexport type AppConfig = z.infer\u003ctypeof AppConfig\u003e;\n\nconst defaultConfig: AppConfig = {\n    host: '0.0.0.0',\n    port: 3000,\n};\n\nconst paths = [\n    `./app-config.yaml`,\n    `./app-config.local.yaml`,\n];\n\nconst loadedConfig = loadConfig(...[defaultConfig, ...paths]);\n\nconst appConfig = AppConfig.parse(loadedConfig);\n\nexport default appConfig;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodex-team%2Fconfig-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodex-team%2Fconfig-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodex-team%2Fconfig-loader/lists"}