universal-router: Detailed Overview & Metrics

v9.2.0(12 months ago)

This package is actively maintained.Types definitions are bundled with the npm packageNumber of direct dependencies: 1Monthly npm downloads

Universal Router is a JavaScript library for handling routing in web applications, providing a simple and flexible way to define and manage routes. It can be used in both client-side and server-side environments, making it ideal for universal (isomorphic) applications. Universal Router supports dynamic route matching, route parameters, nested routes, and route transitions.

Compared to other routing libraries like React Router or Vue Router, Universal Router is lightweight, framework-agnostic, and focused solely on routing functionality. It offers a minimal API surface and is easy to integrate with any JavaScript framework or library.

Alternatives:
react-router+
vue-router+
@reach/router+
wouter+
navigo+
svelte-navigator+
page.js+
director+
curi+
tiny-router+

Tags: javascriptroutingwebclient-sideserver-side