Director is a routing library for JavaScript that handles URL and command-line pattern matching across client-side, server-side, and CLI environments. It provides a unified approach to defining routes as nested object literals, where each key maps to a URL segment and its handler, supporting both hash fragment monitoring and the HTML5 History API for browser navigation without page reloads. The library distinguishes itself through its ability to operate in multiple contexts with a single routing paradigm. It supports asynchronous handler queue execution for sequential tasks like authenticatio
JavaScript Routes
Wouter is a minimalist client-side routing library for React and Preact. It uses a hook-based system to map URL paths to components, managing navigation and URL state without requiring a mandatory provider. The library is designed for cross-ecosystem compatibility between React and Preact and supports server-side rendering by accepting initial paths and search strings during markup generation. It includes a URL parameter manager for extracting dynamic path segments and query strings from the browser address bar. Capabilities include hierarchical nested routing, programmatic navigation manage
Simple, lightweight routing for web browsers
A navigation aid (aka, router) for the browser in 850 bytes~!
The main features of lukeed/navaid are: Routers and URL Utils, Routing, Routing Libraries.
Open-source alternatives to lukeed/navaid include: flatiron/director — Director is a routing library for JavaScript that handles URL and command-line pattern matching across client-side,… mtrpcic/pathjs — Simple, lightweight routing for web browsers. millermedeiros/crossroads.js — JavaScript Routes. olivernn/davis.js — RESTful degradable JavaScript routing using pushState. molefrog/wouter — Wouter is a minimalist client-side routing library for React and Preact. It uses a hook-based system to map URL paths… tanstack/router — TanStack Router is a type-safe routing library for web applications that provides full type safety for paths, search…