# mtrpcic/pathjs

Simple, lightweight routing for web browsers

Repository: https://github.com/mtrpcic/pathjs
Canonical: https://ross.abutalabs.com/products/pathjs
Language: JavaScript
License Family: other
Last push: 2017-02-26T13:56:11+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5684, "days_push": 3475, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1095, forks 175 (observed 2026-08-28T04:03:34.159816+00:00)

## What it is
PathJS is a lightweight, dependency-free JavaScript library for client-side routing in single page applications, supporting both hashbang routes and HTML5 pushState. It offers parameterized and dynamic routes, root routes, rescue methods, and enter callbacks with graceful degradation across older browsers.

## Use cases
- build a single page application with hash-based routing
- handle client-side routes without a heavy framework
- use HTML5 pushState routing in vanilla JavaScript
- define parameterized routes like #/users/:id
- add a fallback rescue route for unmatched URLs
- run route enter callbacks for page transitions

## When to choose
- you need a tiny, framework-agnostic client-side router for a simple SPA
- you must support legacy browsers with graceful degradation
- you want hashbang or pushState routing without any dependencies

## When to avoid
- you are using a modern framework like React, Vue, or Angular that ships its own router
- you need actively maintained software with a license file and recent releases
- you need server-side routing or SSR

## Facets
- artifact type: library
- maturity: abandoned
- function: routing, web-framework
- domain: web-development, frontend
- platform: browser
- tags: client-side-routing, single-page-applications, hashbang, pushstate, vanilla-javascript

## Member repositories
- mtrpcic/pathjs (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:34.159816+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-30T06:47:16.557976+00:00, confidence not recorded.
  - readme: https://github.com/mtrpcic/pathjs (fetched 2026-08-28T04:03:34.159816+00:00, sha 3e5ee7afcd39)
  - registry_npm: https://registry.npmjs.org/pathjs (fetched 2026-08-29T12:50:18.545062+00:00, sha 39fb9fecdf3d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
