Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

unjs/unhead

Open more actions menu

Repository files navigation

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

About

The full stack <head> package for any framework.

Resources

Contributing

Security policy

Stars

Watchers

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.