unhead

[![npm version](https://img.shields.io/npm/v/unhead?color=yellow)](https://npmjs.com/package/unhead) [![npm downloads](https://img.shields.io/npm/dm/unhead?color=yellow)](https://npm.chart.dev/unhead) Unhead is a document head and template manager, improving reactive SSR JavaScript framework developer experience, SEO and performance. See the full [introduction to Unhead](https://unhead.unjs.io/docs/typescript/head/guides/get-started/intro-to-unhead).

Made possible by my Sponsor Program 💖
Follow me @harlan_zw 🐦 • Join Discord for help

### Unhead v3 is out 🎉 32% faster, 11% smaller, streaming SSR, and a unified Vite plugin with DevTools. See the [v3 release notes](https://unhead.unjs.io/v3). ## Highlights - 🌊 **Streaming SSR**: head tags push to the DOM as suspense boundaries resolve - 🛠️ **Unified Vite plugin + DevTools**: tree-shaking, validation, source tracing - ✨ `useHead()`: Deduping, sorting, tag merging, and type narrowing - 🍣 `useSeoMeta()`: Flat SEO meta tags with compile-time transform - 🧩 `useScript()`: Powerful and performant script loading API - 🚀 Tiny (4.4kb gz), tree-shaken, [Capo.js](https://unhead.unjs.io/learn/guides/what-is-capo) tag sorting - 🤝 Vue, React, Solid, Svelte, Angular. Used by [Nuxt](https://nuxt.com/) ## Get Started Install `unhead` dependency to your project: ```bash npm install unhead ``` > [!TIP] > Generate an Agent Skill for this package using [skilld](https://github.com/harlan-zw/skilld): > ```bash > npx skilld add unhead > ``` Visit the [documentation site](https://unhead.unjs.io/) for guides and API references. ## Sponsors

## License MIT License © 2022-PRESENT [Harlan Wilton](https://github.com/harlan-zw)