# MoOx/pjax

Easily enable fast Ajax navigation on any website (using pushState +  xhr)

Repository: https://github.com/MoOx/pjax
Canonical: https://ross.abutalabs.com/products/pjax
Language: JavaScript
License: MIT
License Family: permissive
Topics: ajax, pjax, pjax-request, jquery-pjax, pushstate, navigation
Archived: true
Last push: 2025-05-26T16:41:28+00:00

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

## Adoption (not part of the score)
Stars 1479, forks 117 (observed 2026-08-28T04:04:50.620585+00:00)

## What it is
A standalone vanilla JavaScript module that enables fast AJAX navigation on any website using XMLHttpRequest and pushState, avoiding full page reloads. It swaps page content in place while updating the URL and browser history, with graceful fallback for unsupported browsers.

## Use cases
- make a server-rendered website feel like a single-page app
- avoid full page reloads when navigating between pages
- speed up browsing for users on low-bandwidth connections
- add smooth CSS transitions between page loads
- preserve JS/CSS state across page navigations
- replace jQuery-pjax without a jQuery dependency

## When to choose
- you have a traditional multi-page (server-rendered or static) site and want app-like navigation
- you want a tiny (~6kb) dependency-free solution
- you need multi-container swapping and full history support

## When to avoid
- you are already building an SPA with a frontend framework
- you need SEO-critical dynamic rendering beyond meta updates
- you must support very old browsers without pushState

## Facets
- artifact type: library
- maturity: maintenance
- function: http-client, routing, animation
- domain: web-development, frontend
- platform: browser
- tags: pjax, pushstate, ajax-navigation, vanilla-js, page-transitions, web-server

## Member repositories
- MoOx/pjax (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:50.620585+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-30T04:34:17.203580+00:00, confidence not recorded.
  - readme: https://github.com/MoOx/pjax (fetched 2026-08-28T04:04:50.620585+00:00, sha eee50d7283cf)
  - registry_npm: https://registry.npmjs.org/pjax (fetched 2026-08-29T11:41:26.006285+00:00, sha 5bd80c7a61aa)
- Data as of 2026-08-30T08:39:29.467469+00:00.
