npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

nuxt-hedge

v0.6.1

Published

<h1 align='center'>🌳 nuxt-hedge</h1>

Readme

Features

  • 💎 Latest @vueuse/head: Computed getters, XSS protection, improved performance and more
  • 🧙 Define your meta tags as a flat object useMetaTags
  • ✨ Automatic social share meta tags
  • 🤖 Debug head tags component DebugHead
  • 🍣 Handle raw un-encoded tags with useHeadRaw
  • 🌳 Fully typed Head Schema with href and src file auto-completion
  • 🪝 Runtime hooks: head:tags, head:entries

Coming soon:

  • 🪝 More runtime hooks: head:dom:render, head:ssr:render
  • 📦 Support resolving aliases
  • 🖥️ Server Only Head tags

Background

I'm the maintainer of @vueuse/head and zhead.

This module was built to test bug fixes as well as experimental new features which may land into the Nuxt core.

While it should be relatively safe for production use, it will be updated frequently and may lose parity with the Nuxt meta module, use with caution.

Install

npm install --save-dev nuxt-hedge

# Using yarn
yarn add --dev nuxt-hedge

Register Module

This module replaces the internal Nuxt meta module, so the setup is slightly different.

nuxt.config.ts

export default defineNuxtConfig({
  // ...
  hooks: {
    'modules:before': async ({ nuxt }) => {
      // swap out the nuxt internal module for nuxt-hedge
      for (const k in nuxt.options._modules) {
        if (typeof nuxt.options._modules[k] === 'function' && (await nuxt.options._modules[k].getMeta()).name === 'meta')
          nuxt.options._modules[k] = 'nuxt-hedge'
      }
    },
  },
})

Config

seoOptimise

  • Type: boolean

  • Default: true

    Automatically optimise meta tags for SEO.

    It will automatically infer the og:title, og:description when a title and description are set respectively. It will ensure a twitter:card is set to summary_large_image if not set.

    This will do more in the future.

Composables

useHead

Usage of the composable remains mostly the same. This version offers better TypeScript and XSS presentation support.

The children property is has been deprecated in favor of textContent.

Read the useHead docs for more details.

useHead({
  link: [
    { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
  ],
  style: [
    {
      textContent: 'body { background-color: red; }',
    }
  ]
})

useHeadRaw

useMetaTags

Define your meta tags as a flat object. This function is automatically imported for you.

Behind the scenes, this unpacks your meta tags and adds them as if you used useHead directly.

Powered by packrup and zhead.

useMetaTags({
  ogImage: "https://nuxtjs.org/meta_400.png",
  ogUrl: "https://nuxtjs.org",
  ogSiteName: "NuxtJS",
  ogType: "website",
  ogLocale: "en_US",
  ogLocaleAlternate: "fr_FR",
  twitterSite: "@nuxt_js",
})

Components

DebugHead

A component to debug your head tags.

<template>
  <DebugHead />
</template>

Sponsors

License

MIT License © 2022-PRESENT Harlan Wilton