GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - onmax/scripts: Third-Party Scripts Meets Nuxt Developer Experience.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

1,226 Commits
1,226 Commits

Folders and files

NameName
Last commit message
Last commit date
.claude/skills
.claude/skills
 
 
.github
.github
 
 
client
client
 
 
docs/content
docs/content
 
 
examples
examples
 
 
playground
playground
 
 
scripts
scripts
 
 
src
src
 
 
test
test
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
.npmrc
.npmrc
 
 
.nuxtrc
.nuxtrc
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
build.config.ts
build.config.ts
 
 
eslint.config.mjs
eslint.config.mjs
 
 
package.json
package.json
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
pnpm-workspace.yaml
pnpm-workspace.yaml
 
 
tsconfig.json
tsconfig.json
 
 
types.d.ts
types.d.ts
 
 
vitest.config.ts
vitest.config.ts
 
 

Repository files navigation

nuxt-scripts-social-card

npm version npm downloads License Nuxt Volta

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 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

Generate an Agent Skill for this package using skilld:

npx skilld add @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:

  • 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:

  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.

About

Third-Party Scripts Meets Nuxt Developer Experience.

scripts.nuxt.com

Resources

Readme
License
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.