# visionmedia/page.js

Micro client-side router inspired by the Express router

Repository: https://github.com/visionmedia/page.js
Canonical: https://ross.abutalabs.com/products/pagejs
Homepage: http://visionmedia.github.com/page.js
Language: JavaScript
License Family: other
Last push: 2023-06-27T15:47:06+00:00

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

## Adoption (not part of the score)
Stars 7678, forks 682 (observed 2026-08-28T04:10:02.356078+00:00)

## What it is
page.js is a tiny Express-inspired client-side router for single-page applications, supporting route parameters, middleware chains, and the HTML5 History API. It is framework-agnostic and can be loaded via npm, CDN, or ES modules.

## Use cases
- add client-side routing to a single-page app
- define routes with URL parameters like /user/:id
- chain middleware-style callbacks on route handlers
- handle 404 routes in a SPA
- build a router without pulling in a full framework

## When to choose
- you want a minimal, dependency-free router for a vanilla JS or framework-agnostic SPA
- you prefer Express-style route definitions and middleware chaining
- you need a tiny router loadable via CDN or script tag

## When to avoid
- you are using React, Vue, or Angular and want a router integrated with the framework's ecosystem
- you need server-side rendering or file-based routing
- you need a project with active development and guaranteed long-term maintenance

## Facets
- artifact type: library
- maturity: maintenance
- function: routing, middleware, web-framework
- domain: web-development, frontend, developer-tools
- platform: browser
- tags: client-side-router, spa, express-inspired, history-api, micro-library, nodejs, javascript

## Member repositories
- visionmedia/page.js (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:02.356078+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-29T17:36:02.799417+00:00, confidence not recorded.
  - readme: https://github.com/visionmedia/page.js (fetched 2026-08-28T04:10:02.356078+00:00, sha 29b1992d9a06)
  - registry_npm: https://registry.npmjs.org/page.js (fetched 2026-08-29T08:31:55.442518+00:00, sha 23cecc152922)
- Data as of 2026-08-30T08:39:29.467469+00:00.
