@nuxt/scripts-cli

Migration tools for Nuxt Scripts.
2,146 584
Install
npm install @nuxt/scripts-cli@beta
Latest Version:2.0.0-beta.16
License:MIT
Last Updated:Oct 22, 2026
Links: GitHub  ·  npm
Maintainer: harlan_zw

nuxt-scripts-social-card

npm version npm downloads License Nuxt Volta Skill repository on skilld.dev

Nuxt Scripts

Better Privacy, Performance, and DX for Third-Party Scripts in Nuxt Apps.

Features

  • 🪨 Built on top of Unhead Script Loading
  • 🎁 20+ third-party scripts integrations with fine-grained performance optimizations
  • 🏎️ Performance: Self hosting, advanced script loading triggers, best-practice defaults.
  • 🕵️ Privacy: Defaults to protect end users identity, script consent management APIs.
  • 🪵 DevTools: View your script with their status and see function logs
  • 🚀 0 dependencies, ~2kb minimal runtime

Background

Loading third-party IIFE scripts using useHead composable is easy. However, things start getting more complicated quickly around SSR, lazy loading, and type safety.

Nuxt Scripts solves these issues and more with the goal of making third-party scripts more performant, have better privacy and be better DX overall.

🚀 Quick Start

To get started, simply run:

npx nuxi@latest module add scripts

[!TIP] Using an AI agent? Get the @nuxt/scripts Skill on skilld.dev/gh/nuxt/scripts/nuxt-scripts.

That's it. The Nuxt Scripts module should be downloaded and added to your Nuxt Config modules.

📦 Examples

Explore live examples on StackBlitz:

⛰️ Next Steps

Need some inspiration to start using Nuxt Scripts? Try out the following:

  1. 🎉 Make it rain emojis with the Confetti Tutorial.
  2. 📚 Learn about how the Script Loading works.
  3. 🔍 Explore the Script Registry for popular pre-configured third-party scripts.
  4. 🚀 Load other scripts with useScript or Global Scripts.
  5. 🔨 Fine-tune your performance and privacy with Bundling and Consent Management.

⚖️ License

Licensed under the MIT license.

Related Packages

@nuxt/kit

Toolkit for authoring modules and interacting with Nuxt

258,907,175 61,001
@nuxt/opencollective
237,422,955 29
@nuxt/devtools-kit
108,156,300 3,309
@nuxt/devtools

The Nuxt DevTools gives you insights and transparency about your Nuxt App.

70,062,939 3,309
@nuxt/eslint-config

ESLint config for Nuxt projects

32,408,941 640

Version History

Pre-releases (16)
Version Released License
2.0.0-beta.16 MIT
2.0.0-beta.15 MIT
2.0.0-beta.14 MIT
2.0.0-beta.13 MIT
2.0.0-beta.12 MIT