TypeScript

Welcome To Unhead

Unhead is a powerful, lightweight, and framework-agnostic head management library for web applications. Unhead enables you to dynamically control your HTML document's <head> elements, enhancing SEO, performance, and user experience across any JavaScript framework.

Get Started

If you're new to Unhead, start here to learn the essentials and set up your first implementation.

To get started with Unhead, choose your framework above and we'll update the docs for your usage.

Intro to Unhead
Explore Unhead's capabilities and architecture
Starter Recipes
Copy-paste solutions for common head management scenarios

Core Concepts

Master the fundamental concepts behind Unhead's powerful head management.

Titles & Title Templates
Learn to set page titles and use title templates effectively
Tag Sorting & Placement
Control where and how tags are rendered in your document
Class & Style Attributes
Manage HTML and body attributes effectively
Inline Style & Scripts
Add and manage inline content in your head elements
Tag Deduplication
Understand how Unhead prevents and resolves duplicate tags
DOM Event Handling
Handle DOM events elegantly in your head elements
Script Loading
Manage script loading efficiently and reliably

Advanced

Take your head management to the next level with these advanced capabilities.

Extending Unhead
Create custom plugins and extend core functionality
Bundle Optimizations
Optimize your bundle size when using Unhead
Build Plugins
Leverage build tools to optimize Unhead usage

Plugins

Enhance Unhead with powerful plugins for common use cases.

Template Params
Use dynamic template parameters in your head tags
Alias Sorting
Sort your tags based on aliases for optimal organization
Canonical Plugin
Automatically generate and manage canonical URLs
Infer SEO Meta
Automatically generate proper SEO meta tags
Did this page help you?