{"id":15636551,"url":"https://github.com/danielroe/nuxt-full-static","last_synced_at":"2025-03-08T18:30:58.987Z","repository":{"id":54182084,"uuid":"522077477","full_name":"danielroe/nuxt-full-static","owner":"danielroe","description":"Full static implementation for Nuxt 3","archived":true,"fork":false,"pushed_at":"2024-09-24T10:35:45.000Z","size":516,"stargazers_count":123,"open_issues_count":16,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-29T09:29:14.660Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/danielroe.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","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}},"created_at":"2022-08-06T23:48:25.000Z","updated_at":"2024-10-29T02:45:37.000Z","dependencies_parsed_at":"2023-09-26T05:25:38.014Z","dependency_job_id":"acc00e56-10ad-4743-891e-5c39f549f161","html_url":"https://github.com/danielroe/nuxt-full-static","commit_stats":{"total_commits":49,"total_committers":4,"mean_commits":12.25,"dds":"0.22448979591836737","last_synced_commit":"2f9b71c1286f05791de9a97ac622b464f6142b8d"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielroe%2Fnuxt-full-static","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielroe%2Fnuxt-full-static/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielroe%2Fnuxt-full-static/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielroe%2Fnuxt-full-static/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielroe","download_url":"https://codeload.github.com/danielroe/nuxt-full-static/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242594797,"owners_count":20155342,"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-10-03T11:04:58.157Z","updated_at":"2025-03-08T18:30:58.721Z","avatar_url":"https://github.com/danielroe.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"\u003e [!IMPORTANT]  \n\u003e This implementation is now built-in to Nuxt 3+ and this module is no longer required.\n\n# Nuxt Full Static (experimental)\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![Github Actions][github-actions-src]][github-actions-href]\n[![Codecov][codecov-src]][codecov-href]\n\n\u003e Full static implementation for [Nuxt 3](https://v3.nuxtjs.org)\n\n- [✨ \u0026nbsp;Changelog](https://github.com/danielroe/nuxt-full-static/blob/main/CHANGELOG.md)\n- [▶️ \u0026nbsp;Online playground](https://stackblitz.com/github/danielroe/nuxt-full-static/tree/main/playground)\n\n## Features\n\n**⚠️ `nuxt-full-static` is a proof of concept. ⚠️**\n\n👉 Roadmap and progress for nuxt 3 payload extraction support: [nuxt/framework#6411](https://github.com/nuxt/framework/issues/6411)\n\n- Generates static payloads at build time if routes are prerendered\n- Also works in hybrid mode, rendering payloads on the server\n\n## Usage\n\n```js\nimport { defineNuxtConfig } from 'nuxt'\n\nexport default defineNuxtConfig({\n  modules: ['nuxt-full-static'],\n})\n```\n\nAutomatically, all your `useAsyncData` and `useFetch` calls will be _prefilled_ with static payloads. As long as you haven't set `initialCache` or `server` to false, you should not see these functions running on client-side at all. You can even stub them out by prefixing them with `process.server \u0026\u0026`:\n\n```js\nconst { data } = useAsyncData(() =\u003e process.server \u0026\u0026 $fetch('https://my.api.com/data'))\n```\n\n_However_, you also retain the ability to opt-out, by manually calling `refresh`. This will result in running the data fetching function again.\n\n## 💻 Development\n\n- Clone this repository\n- Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable`\n- Install dependencies using `pnpm install`\n- Stub module with `pnpm dev:prepare`\n- Run `pnpm dev` to start [playground](./playground) in development mode\n\n## License\n\nMade with ❤️\n\nPublished under the [MIT License](./LICENCE).\n\n\u003c!-- Badges --\u003e\n\n[npm-version-src]: https://img.shields.io/npm/v/nuxt-full-static?style=flat-square\n[npm-version-href]: https://npmjs.com/package/nuxt-full-static\n[npm-downloads-src]: https://img.shields.io/npm/dm/nuxt-full-static?style=flat-square\n[npm-downloads-href]: https://npmjs.com/package/nuxt-full-static\n[github-actions-src]: https://img.shields.io/github/workflow/status/danielroe/nuxt-full-static/ci/main?style=flat-square\n[github-actions-href]: https://github.com/danielroe/nuxt-full-static/actions?query=workflow%3Aci\n[codecov-src]: https://img.shields.io/codecov/c/gh/danielroe/nuxt-full-static/main?style=flat-square\n[codecov-href]: https://codecov.io/gh/danielroe/nuxt-full-static\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielroe%2Fnuxt-full-static","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielroe%2Fnuxt-full-static","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielroe%2Fnuxt-full-static/lists"}