{"id":24383367,"url":"https://github.com/firstandthird/hapi-confi","last_synced_at":"2025-12-28T02:13:13.768Z","repository":{"id":54420556,"uuid":"43221785","full_name":"firstandthird/hapi-confi","owner":"firstandthird","description":"Set up hapi from a config file","archived":false,"fork":false,"pushed_at":"2021-02-19T01:32:42.000Z","size":309,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-04T09:40:24.683Z","etag":null,"topics":["hapi-plugin","hapi-v17","has-tests","needs-coverage"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/firstandthird.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}},"created_at":"2015-09-26T20:28:51.000Z","updated_at":"2021-02-19T01:32:43.000Z","dependencies_parsed_at":"2022-08-13T15:10:15.172Z","dependency_job_id":null,"html_url":"https://github.com/firstandthird/hapi-confi","commit_stats":null,"previous_names":[],"tags_count":46,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fhapi-confi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fhapi-confi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fhapi-confi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fhapi-confi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/firstandthird","download_url":"https://codeload.github.com/firstandthird/hapi-confi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243258925,"owners_count":20262362,"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":["hapi-plugin","hapi-v17","has-tests","needs-coverage"],"created_at":"2025-01-19T10:14:20.813Z","updated_at":"2025-12-28T02:13:13.731Z","avatar_url":"https://github.com/firstandthird.png","language":"JavaScript","readme":"## hapi-confi  [![Build Status](https://travis-ci.org/firstandthird/hapi-confi.svg?branch=master)](https://travis-ci.org/firstandthird/hapi-confi) [![Coverage Status](https://coveralls.io/repos/github/firstandthird/hapi-confi/badge.svg?branch=master)](https://coveralls.io/github/firstandthird/hapi-confi?branch=master)\n\n\n  Set up and run a hapi server using yaml/json files from a config directory\n\n### Installation\n\n`npm install hapi-confi`\n\n### Usage\n\n```\nvar Hapi = require('hapi');\nvar hapiConfi = require('hapi-confi');\nhapiConfi(Hapi, options, function(err, server, config) {\n   /* server is a configured hapi server here */\n   server.start(function(){\n   });\n}\n```\n\n### Options\n\n - `configPath` - relative to 'cwd', defaults to 'conf/'\n - `server`    - standard hapi server configuration options, see hapi docs for available options.\n\n### Major Config items:  \n\n  - `before`  - list of event handlers to fire on a 'before' event\n  - `logging` - list of reporters to use from 'good.js', the hapi logging library\n    -  `reporters` -  any 'good-' reporters to use for logging (e.g. good-console)\n  - `authPlugins`  - list of auth plugins\n  - `strategies`  - list of strategies of the form:\n    - `provider`\n      - `scheme`  \n      - `mode`\n      - `options`\n      - `profile` -\n  - `plugins`  - list of hapi plugins that will be added to your server through hapi.register()\n    - `options` - options to pass when the plugin is registered\n - `views`  - list of view engines to register with hapi.views()\n  - `engines` - list of modules to import and pass to view\n - `validator` - optional validator library for hapi v19+ (usually '@hapi/joi')\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirstandthird%2Fhapi-confi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffirstandthird%2Fhapi-confi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirstandthird%2Fhapi-confi/lists"}