back to home

nuxt / scripts

Third-Party Scripts Meets Nuxt Developer Experience.

View on GitHub
552 stars
83 forks
6 issues

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing nuxt/scripts in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Source files are only loaded when you start an analysis to optimize performance.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind.in/repo/nuxt/scripts)
Preview:Analyzed by RepoMind

Repository Overview (README excerpt)

Crawler view

[![npm version][npm-version-src]][npm-href] [![npm downloads][npm-downloads-src]][npm-href] [![License][license-src]][license-href] [![Nuxt][nuxt-src]][nuxt-href] [![Volta][volta-src]][volta-href] Nuxt Scripts Better Privacy, Performance, and DX for Third-Party Scripts in Nuxt Apps. • šŸ‘¾  Playground > [!IMPORTANT] > Nuxt Scripts is in beta, use with caution as some APIs may change. 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 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: > [!TIP] > Generate an Agent Skill for this package using skilld: > That's it. The Nuxt Scripts module should be downloaded and added to your Nuxt Config . šŸ“¦ Examples Explore live examples on StackBlitz: • Cookie Consent - Google Consent Mode v2 with GTM • Granular Consent - Per-category consent management • Custom Script - Integrating any third-party script • Performance - Optimize loading with triggers ā›°ļø Next Steps Need some inspiration to start using Nuxt Scripts? Try out the following: • šŸŽ‰ Make it rain emojis with the Confetti Tutorial. • šŸ“š Learn about how the Script Loading works. • šŸ” Explore the Script Registry for popular pre-configured third-party scripts. • šŸš€ Load other scripts with useScript or Global Scripts. • šŸ”Ø Fine-tune your performance and privacy with Bundling and Consent Management. āš–ļø License Licensed under the MIT license. [npm-version-src]: https://img.shields.io/npm/v/@nuxt/scripts/latest.svg?style=flat&colorA=18181B&colorB=28CF8D [npm-downloads-src]: https://img.shields.io/npm/dm/@nuxt/scripts.svg?style=flat&colorA=18181B&colorB=28CF8D [npm-href]: https://npmjs.com/package/@nuxt/scripts [license-src]: https://img.shields.io/npm/l/@nuxt/scripts.svg?style=flat&colorA=18181B&colorB=28CF8D [license-href]: https://github.com/nuxt/scripts/blob/main/LICENSE.md [nuxt-src]: https://img.shields.io/badge/Nuxt-18181B?logo=nuxt [nuxt-href]: https://nuxt.com [volta-src]: https://user-images.githubusercontent.com/904724/209143798-32345f6c-3cf8-4e06-9659-f4ace4a6acde.svg [volta-href]: https://volta.net/nuxt/scripts?utm_source=nuxt_scripts_readme