Skip to content

The best TanStack Router alternatives

8 tools that do a similar job to TanStack Router, 8 of them open source. Each entry says what it does and who it suits, so you can pick the one that fits instead of the most famous.

You're replacing

TanStack Router

A type-safe router for React and other web UIs, with an optional full-stack framework built on it.

  1. 1

    React Router

    Open source · MIT · ★ 56.6k

    A routing library for React apps that maps URLs to screens and data.

    Best for: React developers building single-page or multi-page web apps; Teams that want a choice between a full framework and a lighter routing library

  2. 2

    Next.js

    Open source · MIT · ★ 143k

    A React framework for building websites and web apps with server rendering and routing built in.

    Best for: Developers already comfortable with React who want a full framework around it; Teams building sites that need server rendering or static generation

  3. 3

    TanStack Query

    Open source · MIT · ★ 50.5k

    A library for fetching, caching, and updating data from servers in web apps.

    Best for: Frontend developers building apps that load data from a server; Teams using React, Solid, Svelte, or Vue who want less hand-written loading and caching code

  4. 4

    UI-Router

    Open source · MIT · ★ 13.4k

    A routing library for AngularJS apps that maps URLs to nested app states and views.

    Best for: Teams maintaining an existing AngularJS 1.x application; Developers who need nested views that follow URL structure

  5. 5

    Zustand

    Open source · MIT · ★ 58.9k

    A small React state-management library built on hooks, with no providers needed.

    Best for: React developers who want simpler shared state than Redux; Apps that need state shared across many components without wrapping them in providers

  6. 6

    nuqs

    Open source · MIT · ★ 10.9k

    A React hook that keeps component state in the URL query string, like useState but in the address bar.

    Best for: React developers building filterable, searchable or paginated pages; Teams using Next.js (app or pages router) who want type-safe search params

  7. 7

    lo

    Open source · MIT · ★ 21.4k

    A Go library of Lodash-style helpers for slices, maps, strings and channels, built on generics.

    Best for: Go developers who often transform slices or maps; Teams wanting type-safe helpers instead of repeated loops

  8. 8

    axum

    Open source · MIT · ★ 27.7k

    A Rust library for routing HTTP requests and writing request handlers, built on Tokio.

    Best for: Rust developers building HTTP APIs or web services; Teams already using the Tokio async runtime

How we pick: tools in the same category that solve the same problem, projects that name each other as alternatives, and open-source projects that describe themselves as an alternative to TanStack Router. We don't take payment for placement.