{"id":22485698,"url":"https://github.com/TheNoim/fastify-vue","last_synced_at":"2025-08-02T18:33:25.110Z","repository":{"id":32962672,"uuid":"147954910","full_name":"TheNoim/fastify-vue","owner":"TheNoim","description":"A nuxt.js fastify plugin","archived":false,"fork":false,"pushed_at":"2022-12-09T13:54:46.000Z","size":1274,"stargazers_count":29,"open_issues_count":22,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-04T15:32:44.224Z","etag":null,"topics":["fastify","fastify-plugin","hacktoberfest","nuxt","nuxtjs","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/TheNoim.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":"2018-09-08T17:26:48.000Z","updated_at":"2024-10-21T19:48:39.000Z","dependencies_parsed_at":"2023-01-14T22:50:59.601Z","dependency_job_id":null,"html_url":"https://github.com/TheNoim/fastify-vue","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/TheNoim%2Ffastify-vue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheNoim%2Ffastify-vue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheNoim%2Ffastify-vue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheNoim%2Ffastify-vue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheNoim","download_url":"https://codeload.github.com/TheNoim/fastify-vue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228499978,"owners_count":17929991,"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":["fastify","fastify-plugin","hacktoberfest","nuxt","nuxtjs","vue"],"created_at":"2024-12-06T17:13:04.234Z","updated_at":"2024-12-06T17:14:52.969Z","avatar_url":"https://github.com/TheNoim.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# fastify-vue-plugin\n\n_A [nuxt.js](https://nuxtjs.org) [fastify](https://fastify.io) plugin_\n\n[![NpmLicense](https://img.shields.io/npm/l/fastify-vue-plugin.svg?style=for-the-badge)](https://www.npmjs.com/package/fastify-vue-plugin)\n[![David](https://img.shields.io/david/TheNoim/fastify-vue.svg?style=for-the-badge)](https://github.com/TheNoim/fastify-vue)\n[![GitHub package version](https://img.shields.io/github/package-json/v/TheNoim/fastify-vue.svg?style=for-the-badge)](https://github.com/TheNoim/fastify-vue)\n[![NPM Link](https://img.shields.io/badge/npm-fastify--vue--plugin-red.svg?style=for-the-badge)](https://www.npmjs.com/package/fastify-vue-plugin) [![Greenkeeper badge](https://badges.greenkeeper.io/TheNoim/fastify-vue.svg)](https://greenkeeper.io/)\n\n### Installation\n\n```bash\nyarn add fastify-vue-plugin\n# or if you use npm\nnpm i fastify-vue-plugin --save\n```\n\n### Usage\n\n```javascript\nconst fastify = require('fastify')();\n\nfastify.register(require('fastify-vue-plugin'), {\n    config: require('./nuxt.config.js'),\n    attachProperties: ['session'] // Attach properties from the fastify request object to the nuxt request object. Example use case: Attach session store to nuxt context.\n}).after(e =\u003e {\n    if (e) console.trace(e);\n    fastify.nuxt('/'); // is equals: index.vue\n    fastify.nuxt('/dashboard');\n    // add all your nuxtjs routes\n    // make sure there are added in the after function\n    \n    // use params\n    fastify.nuxt('/product/:id');\n});\n\n// other stuff/routes\n\nfastify.listen(1337, '0.0.0.0' , (e) =\u003e {\n    if (e) console.trace(e);\n    console.warn('http://0.0.0.0:1337');\n});\n```\n\n### Notice\n\nThis plugin is inspired by the [fastify-react](https://github.com/fastify/fastify-react) plugin.\n\n### License\n\nThe MIT License (MIT)\n\nCopyright (c) 2018 Nils Bergmann\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTheNoim%2Ffastify-vue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTheNoim%2Ffastify-vue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTheNoim%2Ffastify-vue/lists"}