{"id":13548374,"url":"https://github.com/hapipal/confidence","last_synced_at":"2025-12-16T16:55:09.255Z","repository":{"id":9982703,"uuid":"12011165","full_name":"hapipal/confidence","owner":"hapipal","description":"Dynamic, declarative configurations","archived":false,"fork":false,"pushed_at":"2024-06-14T20:56:46.000Z","size":285,"stargazers_count":263,"open_issues_count":6,"forks_count":44,"subscribers_count":25,"default_branch":"master","last_synced_at":"2025-05-16T10:05:31.386Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hapipal.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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":"2013-08-09T21:41:56.000Z","updated_at":"2025-04-29T09:55:28.000Z","dependencies_parsed_at":"2024-03-30T05:33:00.582Z","dependency_job_id":"f17eb63a-74fd-4e1d-920d-01fbc225602c","html_url":"https://github.com/hapipal/confidence","commit_stats":{"total_commits":151,"total_committers":28,"mean_commits":5.392857142857143,"dds":0.7019867549668874,"last_synced_commit":"e3ce6cbe4238d75da8698ef40d749bbc2bcae1c0"},"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hapipal%2Fconfidence","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hapipal%2Fconfidence/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hapipal%2Fconfidence/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hapipal%2Fconfidence/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hapipal","download_url":"https://codeload.github.com/hapipal/confidence/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254509477,"owners_count":22082891,"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-08-01T12:01:09.501Z","updated_at":"2025-12-16T16:55:04.219Z","avatar_url":"https://github.com/hapipal.png","language":"JavaScript","readme":"# confidence\n\nDynamic, declarative configurations\n\n[![Build Status](https://travis-ci.org/hapipal/confidence.svg?branch=master)](https://travis-ci.org/hapipal/confidence) [![Coverage Status](https://coveralls.io/repos/hapipal/confidence/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/hapipal/confidence?branch=master)\n\nLead Maintainer: [Sunny Bhanot](https://github.com/augnin)\n\n## Installation\n```sh\nnpm install @hapipal/confidence\n```\n\n## Usage\n\u003e See also the [API Reference](API.md)\n\u003e\n\u003e Confidence is intended for use with nodejs v12+ (_see v4 for lower support_).\n\nConfidence is a configuration document format, an API, and a foundation for A/B testing. The configuration format is designed to work with any existing JSON-based configuration, serving values based on object path (`'/a/b/c'` translates to ``a.b.c``). In addition, Confidence defines special $-prefixed keys used to filter values for a given criteria.\n\n\n### Example\nBelow is an example configuring a hapi server using a dynamic Confidence configuration.\n\n```js\nconst Hapi = require('@hapi/hapi');\nconst Confidence = require('@hapipal/confidence');\n\nconst store = new Confidence.Store({\n    server: {\n        host: 'localhost',\n        port: {\n            $param: 'PORT',\n            $coerce: 'number',\n            $default: 3000\n        },\n        debug: {\n            $filter: 'NODE_ENV',\n            $default: {\n                log: ['error'],\n                request: ['error']\n            },\n            production: {\n                request: ['implementation']\n            }\n        }\n    }\n});\n\nconst config = store.get('/', process.env);\n\nconst server = Hapi.server(config);\n```\n\n## Extras\nConfidence originated in the [hapijs organization](https://github.com/hapijs), and was adopted by hapi pal in April 2019.\n\n### Logo\n![confidence Logo](https://raw.githubusercontent.com/hapipal/confidence/v5.0.0/images/confidence.png)\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhapipal%2Fconfidence","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhapipal%2Fconfidence","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhapipal%2Fconfidence/lists"}