Navigo is a small dependency-free JavaScript router for client-side web applications. It maps URL routes to JavaScript functions, making it useful for single-page applications and lightweight frontend projects. The router is based on the History API, so it can update the page URL without a full reload. It also supports hash-based routing for projects that need simpler deployment or legacy compatibility. Navigo includes parameterized routes, navigation helpers, lifecycle hooks, not-found handling, default handlers, and easy integration with links through a data attribute. It is a strong fit for developers who want routing behavior without adopting a large frontend framework.
Features
- Dependency-free JavaScript routing
- History API support
- Hash routing support
- Parameterized route matching
- Before, after, leave, and already hooks
- Not-found and default handlers
