{
 "kind": "tool",
 "slug": "tanstack-react-router",
 "path": "tools/tanstack-react-router/",
 "name": "TanStack Router",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Web frameworks",
   "tools/web-frameworks/"
  ]
 ],
 "lead": "Modern, type-safe routing library with file-based routing for React.",
 "chips": [
  {
   "label": "Web frameworks",
   "path": "tools/web-frameworks/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install @tanstack/react-router"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/TanStack/router"
  },
  {
   "label": "Website",
   "href": "https://tanstack.com/router"
  }
 ],
 "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/TanStack/router"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 24, 2026",
   "note": "Latest GitHub release Nov 19, 2026. ",
   "src": "https://github.com/TanStack/router"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "50 projects",
   "status": "info",
   "sub": "#13 of 76 in its category",
   "note": "Dependency in 50 public GitHub projects set up for AI coding agents that we scanned (0.8%).",
   "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 TanStack Router does",
   "parts": [
    {
     "t": "prose",
     "text": "Modern, type-safe routing library with file-based routing for React."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "TanStack Router popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "72",
       "of": "/ 100",
       "l": "Gid Score, #311 overall"
      },
      {
       "n": "29.5M",
       "l": "downloads a week, npm"
      },
      {
       "n": "15.4K",
       "l": "GitHub stars"
      },
      {
       "n": "50",
       "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 TanStack Router is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "TanStack Router is a dependency in 50 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (1.0% of the 4,867 JavaScript/TypeScript ones), #13 of 76 in web frameworks.",
      "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 165; those are left out of every share on this page.",
      "The most used alternative in our scan is React Router (292 projects).",
      "Projects that use it most often also use Vite (96.0%), Lucide React (86.0%), TanStack Query (78.0%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "31 projects, 0.9%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "24 projects, 1.0%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "20 projects, 0.7%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "6 projects, 1.3%",
       "v": "OpenAI Codex",
       "path": "agents/openai-codex/"
      },
      {
       "l": "5 projects, 1.1%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 96.0% of its projects",
       "v": "Vite",
       "path": "tools/vite/"
      },
      {
       "l": "In 86.0% of its projects",
       "v": "Lucide React",
       "path": "tools/lucide-react/"
      },
      {
       "l": "In 78.0% of its projects",
       "v": "TanStack Query",
       "path": "tools/tanstack-react-query/"
      },
      {
       "l": "In 98.0% of its projects",
       "v": "React",
       "path": "tools/react/"
      },
      {
       "l": "In 72.0% of its projects",
       "v": "Class Variance Authority",
       "path": "tools/class-variance-authority/"
      },
      {
       "l": "In 94.0% of its projects",
       "v": "Tailwind CSS",
       "path": "tools/tailwindcss/"
      },
      {
       "l": "In 70.0% of its projects",
       "v": "Tailwind Merge",
       "path": "tools/tailwind-merge/"
      },
      {
       "l": "In 64.0% of its projects",
       "v": "TanStack Start",
       "path": "tools/tanstack-react-start/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about TanStack Router",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Funding",
       "path": "tools/funding/",
       "items": [
        "GitHub Sponsors: https://github.com/tannerlinsley",
        "158 GitHub sponsors"
       ]
      },
      {
       "title": "Head to head",
       "items": [
        {
         "text": "React Router vs TanStack Router",
         "note": "used together in 1 projects",
         "path": "tools/compare/react-router-vs-tanstack-router/"
        }
       ]
      },
      {
       "title": "More in Web frameworks",
       "path": "tools/web-frameworks/",
       "items": [
        {
         "text": "React",
         "path": "tools/react/"
        },
        {
         "text": "Next.js",
         "path": "tools/next/"
        },
        {
         "text": "next-themes",
         "path": "tools/next-themes/"
        },
        {
         "text": "Vue",
         "path": "tools/vue/"
        },
        {
         "text": "Astro",
         "path": "tools/astro/"
        },
        {
         "text": "React Native Web",
         "path": "tools/react-native-web/"
        },
        {
         "text": "Angular",
         "path": "tools/angular/"
        },
        {
         "text": "Svelte",
         "path": "tools/svelte/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "TanStack Router",
       "me": true,
       "facts": [
        "MIT",
        "Gid 72",
        "29.5M/wk"
       ]
      },
      {
       "name": "React Router",
       "why": "Declarative routing library for building single-page React applications.",
       "path": "tools/react-router-dom/",
       "facts": [
        "MIT",
        "Gid 87",
        "59.1M/wk"
       ]
      }
     ],
     "more": "Compare TanStack Router with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install @tanstack/react-router"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for TanStack Router yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm @tanstack/react-router"
  ],
  [
   "Category",
   "Web frameworks"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "71.9"
  ],
  [
   "Rank in category",
   "#13 of 76"
  ],
  [
   "GitHub",
   "TanStack/router"
  ],
  [
   "Last change",
   "Nov 24, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/tanstack.png"
}