Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

rehype-slug

rehype plugin that adds auto-generated id attributes to headings for linking.

Markdown, editors and contentNPM

GitHubWebsite

1. License

License from npm.

github.com/rehypejs/rehype-slug

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What rehype-slug does

rehype plugin that adds auto-generated id attributes to headings for linking.

rehype-slug popularity

50 / 100
Gid Score, #1984 overall
6M
downloads a week, npm
264
GitHub stars
37
agent projects use it
rehype-slug: downloads per weeknpm, rehype-slug 5,967,438
rehype-slug: GitHub starsrehypejs/rehype-slug 264

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How rehype-slug is used

  • rehype-slug is a dependency in 37 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (0.8% of the 4,867 JavaScript/TypeScript ones), #23 of 149 in markdown, editors and content.
  • Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 81; those are left out of every share on this page.
  • Projects that use it most often also use remark-gfm (91.9%), Next.js (70.3%), React (91.9%).

By coding agent

25 projects, 0.8%
18 projects, 0.7%
16 projects, 0.5%
5 projects, 1.5%
5 projects, 1.1%

Often used with

In 91.9% of its projects
In 70.3% of its projects
In 91.9% of its projects
In 70.3% of its projects
In 62.2% of its projects
In 67.6% of its projects
In 54.1% of its projects
In 81.1% of its projects

More about rehype-slug

Funding
  • GitHub Sponsors: https://github.com/unifiedjs
  • Open Collective: https://opencollective.com/unified
  • thanks.dev: https://thanks.dev/u/gh/rehypejs
  • 25 GitHub sponsors

See all

More in Markdown, editors and content

Alternatives

rehype-slug This page

MITGid 506M/wk

Compare rehype-slug with another tool

Get started

Install it.

npm install rehype-slug

No step-by-step start for rehype-slug yet: we have not written its hand-checked card.