{"adoption": {"forks": 565, "observed_at": "2026-08-28T04:08:32.896233+00:00", "stars": 4036}, "canonical_url": "https://ross.abutalabs.com/products/spa-github-pages", "card": {"archived": false, "artifact_type": "learning-resource", "description": "Host single page apps with GitHub Pages", "domain": ["web-development", "frontend", "developer-tools"], "enriched": true, "function": ["routing", "deployment", "web-framework"], "health_score": 20, "homepage": "https://spa-github-pages.rafgraph.dev", "language": "TypeScript", "license": "MIT", "license_family": "permissive", "maturity": "maintenance", "member_repos": ["rafgraph/spa-github-pages"], "name": "rafgraph/spa-github-pages", "platform": ["browser", "cross-platform"], "pushed_at": "2022-11-12T13:37:03+00:00", "repo": "rafgraph/spa-github-pages", "stars": 4036, "tags": ["github-pages", "spa", "static-hosting", "client-side-routing", "404-redirect", "boilerplate", "web-server"], "topics": [], "urls": [], "use_cases": ["deploy a react router spa on github pages", "fix 404 errors on page refresh for frontend routes", "host single page app with client-side routing on github pages", "support deep links in a static site on github pages", "serve index.html for all routes on github pages"], "what_it_is": "A lightweight boilerplate solution for hosting single page apps on GitHub Pages, which doesn't natively support client-side routing. It uses a custom 404.html redirect trick to convert frontend routes into query strings so deep links load correctly.", "when_to_avoid": ["you can use a host with native SPA fallback support like Netlify or Vercel", "your site is server-rendered or uses hash-based routing", "you need server-side logic or custom headers"], "when_to_choose": ["you're hosting a SPA on GitHub Pages and need BrowserRouter-style routing to work on fresh page loads", "you want a zero-dependency, copy-paste fix rather than a build tool or server"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/spa-github-pages", "repo": "rafgraph/spa-github-pages", "role": "main", "score": 32}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:08:32.896233+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T08:31:27.564627+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0f46139e48f5c36a82dc509fdfc66d7f33c9312109899d5f5a46cdff6edcda4e", "fetched_at": "2026-08-28T04:08:32.896233+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rafgraph/spa-github-pages"}, {"content_hash": "35c384f3c6dae6a3124bb47fcf5ee12607834a6cf59cc081a317a9c976a88594", "fetched_at": "2026-08-29T09:16:39.507928+00:00", "kind": "homepage", "missing": false, "url": "https://spa-github-pages.rafgraph.dev"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:08:32.896233+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T08:31:27.564627+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0f46139e48f5c36a82dc509fdfc66d7f33c9312109899d5f5a46cdff6edcda4e", "fetched_at": "2026-08-28T04:08:32.896233+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rafgraph/spa-github-pages"}, {"content_hash": "35c384f3c6dae6a3124bb47fcf5ee12607834a6cf59cc081a317a9c976a88594", "fetched_at": "2026-08-29T09:16:39.507928+00:00", "kind": "homepage", "missing": false, "url": "https://spa-github-pages.rafgraph.dev"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T08:31:27.564627+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0f46139e48f5c36a82dc509fdfc66d7f33c9312109899d5f5a46cdff6edcda4e", "fetched_at": "2026-08-28T04:08:32.896233+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rafgraph/spa-github-pages"}, {"content_hash": "35c384f3c6dae6a3124bb47fcf5ee12607834a6cf59cc081a317a9c976a88594", "fetched_at": "2026-08-29T09:16:39.507928+00:00", "kind": "homepage", "missing": false, "url": "https://spa-github-pages.rafgraph.dev"}], "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:08:32.896233+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:08:32.896233+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:08:32.896233+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T08:31:27.564627+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0f46139e48f5c36a82dc509fdfc66d7f33c9312109899d5f5a46cdff6edcda4e", "fetched_at": "2026-08-28T04:08:32.896233+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rafgraph/spa-github-pages"}, {"content_hash": "35c384f3c6dae6a3124bb47fcf5ee12607834a6cf59cc081a317a9c976a88594", "fetched_at": "2026-08-29T09:16:39.507928+00:00", "kind": "homepage", "missing": false, "url": "https://spa-github-pages.rafgraph.dev"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:08:32.896233+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:08:32.896233+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T08:31:27.564627+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0f46139e48f5c36a82dc509fdfc66d7f33c9312109899d5f5a46cdff6edcda4e", "fetched_at": "2026-08-28T04:08:32.896233+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rafgraph/spa-github-pages"}, {"content_hash": "35c384f3c6dae6a3124bb47fcf5ee12607834a6cf59cc081a317a9c976a88594", "fetched_at": "2026-08-29T09:16:39.507928+00:00", "kind": "homepage", "missing": false, "url": "https://spa-github-pages.rafgraph.dev"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:08:32.896233+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:08:32.896233+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:08:32.896233+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T08:31:27.564627+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0f46139e48f5c36a82dc509fdfc66d7f33c9312109899d5f5a46cdff6edcda4e", "fetched_at": "2026-08-28T04:08:32.896233+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rafgraph/spa-github-pages"}, {"content_hash": "35c384f3c6dae6a3124bb47fcf5ee12607834a6cf59cc081a317a9c976a88594", "fetched_at": "2026-08-29T09:16:39.507928+00:00", "kind": "homepage", "missing": false, "url": "https://spa-github-pages.rafgraph.dev"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:08:32.896233+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:08:32.896233+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T08:31:27.564627+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0f46139e48f5c36a82dc509fdfc66d7f33c9312109899d5f5a46cdff6edcda4e", "fetched_at": "2026-08-28T04:08:32.896233+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rafgraph/spa-github-pages"}, {"content_hash": "35c384f3c6dae6a3124bb47fcf5ee12607834a6cf59cc081a317a9c976a88594", "fetched_at": "2026-08-29T09:16:39.507928+00:00", "kind": "homepage", "missing": false, "url": "https://spa-github-pages.rafgraph.dev"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T08:31:27.564627+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0f46139e48f5c36a82dc509fdfc66d7f33c9312109899d5f5a46cdff6edcda4e", "fetched_at": "2026-08-28T04:08:32.896233+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rafgraph/spa-github-pages"}, {"content_hash": "35c384f3c6dae6a3124bb47fcf5ee12607834a6cf59cc081a317a9c976a88594", "fetched_at": "2026-08-29T09:16:39.507928+00:00", "kind": "homepage", "missing": false, "url": "https://spa-github-pages.rafgraph.dev"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T08:31:27.564627+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0f46139e48f5c36a82dc509fdfc66d7f33c9312109899d5f5a46cdff6edcda4e", "fetched_at": "2026-08-28T04:08:32.896233+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rafgraph/spa-github-pages"}, {"content_hash": "35c384f3c6dae6a3124bb47fcf5ee12607834a6cf59cc081a317a9c976a88594", "fetched_at": "2026-08-29T09:16:39.507928+00:00", "kind": "homepage", "missing": false, "url": "https://spa-github-pages.rafgraph.dev"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T08:31:27.564627+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0f46139e48f5c36a82dc509fdfc66d7f33c9312109899d5f5a46cdff6edcda4e", "fetched_at": "2026-08-28T04:08:32.896233+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rafgraph/spa-github-pages"}, {"content_hash": "35c384f3c6dae6a3124bb47fcf5ee12607834a6cf59cc081a317a9c976a88594", "fetched_at": "2026-08-29T09:16:39.507928+00:00", "kind": "homepage", "missing": false, "url": "https://spa-github-pages.rafgraph.dev"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 0, "longevity": 100, "rhythm": 35}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": ["no_releases"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 3763, "days_push": 1390, "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}}