README.md

April 9, 2026 ยท View on GitHub

unhead

npm version npm downloads

Unhead is a document head and template manager, improving reactive SSR JavaScript framework developer experience, SEO and performance. See the full introduction 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.

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 tag sorting
  • ๐Ÿค Vue, React, Solid, Svelte, Angular. Used by Nuxt

Get Started

Install unhead dependency to your project:

npm install unhead

Tip

Generate an Agent Skill for this package using skilld:

npx skilld add unhead

Visit the documentation site for guides and API references.

Sponsors

License

MIT License ยฉ 2022-PRESENT Harlan Wilton