{
 "kind": "tool",
 "slug": "rehype-slug",
 "path": "tools/rehype-slug/",
 "name": "rehype-slug",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Markdown, editors and content",
   "tools/content-editors/"
  ]
 ],
 "lead": "rehype plugin that adds auto-generated id attributes to headings for linking.",
 "chips": [
  {
   "label": "Markdown, editors and content",
   "path": "tools/content-editors/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install rehype-slug"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/rehypejs/rehype-slug"
  },
  {
   "label": "Website",
   "href": "https://github.com/rehypejs/rehype-slug#readme"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/rehypejs/rehype-slug"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Quiet for a year",
   "status": "cond",
   "sub": "Last change Aug 31, 2023",
   "note": "Latest GitHub release Oct 31, 2022. ",
   "src": "https://github.com/rehypejs/rehype-slug"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "37 projects",
   "status": "info",
   "sub": "#23 of 149 in its category",
   "note": "Dependency in 37 public GitHub projects set up for AI coding agents that we scanned (0.6%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What rehype-slug does",
   "parts": [
    {
     "t": "prose",
     "text": "rehype plugin that adds auto-generated id attributes to headings for linking."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "rehype-slug popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "50",
       "of": "/ 100",
       "l": "Gid Score, #1984 overall"
      },
      {
       "n": "6M",
       "l": "downloads a week, npm"
      },
      {
       "n": "264",
       "l": "GitHub stars"
      },
      {
       "n": "37",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How rehype-slug is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "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%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "25 projects, 0.8%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "18 projects, 0.7%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "16 projects, 0.5%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "5 projects, 1.5%",
       "v": "OpenCode",
       "path": "agents/opencode/"
      },
      {
       "l": "5 projects, 1.1%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 91.9% of its projects",
       "v": "remark-gfm",
       "path": "tools/remark-gfm/"
      },
      {
       "l": "In 70.3% of its projects",
       "v": "Next.js",
       "path": "tools/next/"
      },
      {
       "l": "In 91.9% of its projects",
       "v": "React",
       "path": "tools/react/"
      },
      {
       "l": "In 70.3% of its projects",
       "v": "clsx",
       "path": "tools/clsx/"
      },
      {
       "l": "In 62.2% of its projects",
       "v": "rehype-autolink-headings",
       "path": "tools/rehype-autolink-headings/"
      },
      {
       "l": "In 67.6% of its projects",
       "v": "Lucide React",
       "path": "tools/lucide-react/"
      },
      {
       "l": "In 54.1% of its projects",
       "v": "next-themes",
       "path": "tools/next-themes/"
      },
      {
       "l": "In 81.1% of its projects",
       "v": "Tailwind CSS",
       "path": "tools/tailwindcss/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about rehype-slug",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Funding",
       "path": "tools/funding/",
       "items": [
        "GitHub Sponsors: https://github.com/unifiedjs",
        "Open Collective: https://opencollective.com/unified",
        "thanks.dev: https://thanks.dev/u/gh/rehypejs",
        "25 GitHub sponsors"
       ]
      },
      {
       "title": "More in Markdown, editors and content",
       "path": "tools/content-editors/",
       "items": [
        {
         "text": "react-markdown",
         "path": "tools/react-markdown/"
        },
        {
         "text": "remark-gfm",
         "path": "tools/remark-gfm/"
        },
        {
         "text": "Marked",
         "path": "tools/marked/"
        },
        {
         "text": "Jinja2",
         "path": "tools/jinja2/"
        },
        {
         "text": "gray-matter",
         "path": "tools/gray-matter/"
        },
        {
         "text": "Tiptap",
         "path": "tools/tiptap/"
        },
        {
         "text": "Shiki",
         "path": "tools/shiki/"
        },
        {
         "text": "highlight.js",
         "path": "tools/highlight-js/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "rehype-slug",
       "me": true,
       "facts": [
        "MIT",
        "Gid 50",
        "6M/wk"
       ]
      }
     ],
     "more": "Compare rehype-slug with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install rehype-slug"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for rehype-slug yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm rehype-slug"
  ],
  [
   "Category",
   "Markdown, editors and content"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "49.9"
  ],
  [
   "Rank in category",
   "#23 of 149"
  ],
  [
   "GitHub",
   "rehypejs/rehype-slug"
  ],
  [
   "Last change",
   "Aug 31, 2023"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/rehypejs.png"
}