🌊 Unhead v3 is here

The full stack <head> package for any framework.

Unhead wraps your document template, improving reactive SSR JavaScript framework SEO and performance.

Unhead Principles

Why Unhead

01

Complete Developer Experience

  • useHead() with type narrowing, deduping, and tag merging
  • Flat useSeoMeta() for 100+ meta tags
  • useScript() for performant third party loading
  • useSchemaOrg() for automatic Schema.org graphs
  • Plugins for tag validation, canonical URLs, and 7 more
02

Built for Performance

  • ~4.4kb gzipped, tree shakable utilities
  • Built in HTML minification
  • Streaming SSR with head tags pushed per chunk
  • Automatic Capo.js head tag ordering
03

Any Framework / Any Bundler

  • Vue, React, Solid.js, Svelte, and Angular
  • Vite, Webpack, Rollup, and more
  • Built in Vite Devtools integration
  • Hook into every stage of head resolution

Hello useHead()

Unhead aims to provide bullet-proof primitives for a minimal yet powerful API surface.

Built For Reactive Lifecycles

All side effects are tracked so that unmounting a component will revert its head modifications and reactive updates can be made at any time.
Component Not Mounted

Optimized SEO Tags

Nail your SEO with foolproof flat meta config and the simplest Schema.org you've ever worked with.

Making Websites Faster

Unhead ships to be tree shaken with client and server export paths.

Optimized Head tag ordering

Unhead ships with a default head tag order that is optimized for SEO and performance.

Up To Date. Always.

Unhead was started at the end of 2022 and has received continuous bug fixes and feature improvements from the community.

0
Commits
0
Issues Closed
0
Contributors
341K downloads
per day, on average

Unhead is used and trusted by thousands of developers and companies around the world.

12M
Downloads
/ month
0
Total Stars

Funded by the community

Unhead is completely free and open-source due to the generous support of the community.

Top Sponsors
Gold Sponsors
Backers