# krasimir/navigo

A simple vanilla JavaScript router.

Repository: https://github.com/krasimir/navigo
Canonical: https://ross.abutalabs.com/products/navigo
Language: TypeScript
License: MIT
License Family: permissive
Topics: router, javascript, history
Last push: 2023-08-04T08:49:48+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3971, "days_push": 1125, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2829, forks 243 (observed 2026-08-28T04:07:24.275329+00:00)

## What it is
Navigo is a simple, dependency-free vanilla JavaScript router for single-page applications, built on the History API with hash-based routing support. It offers parameterized routes, navigation hooks, and easy integration with HTML links via a data attribute.

## Use cases
- add client-side routing to a vanilla JS single-page app
- map URL routes to handler functions without a framework
- support parameterized routes like /user/:id
- handle hash-based routing in a static site
- run before/after/leave hooks on route changes
- intercept anchor links with data-navigo for SPA navigation

## When to choose
- you need a tiny (~4KB gzipped) dependency-free router
- you're building a vanilla JS or lightweight SPA without React/Vue/Angular
- you want both History API and hash-based routing
- you need simple route hooks and a not-found handler

## When to avoid
- you're using React and want an idiomatic router (consider navigo-react or React Router)
- you need advanced features like nested routes, route guards, or SSR
- you want a heavily maintained project with frequent updates

## Facets
- artifact type: library
- maturity: maintenance
- function: routing, web-framework
- domain: web-development, frontend
- platform: browser
- tags: vanilla-javascript, history-api, hash-routing, spa-router, dependency-free, nodejs

## Member repositories
- krasimir/navigo (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:24.275329+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:48:41.121234+00:00, confidence not recorded.
  - readme: https://github.com/krasimir/navigo (fetched 2026-08-28T04:07:24.275329+00:00, sha 094db0db4b5c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
