{"id":14964305,"url":"https://github.com/nuxt-community/hapi-nuxt","last_synced_at":"2025-10-25T04:31:25.268Z","repository":{"id":55023035,"uuid":"80980962","full_name":"nuxt-community/hapi-nuxt","owner":"nuxt-community","description":"Nuxt.js plugin for Hapi.js","archived":false,"fork":false,"pushed_at":"2021-01-14T19:20:36.000Z","size":671,"stargazers_count":46,"open_issues_count":2,"forks_count":12,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-01-29T07:32:27.441Z","etag":null,"topics":["hapi","hapijs","nuxt","ssr","vue"],"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/nuxt-community.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":"2017-02-05T08:52:34.000Z","updated_at":"2024-01-17T09:18:58.000Z","dependencies_parsed_at":"2022-08-14T09:20:31.639Z","dependency_job_id":null,"html_url":"https://github.com/nuxt-community/hapi-nuxt","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxt-community%2Fhapi-nuxt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxt-community%2Fhapi-nuxt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxt-community%2Fhapi-nuxt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxt-community%2Fhapi-nuxt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nuxt-community","download_url":"https://codeload.github.com/nuxt-community/hapi-nuxt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237901410,"owners_count":19384384,"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","hapijs","nuxt","ssr","vue"],"created_at":"2024-09-24T13:32:57.642Z","updated_at":"2025-10-25T04:31:17.892Z","avatar_url":"https://github.com/nuxt-community.png","language":"JavaScript","readme":"# Hapi Plugin for Nuxt.js\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![Circle CI][circle-ci-src]][circle-ci-href]\n[![Codecov][codecov-src]][codecov-href]\n[![License][license-src]][license-href]\n\n\u003e [Nuxt.js](https://nuxtjs.org) plugin for [Hapi.js](https://hapijs.com/)\n\n**IMPORTANT:** This plugin is compatible with Hapi \u003e= 17\n\n## Setup\n\n1. Add `@nuxtjs/hapi` dependency to your project\n\n```bash\nyarn add @nuxtjs/hapi # or npm install @nuxtjs/hapi\n```\n\n2. Register it on your server:\n\n```js\nconst Hapi = require('@hapi/hapi')\nconst nuxtPlugin = require('@nuxtjs/hapi')\n\nawait server.register({\n  plugin: nuxtPlugin\n  options: {\n    // plugin options\n  }\n}\n```\n\n## Options\n\n### `dev`\n\n- Default: `true` (`false` when environment variable `NODE_ENV` is `production`)\n\nAutomatically starts a `Builder` allow to hot reload on dev. Should be disabled for production.\n\n### `overrides`\n\nOverride nuxt.config\n\n### `rootDir`\n\n- Default: current working directory\n\nNuxt app rootDir\n\n### `edge`\n\n- Default: `false`\n\nUse `nuxt-edge` instead of `nuxt` package if set to `true`\n\n### `baseURL`\n\n- Default: `/`\n\nbaseURL for SSR route handler\n\n### `route`\n\n- Default: `{ id: 'nuxt.render', auth: false }`\n\nHapi route options for SSR handler\n\n### `routeMethod`\n\n- Default: `*`\n\nHapi route method. (Can be set to `GET` for more strict handling)\n\n## Access `nuxt` and `builder` instances\n\nThis plugin exposes nuxt and builder (for dev only) instances to hapi.\n\n```js\nconst server = new Hapi.Server()\n\nawait server.register(HapiNuxt)\n\n// Access to nuxt and builder instances using server.plugins.nuxt\nconst { nuxt, builder } = server.plugins.nuxt\n```\n\n## Access Hapi's internals.\n\nThe hapi request object is available from `nuxtServerInit` and the `context` under `res.hapi`. Likewise, the hapi response toolkit will be available in `res.hapi`.\n\n## Development\n\n1. Clone this repository\n2. Install dependencies using `yarn install` or `npm install`\n3. Start development server using `npm run dev`\n\n## License\n\n[MIT License](./LICENSE)\n\nCopyright (c) Nuxt Community\n\n\u003c!-- Badges --\u003e\n[npm-version-src]: https://img.shields.io/npm/v/@nuxtjs/hapi/latest.svg?style=flat-square\n[npm-version-href]: https://npmjs.com/package/@nuxtjs/hapi\n\n[npm-downloads-src]: https://img.shields.io/npm/dt/@nuxtjs/hapi.svg?style=flat-square\n[npm-downloads-href]: https://npmjs.com/package/@nuxtjs/hapi\n\n[circle-ci-src]: https://img.shields.io/circleci/project/github/nuxt-community/hapi-nuxt.svg?style=flat-square\n[circle-ci-href]: https://circleci.com/gh/nuxt-community/hapi-nuxt\n\n[codecov-src]: https://img.shields.io/codecov/c/github/nuxt-community/hapi-nuxt.svg?style=flat-square\n[codecov-href]: https://codecov.io/gh/nuxt-community/hapi-nuxt\n\n[license-src]: https://img.shields.io/npm/l/@nuxtjs/hapi.svg?style=flat-square\n[license-href]: https://npmjs.com/package/@nuxtjs/hapi\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuxt-community%2Fhapi-nuxt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnuxt-community%2Fhapi-nuxt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuxt-community%2Fhapi-nuxt/lists"}