{"id":14964152,"url":"https://github.com/nuxt/scripts","last_synced_at":"2026-04-14T05:02:37.570Z","repository":{"id":238624678,"uuid":"493321252","full_name":"nuxt/scripts","owner":"nuxt","description":"Third-Party Scripts Meets Nuxt Developer Experience.","archived":false,"fork":false,"pushed_at":"2026-02-27T15:08:34.000Z","size":5966,"stargazers_count":544,"open_issues_count":20,"forks_count":78,"subscribers_count":9,"default_branch":"main","last_synced_at":"2026-02-27T21:50:27.688Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://scripts.nuxt.com","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/nuxt.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-05-17T15:59:43.000Z","updated_at":"2026-02-26T02:45:00.000Z","dependencies_parsed_at":"2025-12-08T09:06:13.787Z","dependency_job_id":null,"html_url":"https://github.com/nuxt/scripts","commit_stats":{"total_commits":749,"total_committers":32,"mean_commits":23.40625,"dds":"0.23497997329773035","last_synced_commit":"b1339591591acb0a1b3c33d35245cda3acd285ab"},"previous_names":["nuxt/scripts"],"tags_count":90,"template":false,"template_full_name":null,"purl":"pkg:github/nuxt/scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxt%2Fscripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxt%2Fscripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxt%2Fscripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxt%2Fscripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nuxt","download_url":"https://codeload.github.com/nuxt/scripts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxt%2Fscripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30086511,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T15:40:14.053Z","status":"ssl_error","status_checked_at":"2026-03-04T15:40:13.655Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-09-24T13:32:38.713Z","updated_at":"2026-04-02T21:06:45.446Z","avatar_url":"https://github.com/nuxt.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"[![nuxt-scripts-social-card](https://github.com/nuxt/scripts/blob/main/.github/banner.png)](https://scripts.nuxt.com)\n\n[![npm version][npm-version-src]][npm-href]\n[![npm downloads][npm-downloads-src]][npm-href]\n[![License][license-src]][license-href]\n[![Nuxt][nuxt-src]][nuxt-href]\n[![Volta][volta-src]][volta-href]\n\n# Nuxt Scripts\n\nBetter Privacy, Performance, and DX for Third-Party Scripts in Nuxt Apps.\n\n- [👾 \u0026nbsp;Playground](https://stackblitz.com/edit/nuxt-starter-pkwfkx?file=pages%2Findex.vue)\n\n\u003e [!IMPORTANT]\n\u003e Nuxt Scripts is in beta, use with caution as some APIs may change.\n\n## Features\n\n- 🪨 Built on top of [Unhead Script Loading](https://unhead.unjs.io/docs/typescript/head/guides/core-concepts/loading-scripts)\n- 🎁 20+ third-party scripts integrations with fine-grained performance optimizations\n- 🏎️ Performance: Self hosting, advanced script loading triggers, best-practice defaults.\n- 🕵️ Privacy: Defaults to protect end users identity, script consent management APIs.\n- 🪵 DevTools: View your script with their status and see function logs\n- 🚀 0 dependencies, ~2kb minimal runtime\n\n## Background\n\nLoading third-party IIFE scripts using `useHead` composable is easy. However,\nthings start getting more complicated quickly around SSR, lazy loading, and type safety.\n\nNuxt Scripts solves these issues and more with the goal of making third-party scripts more performant,\nhave better privacy and be better DX overall.\n\n## 🚀 Quick Start\n\nTo get started, simply run:\n\n```bash\nnpx nuxi@latest module add scripts\n```\n\n\u003e [!TIP]\n\u003e Generate an Agent Skill for this package using [skilld](https://github.com/harlan-zw/skilld):\n\u003e ```bash\n\u003e npx skilld add @nuxt/scripts\n\u003e ```\n\nThat's it. The Nuxt Scripts module should be downloaded and added to your Nuxt Config `modules`.\n\n## 📦 Examples\n\nExplore live examples on [StackBlitz](https://stackblitz.com):\n\n- [Cookie Consent](https://stackblitz.com/github/nuxt/scripts/tree/main/examples/cookie-consent) - Google Consent Mode v2 with GTM\n- [Granular Consent](https://stackblitz.com/github/nuxt/scripts/tree/main/examples/granular-consent) - Per-category consent management\n- [Custom Script](https://stackblitz.com/github/nuxt/scripts/tree/main/examples/custom-script) - Integrating any third-party script\n- [Performance](https://stackblitz.com/github/nuxt/scripts/tree/main/examples/performance) - Optimize loading with triggers\n\n## ⛰️ Next Steps\n\nNeed some inspiration to start using Nuxt Scripts? Try out the following:\n\n1. 🎉 Make it rain emojis with the [Confetti Tutorial](https://scripts.nuxt.com/docs/getting-started/confetti-tutorial).\n2. 📚 Learn about how the [Script Loading](https://scripts.nuxt.com/docs/guides/script-triggers) works.\n3. 🔍 Explore the [Script Registry](https://scripts.nuxt.com/scripts) for popular pre-configured third-party scripts.\n3. 🚀 Load other scripts with [useScript](https://scripts.nuxt.com/docs/api/use-script) or [Global Scripts](https://scripts.nuxt.com/docs/guides/global).\n4. 🔨 Fine-tune your performance and privacy with [Bundling](https://scripts.nuxt.com/docs/guides/bundling) and [Consent Management](https://scripts.nuxt.com/docs/guides/consent).\n\n## ⚖️ License\n\nLicensed under the [MIT license](https://github.com/nuxt/scripts/blob/main/LICENSE.md).\n\n\u003c!-- Badges --\u003e\n[npm-version-src]: https://img.shields.io/npm/v/@nuxt/scripts/latest.svg?style=flat\u0026colorA=18181B\u0026colorB=28CF8D\n[npm-downloads-src]: https://img.shields.io/npm/dm/@nuxt/scripts.svg?style=flat\u0026colorA=18181B\u0026colorB=28CF8D\n[npm-href]: https://npmjs.com/package/@nuxt/scripts\n\n[license-src]: https://img.shields.io/npm/l/@nuxt/scripts.svg?style=flat\u0026colorA=18181B\u0026colorB=28CF8D\n[license-href]: https://github.com/nuxt/scripts/blob/main/LICENSE.md\n\n[nuxt-src]: https://img.shields.io/badge/Nuxt-18181B?logo=nuxt\n[nuxt-href]: https://nuxt.com\n\n[volta-src]: https://user-images.githubusercontent.com/904724/209143798-32345f6c-3cf8-4e06-9659-f4ace4a6acde.svg\n[volta-href]: https://volta.net/nuxt/scripts?utm_source=nuxt_scripts_readme\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuxt%2Fscripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnuxt%2Fscripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuxt%2Fscripts/lists"}