Skip to content
r.

spa-github-pages

rafgraph/spa-github-pages · Public GitHub repository

Host single page apps with GitHub Pages

Open project in RepoShelf

Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

spa-github-pages live demo screenshot
Captured from the live demo · 2026-10-31

About this project

Author-written excerpt from the project README.

This is a lightweight solution for deploying single page apps with GitHub Pages. You can easily deploy a React single page app with React Router , like the one in the demo app, or a single page app built with any frontend library or framework.

GitHub Pages doesn't natively support single page apps. When there is a fresh page load for a url like example.tld/foo, where /foo is a frontend route, the GitHub Pages server returns 404 because it knows nothing of /foo.

Requirements and intended audience

This is a lightweight solution for deploying single page apps with GitHub Pages. You can easily deploy a React single page app with React Router , like the one in the demo app, or a single page app built with any frontend library or framework.

Not recorded: account, external api key, paid service, self-hosting. Missing information does not mean there are no requirements.

Statements extracted from the author’s documentation · Checked 2026-10-31. Source: https://github.com/rafgraph/spa-github-pages/blob/gh-pages/README.md

Recorded maintenance information

Last recorded source update: 2022-11-12. A published release has not been recorded. These dates do not guarantee ongoing maintenance.

Technologies
React
Licence
MIT. Generally permits modification and commercial use, subject to the licence’s notices and conditions.
Demo check
A public page loaded on 2026-11-20. This does not test every feature.

Browse related categories