{"id":13506625,"url":"https://github.com/potato4d/nuxt-client-init-module","last_synced_at":"2025-05-15T11:02:06.027Z","repository":{"id":32786328,"uuid":"142307501","full_name":"potato4d/nuxt-client-init-module","owner":"potato4d","description":"Provide client version of nuxtServerInit","archived":false,"fork":false,"pushed_at":"2025-05-06T13:13:53.000Z","size":2081,"stargazers_count":237,"open_issues_count":14,"forks_count":9,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-06T14:36:53.854Z","etag":null,"topics":["module","nuxt","nuxt-module","nuxtjs","vue","vuejs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/nuxt-client-init-module","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/potato4d.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-07-25T13:57:16.000Z","updated_at":"2024-11-28T03:39:25.000Z","dependencies_parsed_at":"2023-11-09T14:44:05.994Z","dependency_job_id":"b935100d-e9a2-46a9-ad37-48002d1dfe5c","html_url":"https://github.com/potato4d/nuxt-client-init-module","commit_stats":{"total_commits":237,"total_committers":12,"mean_commits":19.75,"dds":0.3586497890295358,"last_synced_commit":"191026fbbdd27b1fa365352b196b0c3852319f20"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/potato4d%2Fnuxt-client-init-module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/potato4d%2Fnuxt-client-init-module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/potato4d%2Fnuxt-client-init-module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/potato4d%2Fnuxt-client-init-module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/potato4d","download_url":"https://codeload.github.com/potato4d/nuxt-client-init-module/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254328384,"owners_count":22052632,"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":["module","nuxt","nuxt-module","nuxtjs","vue","vuejs"],"created_at":"2024-08-01T01:00:54.728Z","updated_at":"2025-05-15T11:02:05.949Z","avatar_url":"https://github.com/potato4d.png","language":"JavaScript","funding_links":["https://www.patreon.com/potato4d","https://www.buymeacoffee.com/potato4d"],"categories":["Uncategorized","JavaScript"],"sub_categories":["Uncategorized"],"readme":"# nuxtClientInit module\n\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n[![donate: Patreon](https://img.shields.io/badge/donate-patreon-orange.svg?style=flat-square)](https://www.patreon.com/potato4d)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square)](https://opensource.org/licenses/MIT)\n[![NPM version](https://img.shields.io/npm/v/nuxt-client-init-module.svg?style=flat)](https://npmjs.com/package/nuxt-client-init-module)\n[![All Contributors](https://img.shields.io/badge/all_contributors-7-orange.svg?style=flat-square)](#contributors)\n[![NPM downloads](https://img.shields.io/npm/dm/nuxt-client-init-module.svg?style=flat)](https://npmjs.com/package/nuxt-client-init-module)\n[![codecov](https://codecov.io/gh/potato4d/nuxt-client-init-module/branch/master/graph/badge.svg)](https://codecov.io/gh/potato4d/nuxt-client-init-module)\n\n\u003e Provide client version of `nuxtServerInit`.\n\n`nuxt-client-init-module` provides Nuxt.js with the ability to inject processing at client initialization.\nJust like `nuxtServerInit`, it is possible to implement the` nuxtClientInit` action, which is executed only on the client-side rendering, in the root Vuex module.\n\n\u003ca href=\"https://www.buymeacoffee.com/potato4d\" class=\"block mx-auto\" target=\"_blank\"\u003e\n  \u003cimg class=\"shadow-md rounded-lg mx-auto\" src=\"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png\" width=\"162\" alt=\"Buy Me A Coffee\" /\u003e\n\u003c/a\u003e\n\n## Installation\n\n```bash\n$ yarn add nuxt-client-init-module\n```\n\n## Usage\n\nin nuxt.config.js\n\n```js\n{\n  ...\n  modules: [\n   'nuxt-client-init-module'\n  ]\n  ...\n}\n```\n\nin store/index.js\n\n```js\nexport const actions = {\n  nuxtClientInit({ commit }, context) {\n    // code\n  }\n}\n```\n\n**Note:** When working with other modules (e.g. axios) that are needed during `nuxtClientInit`, `nuxt-client-init-module` should appear earlier in the `modules` section of `nuxt.config.js` for correct functionality.\n\n## Author\n\n- [potato4d](https://twitter.com/potato4d)\n\n## LICENSE\n\nMIT\n\n## Contributors\n\nThanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://potato4d.me\"\u003e\u003cimg src=\"https://avatars0.githubusercontent.com/u/6993514?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eHANATANI Takuma\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/potato4d/nuxt-client-init-module/commits?author=potato4d\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/potato4d/nuxt-client-init-module/issues?q=author%3Apotato4d\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e \u003ca href=\"https://github.com/potato4d/nuxt-client-init-module/pulls?q=is%3Apr+reviewed-by%3Apotato4d\" title=\"Reviewed Pull Requests\"\u003e👀\u003c/a\u003e \u003ca href=\"#question-potato4d\" title=\"Answering Questions\"\u003e💬\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/Tosuke\"\u003e\u003cimg src=\"https://avatars2.githubusercontent.com/u/13393900?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003etosuke\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/potato4d/nuxt-client-init-module/issues?q=author%3ATosuke\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://miyaoka.github.io/\"\u003e\u003cimg src=\"https://avatars2.githubusercontent.com/u/1443118?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eMasaya Kazama\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/potato4d/nuxt-client-init-module/issues?q=author%3Amiyaoka\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/NomNes\"\u003e\u003cimg src=\"https://avatars2.githubusercontent.com/u/12662211?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eNikita Umnov\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/potato4d/nuxt-client-init-module/commits?author=NomNes\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"http://kamikazechaser.live\"\u003e\u003cimg src=\"https://avatars2.githubusercontent.com/u/18488025?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eMohammed Sohail\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/potato4d/nuxt-client-init-module/commits?author=kamikazechaser\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/colmer\"\u003e\u003cimg src=\"https://avatars1.githubusercontent.com/u/4122445?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eAnton Sitnikov\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/potato4d/nuxt-client-init-module/commits?author=colmer\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"http://simoneldevig.dk/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/6176830?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eSimon Eldevig\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/potato4d/nuxt-client-init-module/issues?q=author%3Asimoneldevig\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/DmitryBelichack\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/14155180?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eDmitry Belichack\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/potato4d/nuxt-client-init-module/commits?author=DmitryBelichack\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpotato4d%2Fnuxt-client-init-module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpotato4d%2Fnuxt-client-init-module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpotato4d%2Fnuxt-client-init-module/lists"}