{"id":16682420,"url":"https://github.com/sagikazarmark/viperx","last_synced_at":"2025-03-21T18:32:45.889Z","repository":{"id":53264397,"uuid":"186050742","full_name":"sagikazarmark/viperx","owner":"sagikazarmark","description":"Viper extensions","archived":false,"fork":false,"pushed_at":"2023-04-03T16:36:46.000Z","size":213,"stargazers_count":32,"open_issues_count":3,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-15T16:11:15.765Z","etag":null,"topics":["configuration","go","golang","vault"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/sagikazarmark.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":"2019-05-10T20:31:28.000Z","updated_at":"2025-02-22T09:22:00.000Z","dependencies_parsed_at":"2024-06-19T00:09:59.375Z","dependency_job_id":"529bddab-cf15-4b32-8c04-26ba2add1b8d","html_url":"https://github.com/sagikazarmark/viperx","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sagikazarmark%2Fviperx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sagikazarmark%2Fviperx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sagikazarmark%2Fviperx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sagikazarmark%2Fviperx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sagikazarmark","download_url":"https://codeload.github.com/sagikazarmark/viperx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244849045,"owners_count":20520633,"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":["configuration","go","golang","vault"],"created_at":"2024-10-12T14:07:29.595Z","updated_at":"2025-03-21T18:32:45.636Z","avatar_url":"https://github.com/sagikazarmark.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ViperX: [Viper](https://github.com/spf13/viper) extensions\n\n[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/sagikazarmark/viperx/CI?style=flat-square)](https://github.com/sagikazarmark/viperx/actions?query=workflow%3ACI)\n[![Codecov](https://img.shields.io/codecov/c/github/sagikazarmark/viperx?style=flat-square)](https://codecov.io/gh/sagikazarmark/viperx)\n[![Go Report Card](https://goreportcard.com/badge/github.com/sagikazarmark/viperx?style=flat-square)](https://goreportcard.com/report/github.com/sagikazarmark/viperx)\n![Go Version](https://img.shields.io/badge/go%20version-%3E=1.13-61CFDD.svg?style=flat-square)\n[![PkgGoDev](https://pkg.go.dev/badge/mod/github.com/sagikazarmark/viperx)](https://pkg.go.dev/mod/github.com/sagikazarmark/viperx)\n[![FOSSA Status](https://app.fossa.com/api/projects/custom%2B8125%2Fviperx.svg?type=shield)](https://app.fossa.com/projects/custom%2B8125%2Fviperx?ref=badge_shield)\n\nThis library adds some extensions to the core [Viper](https://github.com/spf13/viper) package.\n\n\n## Installation\n\n```bash\n$ go get github.com/sagikazarmark/viperx\n```\n\n\n## Usage\n\n### Remote config provider registry\n\nPackage `remote` provides a remote provider registry.\n\n```go\npackage main\n\nimport (\n\t\"github.com/spf13/viper\"\n\n\tvaultremote \"github.com/sagikazarmark/viperx/remote\"\n)\n\nfunc main() {\n\tvaultremote.RegisterConfigProvider(\"vault\", \u0026myVaultProvider{})\n\n\t_ = viper.AddRemoteProvider(\"vault\", \"endpoint\", \"path\")\n}\n```\n\n### Hashicorp Vault Remote config provider\n\n```go\npackage main\n\nimport (\n\t\"github.com/spf13/viper\"\n\n\t\"github.com/sagikazarmark/viperx/remote/vault\"\n)\n\nfunc main() {\n\t_ = viper.AddRemoteProvider(\"vault\", \"endpoint\", \"path\")\n\tviper.SetConfigType(\"json\") // This is required for the vault provider\n\n\t_ = viper.ReadRemoteConfig()\n}\n```\n\n\n## Roadmap\n\n- [ ] Add etcd remote provider support (Using Go CDK `secrets`?)\n- [ ] Add consul remote provider support (Using Go CDK `secrets`?)\n- [ ] Add a friendly (declarative?) API for defining configuration\n\n\n## Development\n\nContributions are welcome! :)\n\n1. Clone the repository\n1. Make changes on a new branch\n1. If you changed any dependencies or added new packages run: `./pleasew tidy`\n1. Run the test suite:\n    ```bash\n    ./pleasew test\n    ./pleasew lint\n    ```\n1. Commit, push and open a PR\n\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.\n\n[![FOSSA Status](https://app.fossa.com/api/projects/custom%2B8125%2Fviperx.svg?type=large)](https://app.fossa.com/projects/custom%2B8125%2Fviperx?ref=badge_large)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsagikazarmark%2Fviperx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsagikazarmark%2Fviperx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsagikazarmark%2Fviperx/lists"}