Skip to content

reslear/scripts

 
 

Repository files navigation

npm version npm downloads License Nuxt Volta

Nuxt Scripts

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

Features

  • 🪨 useScript by Unhead
  • 🎁 20+ third-party scripts composables and components
  • ⏬ Serve scripts from your own server
  • 🕵️ Privacy Features - Protect end users identity, provide consent to scripts.
  • 🪵 DevTools integration - View your script with their status and see function logs

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 was created to solve 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 @nuxt/scripts

Done! You can now start using Nuxt Scripts in your Nuxt app.

Check out the 📖  docs or these resources to get started:

License

Licensed under the MIT license.

📑 License

Published under the MIT License

About

Third-Party Scripts Meets Nuxt Developer Experience.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • TypeScript 65.0%
  • Vue 34.4%
  • JavaScript 0.6%