# remix-run/history

Manage session history with JavaScript

Repository: https://github.com/remix-run/history
Canonical: https://ross.abutalabs.com/products/history
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2024-07-07T03:25:42+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": 4064, "days_push": 787, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 8302, forks 952 (observed 2026-08-28T04:10:20.217510+00:00)

## What it is
A JavaScript library that provides a unified API for managing session history across different environments (browser, memory, hash). It abstracts the history stack, navigation, and state persistence, and powers React Router v4-v6.

## Use cases
- manage browser history stack in a SPA
- navigate programmatically without page reloads
- persist state across history entries
- use history in non-DOM environments like tests or React Native
- build a custom router on top of a history abstraction

## When to choose
- you need a low-level history abstraction for a custom router or framework
- you're using React Router v4-v6 and need direct history access
- you need consistent history behavior across browser, memory, and hash environments

## When to avoid
- you're building a simple app where the framework's built-in routing suffices
- you're using React Router v7+, which no longer depends on this library
- you only need basic window.history manipulation without abstraction

## Facets
- artifact type: library
- maturity: stable
- function: state-management, routing
- domain: web-development, frontend, developer-tools
- platform: browser, cross-platform
- tags: session-history, history-stack, react-router, navigation, javascript, nodejs

## Member repositories
- remix-run/history (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:20.217510+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:28:04.494125+00:00, confidence not recorded.
  - readme: https://github.com/remix-run/history (fetched 2026-08-28T04:10:20.217510+00:00, sha 399f946c0f0c)
  - registry_npm: https://registry.npmjs.org/history (fetched 2026-08-29T08:27:59.192784+00:00, sha f25c9f537008)
- Data as of 2026-08-30T08:39:29.467469+00:00.
