{"adoption": {"forks": 151, "observed_at": "2026-08-28T04:05:44.844798+00:00", "stars": 1855}, "canonical_url": "https://ross.abutalabs.com/products/connect-history-api-fallback", "card": {"archived": false, "artifact_type": "library", "description": "Fallback to index.html for applications that are using the HTML 5 history API", "domain": ["web-development", "frontend", "backend"], "enriched": true, "function": ["middleware", "routing", "http-server"], "health_score": 20, "homepage": null, "language": "JavaScript", "license": "MIT", "license_family": "permissive", "maturity": "maintenance", "member_repos": ["bripkens/connect-history-api-fallback"], "name": "bripkens/connect-history-api-fallback", "platform": [], "pushed_at": "2023-10-26T06:55:33+00:00", "repo": "bripkens/connect-history-api-fallback", "stars": 1855, "tags": ["spa", "html5-history-api", "express", "connect", "fallback", "single-page-applications", "nodejs", "web-server"], "topics": [], "urls": [], "use_cases": ["fix 404 on page refresh in a single page app", "serve index.html for deep links with HTML5 history routing", "add history API fallback middleware to Express", "make React Router or Vue Router routes work on direct access", "configure SPA fallback for a dev server", "rewrite non-file GET requests to index.html"], "what_it_is": "A small Node.js middleware for Connect and Express that rewrites requests to an index page (default /index.html) so Single Page Applications using the HTML5 History API don't get 404s on refresh or deep links. It only rewrites GET/HEAD requests that accept text/html and are not direct file requests.", "when_to_avoid": ["your server is nginx, Apache, or another static host with its own try_files/rewrite config", "you need server-side rendering or a full static site generator instead of a fallback", "your app is not a SPA using the HTML5 History API"], "when_to_choose": ["you host a SPA with client-side routing on a Connect or Express server and hit 404s on refresh or direct URL entry", "you need a tiny, configurable middleware with rewrite rules and custom index paths"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/connect-history-api-fallback", "repo": "bripkens/connect-history-api-fallback", "role": "main", "score": 32}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:05:44.844798+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T03:16:43.816931+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9dbc04369b804a5cd6ecdbb110c10568deec07be46983659700f10b9da54568a", "fetched_at": "2026-08-28T04:05:44.844798+00:00", "kind": "readme", "missing": false, "url": "https://github.com/bripkens/connect-history-api-fallback"}, {"content_hash": "9cb0b8be2c86dcca6da8fd2410eab07360662922e4f7e31e6fe0b67f5037eb26", "fetched_at": "2026-08-29T10:55:42.703838+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/connect-history-api-fallback"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:05:44.844798+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T03:16:43.816931+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9dbc04369b804a5cd6ecdbb110c10568deec07be46983659700f10b9da54568a", "fetched_at": "2026-08-28T04:05:44.844798+00:00", "kind": "readme", "missing": false, "url": "https://github.com/bripkens/connect-history-api-fallback"}, {"content_hash": "9cb0b8be2c86dcca6da8fd2410eab07360662922e4f7e31e6fe0b67f5037eb26", "fetched_at": "2026-08-29T10:55:42.703838+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/connect-history-api-fallback"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T03:16:43.816931+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9dbc04369b804a5cd6ecdbb110c10568deec07be46983659700f10b9da54568a", "fetched_at": "2026-08-28T04:05:44.844798+00:00", "kind": "readme", "missing": false, "url": "https://github.com/bripkens/connect-history-api-fallback"}, {"content_hash": "9cb0b8be2c86dcca6da8fd2410eab07360662922e4f7e31e6fe0b67f5037eb26", "fetched_at": "2026-08-29T10:55:42.703838+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/connect-history-api-fallback"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:05:44.844798+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:05:44.844798+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:05:44.844798+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T03:16:43.816931+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9dbc04369b804a5cd6ecdbb110c10568deec07be46983659700f10b9da54568a", "fetched_at": "2026-08-28T04:05:44.844798+00:00", "kind": "readme", "missing": false, "url": "https://github.com/bripkens/connect-history-api-fallback"}, {"content_hash": "9cb0b8be2c86dcca6da8fd2410eab07360662922e4f7e31e6fe0b67f5037eb26", "fetched_at": "2026-08-29T10:55:42.703838+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/connect-history-api-fallback"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:05:44.844798+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:05:44.844798+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T03:16:43.816931+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9dbc04369b804a5cd6ecdbb110c10568deec07be46983659700f10b9da54568a", "fetched_at": "2026-08-28T04:05:44.844798+00:00", "kind": "readme", "missing": false, "url": "https://github.com/bripkens/connect-history-api-fallback"}, {"content_hash": "9cb0b8be2c86dcca6da8fd2410eab07360662922e4f7e31e6fe0b67f5037eb26", "fetched_at": "2026-08-29T10:55:42.703838+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/connect-history-api-fallback"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:05:44.844798+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:05:44.844798+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:05:44.844798+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T03:16:43.816931+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9dbc04369b804a5cd6ecdbb110c10568deec07be46983659700f10b9da54568a", "fetched_at": "2026-08-28T04:05:44.844798+00:00", "kind": "readme", "missing": false, "url": "https://github.com/bripkens/connect-history-api-fallback"}, {"content_hash": "9cb0b8be2c86dcca6da8fd2410eab07360662922e4f7e31e6fe0b67f5037eb26", "fetched_at": "2026-08-29T10:55:42.703838+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/connect-history-api-fallback"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:05:44.844798+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:05:44.844798+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T03:16:43.816931+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9dbc04369b804a5cd6ecdbb110c10568deec07be46983659700f10b9da54568a", "fetched_at": "2026-08-28T04:05:44.844798+00:00", "kind": "readme", "missing": false, "url": "https://github.com/bripkens/connect-history-api-fallback"}, {"content_hash": "9cb0b8be2c86dcca6da8fd2410eab07360662922e4f7e31e6fe0b67f5037eb26", "fetched_at": "2026-08-29T10:55:42.703838+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/connect-history-api-fallback"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T03:16:43.816931+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9dbc04369b804a5cd6ecdbb110c10568deec07be46983659700f10b9da54568a", "fetched_at": "2026-08-28T04:05:44.844798+00:00", "kind": "readme", "missing": false, "url": "https://github.com/bripkens/connect-history-api-fallback"}, {"content_hash": "9cb0b8be2c86dcca6da8fd2410eab07360662922e4f7e31e6fe0b67f5037eb26", "fetched_at": "2026-08-29T10:55:42.703838+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/connect-history-api-fallback"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T03:16:43.816931+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9dbc04369b804a5cd6ecdbb110c10568deec07be46983659700f10b9da54568a", "fetched_at": "2026-08-28T04:05:44.844798+00:00", "kind": "readme", "missing": false, "url": "https://github.com/bripkens/connect-history-api-fallback"}, {"content_hash": "9cb0b8be2c86dcca6da8fd2410eab07360662922e4f7e31e6fe0b67f5037eb26", "fetched_at": "2026-08-29T10:55:42.703838+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/connect-history-api-fallback"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T03:16:43.816931+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9dbc04369b804a5cd6ecdbb110c10568deec07be46983659700f10b9da54568a", "fetched_at": "2026-08-28T04:05:44.844798+00:00", "kind": "readme", "missing": false, "url": "https://github.com/bripkens/connect-history-api-fallback"}, {"content_hash": "9cb0b8be2c86dcca6da8fd2410eab07360662922e4f7e31e6fe0b67f5037eb26", "fetched_at": "2026-08-29T10:55:42.703838+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/connect-history-api-fallback"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 0, "longevity": 100, "rhythm": 35}, "computed_at": "2026-09-02T17:46:02.011165+00:00", "flags": ["no_releases"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 4855, "days_push": 1042, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 32, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}