@remix-run/router downloads · last 12 months
@remix-run/router provides nested, data-driven routing without requiring a particular UI framework. It matches URLs to route hierarchies and coordinates navigation with route-related data work, addressing the need to keep URL structure, page composition, and loading behavior connected.
Its design centers on framework-agnostic routing primitives, making it relevant to developers building routing integrations as well as those working with the surrounding Remix and React Router ecosystem. The package is not a general-purpose application framework: it supplies routing mechanisms that a framework or application can use to interpret navigation and route data.
Routes can be organized as nested definitions, so a URL can match parent and child routes together. The router’s data APIs support coordinating loaders, actions, and navigation state with matched routes; this gives applications a structured place to handle route data and mutations rather than treating every URL change as an unrelated view switch.
The package is suited to workflows that need routing behavior separate from UI components, including framework integrations and applications built around the Remix routing model. Its framework-agnostic focus can help an integration provide consistent route matching and data-navigation behavior, while the exact UI and rendering layer remains the responsibility of the application or framework.
The supplied package details list version 1.23.4, an MIT license, a 20.4 kB gzip bundle size, and a 2.8 MB unpacked size. These figures describe different aspects of distribution; evaluate the compressed bundle alongside the full installed contents when assessing its cost in a particular build. The package listing also reports 7.8M weekly downloads, 56.6K GitHub stars, 11.0K forks, 243 open issues, and a last-updated date of 2026-10-20.
Because this is a routing layer rather than a complete UI solution, applications still need to decide how matched routes render and how route data is presented. Choose it when its nested, data-driven model fits your integration; for routing needs outside that model, compare the required behavior with a simpler application-level approach before adopting it.
- When defining URL hierarchies with parent and child routes, use nested route definitions so matching reflects the application’s page structure.
- When route changes must coordinate data loading, use the router’s data APIs and loaders to associate data work with matched routes.
- When route mutations should be tied to navigation, use actions within the data-driven routing model rather than managing each mutation as unrelated UI logic.
- When building a framework integration that needs routing independent of a particular UI layer, use @remix-run/router as the routing foundation.
- When adopting the Remix routing model in an application, use its router primitives to connect URL matching, navigation, and route data.
- When comparing routing dependencies, assess the listed 20.4 kB gzip bundle size alongside the 2.8 MB unpacked size and the features your integration uses.
- If your application only needs to switch between a few views without nested URL matching or route data, a small application-level URL-to-view mapping may involve less routing machinery.
- If you need a complete UI framework rather than routing primitives, choose a framework that includes rendering and application-level components; this package does not supply the whole UI layer.
- If your routing model does not use nested routes, route loaders, or route actions, first compare those requirements with a simpler routing approach that avoids unused data-routing concepts.
- If your application expects routing to be tightly coupled to a specific rendering framework, assess that framework’s own routing integration before adopting this framework-agnostic package.
- If the 20.4 kB gzip bundle cost does not fit a strict client bundle budget, measure its actual contribution in your build and consider a lighter routing approach.
- If you need guarantees beyond the supplied package information, such as a particular support policy or compatibility promise, verify those details separately before making it a dependency.
CORRECTIONS
Spot wrong data here?Spot wrong data on this page?
A short note helps us fix it.A short note helps us fix it. We read every one; confirmed fixes ship in the next nightly build.
Anonymous · No account · No email back