{"id":19020251,"url":"https://github.com/trailsjs/trailpack-koa","last_synced_at":"2025-06-13T07:37:34.013Z","repository":{"id":69884516,"uuid":"47514226","full_name":"trailsjs/trailpack-koa","owner":"trailsjs","description":":package: Koa Trailpack","archived":false,"fork":false,"pushed_at":"2015-12-06T21:29:09.000Z","size":10,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-01-02T00:25:40.336Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trailsjs.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}},"created_at":"2015-12-06T21:19:18.000Z","updated_at":"2016-11-26T18:18:42.000Z","dependencies_parsed_at":"2023-02-28T18:46:22.677Z","dependency_job_id":null,"html_url":"https://github.com/trailsjs/trailpack-koa","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailsjs%2Ftrailpack-koa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailsjs%2Ftrailpack-koa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailsjs%2Ftrailpack-koa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailsjs%2Ftrailpack-koa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trailsjs","download_url":"https://codeload.github.com/trailsjs/trailpack-koa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240064608,"owners_count":19742347,"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-08T20:16:20.355Z","updated_at":"2025-02-21T18:21:51.420Z","avatar_url":"https://github.com/trailsjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# trailpack-hapi\n\n[![Gitter][gitter-image]][gitter-url]\n[![NPM version][npm-image]][npm-url]\n[![Build status][ci-image]][ci-url]\n[![Dependency Status][daviddm-image]][daviddm-url]\n[![Code Climate][codeclimate-image]][codeclimate-url]\n\nHapi Trailpack. This pack binds the routes compiled in [trailpack-router](https://github.com/trailsjs/trailpack-router)\nto a [Hapi Server](http://hapijs.com/api#server). \n\n## Usage\nLoad in your trailpack config.\n\n```js\n// config/trailpack.js\nmodule.exports = {\n  // ...\n  packs: [\n    require('trailpack-core'),\n    require('trailpack-router'),\n    require('trailpack-hapi')\n  ]\n}\n```\n\n## Configuration\nSee [`config/web.js`](https://github.com/trailsjs/trails-example-app/blob/master/config/web.js) for an example.\n\n#### `server`\nThe web server to use. When using trailpack-hapi, `server` should be set to `'hapi'`.\n\n#### `port`\nThe port to listen on. `3000` by default. Can also be set via the `PORT` environment variable.\n\n## Contributing\nWe love contributions! In order to be able to review your code efficiently,\nplease keep the following in mind:\n\n1. Pull Requests (PRs) must include new and/or updated tests, and all tests [must pass](https://travis-ci.org/trailsjs/trailpack-hapi).\n2. Use `eslint`! See the `eslintConfig` in [package.json](https://github.com/trailsjs/trailpack-hapi/blob/master/package.json).\n3. Please [reference the relevant issue](https://github.com/blog/1506-closing-issues-via-pull-requests) in your Pull Request.\n\n## License\n[MIT](https://github.com/trailsjs/trailpack-hapi/blob/master/LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/trailpack-hapi.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/trailpack-hapi\n[ci-image]: https://img.shields.io/travis/trailsjs/trailpack-hapi/master.svg?style=flat-square\n[ci-url]: https://travis-ci.org/trailsjs/trailpack-hapi\n[daviddm-image]: http://img.shields.io/david/trailsjs/trailpack-hapi.svg?style=flat-square\n[daviddm-url]: https://david-dm.org/trailsjs/trailpack-hapi\n[codeclimate-image]: https://img.shields.io/codeclimate/github/trailsjs/trailpack-hapi.svg?style=flat-square\n[codeclimate-url]: https://codeclimate.com/github/trailsjs/trailpack-hapi\n[gitter-image]: http://img.shields.io/badge/+%20GITTER-JOIN%20CHAT%20%E2%86%92-1DCE73.svg?style=flat-square\n[gitter-url]: https://gitter.im/trailsjs/trails\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrailsjs%2Ftrailpack-koa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrailsjs%2Ftrailpack-koa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrailsjs%2Ftrailpack-koa/lists"}