The best UI-Router alternatives
4 tools that do a similar job to UI-Router, 4 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
UI-RouterA routing library for AngularJS apps that maps URLs to nested app states and views.
- 1

TanStack Router
Open source · MIT · ★ 15.3k
A type-safe router for React and other web UIs, with an optional full-stack framework built on it.
Best for: React developers who want type-checked routes and URL parameters; Teams building single-page apps that need schema-validated search params
- 2

XState
Open source · MIT · ★ 30.4k
A JavaScript/TypeScript library for managing app and workflow logic with state machines and actors.
Best for: Frontend developers managing complex UI flows with many interacting states; Teams modeling multi-step workflows or processes in backend code
- 3

Immer
Open source · MIT · ★ 29k
A JavaScript library that lets you update immutable state by writing ordinary mutating code.
Best for: JavaScript developers who find hand-written immutable updates verbose or error-prone; Teams managing nested state in Redux-style reducers
- 4

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 UI-Router. We don't take payment for placement.