GitHub pages host only static HTML pages. No server side technology is supported, so Node.js applications won't run on GitHub pages. There are lots of hosting providers, as listed on the Node.js wiki.

If you want to host static pages on GitHub, then read this guide. If you plan on using Jekyll, then this guide will be very helpful.

Answer from Akshat Jiwan Sharma on Stack Overflow
Discussions

Does GitHub Pages support Node.js
So does Github Pages support Node.js and how to add it without any application for coding and terminal? 🤔 More on github.com
🌐 github.com
2
1
February 16, 2022
is it possible to launch my node.js server as a gh pages?
I am working on a cool project, and was wondering if it's possible to run it as a gh pages if I run the node on codespaces (which is possible.) Please let me know! Beta Was this translation helpful? Give feedback. ... The answer is no. GitHub Pages only serves static files (HTML, CSS, JS) and does ... More on github.com
🌐 github.com
3
1
January 17, 2025
Can I host NodeJS webpage on GitHub?
I don't think that you can deploy nodejs applications on github pages. Github pages is mostly meant for simple websites which are mostly static. You can deploy your Nodejs projects on platforms like digital ocean or heroku though. Heroku is your best bet I believe for small scale projects. More on reddit.com
🌐 r/github
6
3
June 14, 2021
Node.js + github pages - Stack Overflow
I am trying to host my node.js file on GitHub pages, But I dont see an option do do that. Is it possible to host node.js files using GitHub pages? Or is there any other other website I can use to h... More on stackoverflow.com
🌐 stackoverflow.com
🌐
npm
npmjs.com › package › node-github-pages
node-github-pages - npm
January 16, 2019 - Easily convert your Node.js project to an HTML document for GitHub Pages.. Latest version: 0.1.1, last published: 7 years ago. Start using node-github-pages in your project by running `npm i node-github-pages`. There are no other projects in the npm registry using node-github-pages.
      » npm install node-github-pages
    
Published   Jan 16, 2019
Version   0.1.1
Author   maro
🌐
GitHub
github.com › nodejs › nodejs.org
GitHub - nodejs/nodejs.org: The Node.js® Website
The Node.js® Website. Contribute to nodejs/nodejs.org development by creating an account on GitHub.
Starred by 6.8K users
Forked by 6.5K users
Languages   TypeScript 46.7% | MDX 30.9% | JavaScript 15.8% | CSS 4.8% | Shell 1.8% | HTML 0.0%
🌐
GitHub
gist.github.com › promto-c › e46ca197f324a2148af919e18c18b5e6
Comprehensive Guides for Deploying React, Node.js, and General Web Applications on GitHub Pages · GitHub
There's no need for a build step for basic HTML/CSS/JS apps. Simply push your code to GitHub. ... Go to your GitHub repository's Settings > Pages. Under 'Source', select the main branch (or the branch where your code resides).
🌐
DEV Community
dev.to › scc33 › deploying-to-github-pages-using-gh-pages-2d95
Deploying to GitHub Pages using gh-pages - DEV Community
October 7, 2023 - The service is commonly used to ... gh-pages is a Node.js package that provides a simple command-line utility for publishing files to a GitHub Pages branch in your repository....
Find elsewhere
🌐
Reddit
reddit.com › r/github › can i host nodejs webpage on github?
r/github on Reddit: Can I host NodeJS webpage on GitHub?
June 14, 2021 -

Hey, I'm a beginner to web development. Learnt very basic HTML and CSS. And checking out some projects but they're mostly written in NoddJS. I'm not really sure how it works but is it possible to host NodeJS project on GitHub? It doesn't have any index.html filefile. I have hosted a few normal html, CSS and js pages using GitHub pages but not sure how to do the same for a simple NodeJS webpage.

🌐
Sevic
sevic.dev › github-pages-hosting-deployment
Hosting static websites on GitHub pages | Željko Šević | Node.js Developer
This post covers instructions for deploying to GitHub pages and domain setup. GitHub Pages GitHub provides a way to host a static website (e…
🌐
npm
npmjs.com › package › gh-pages
gh-pages - npm
Publish to a gh-pages branch on GitHub (or any other branch on any other remote). Latest version: 6.3.0, last published: a year ago. Start using gh-pages in your project by running `npm i gh-pages`. There are 1056 other projects in the npm registry using gh-pages.
      » npm install gh-pages
    
Published   Jan 02, 2025
Version   6.3.0
Author   Tim Schaub
🌐
Medium
medium.com › linagora-engineering › deploying-your-js-app-to-github-pages-the-easy-way-or-not-1ef8c48424b7
Deploying your JS App to Github Pages the easy way (or not) | by Christophe Hamerling | Linagora Engineering | Medium
September 3, 2022 - The Github Pages solution to deploy you static application and have it online on https://YOU.github.io/YOUR_REPO_NAME is something quite easy to setup and widely used: By default, you push something on gh-pagesbranch and 💥, it is available on a Web page. It can be even more powerful if you can just get rid of having checkout branch yourself, remove useless files, commit only the required files, etc… · Since most JS frameworks builds comes by default to the dist/folder and by using the right gitcommands, one can simplify the deployment process.
🌐
CodeBurst
codeburst.io › deploy-react-to-github-pages-to-create-an-amazing-website-42d8b09cd4d
Deploy React to GitHub-Pages to create an amazing website! | by Gurjot Singh Makkar | codeburst
March 1, 2018 - We can also manually create GitHub Pages for any repository by going through the documentation here. But for this post, I am going to use ‘gh-pages’ package which will automatically achieve this goal for me. Node.js is a server runtime environment for running Javascript on the server and ...
🌐
Michael Currin
michaelcurrin.github.io › code-cookbook › recipes › ci-cd › github-actions › workflows › node › gh-pages.html
GitHub Pages deploy | Code Cookbook
Here we build the app with Yarn (or you could use NPM instead) - note that Yarn and Node come standard in the environment. At the end, we commit the output directory to the gh-pages branch. ... name: GH Pages deploy on: push: branches: main paths-ignore: - "**.md" pull_request: branches: main paths-ignore: - "**.md" jobs: build-deploy: runs-on: ubuntu-latest steps: - name: Checkout 🛎️ uses: actions/checkout@master with: persist-credentials: false - name: Install 🔧 run: yarn install - name: Lint 🧐 run: yarn lint:check - name: Build 🏗️ run: yarn build env: NODE_ENV: production - name: Deploy to GH Pages 🚀 if: ${{ github.event_name != 'pull_request' }} uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: dist
🌐
Hexo
hexo.io › docs › github-pages
GitHub Pages | Hexo
3 days ago - Check what version of Node.js you are using on your local machine with node --version. Make a note of the major version (e.g., v20.y.z) In your GitHub repo’s setting, navigate to Settings > Pages > Source.
🌐
GitHub
github.com › nodejs
Node.js · GitHub
There was an error while loading. Please reload this page. nodejs/docker-node’s past year of commit activity · Dockerfile 8,521 MIT 1,989 133 (1 issue needs help) 22 Updated ... Infra for serving Node.js downloads and documentation.
🌐
Sean Coughlin
blog.seancoughlin.me › deploying-to-github-pages-using-gh-pages
Deploying to GitHub Pages using gh-pages
October 7, 2023 - The service is commonly used to ... gh-pages is a Node.js package that provides a simple command-line utility for publishing files to a GitHub Pages branch in your repository....
🌐
GitHub
github.com › expressjs › expressjs.com
GitHub - expressjs/expressjs.com: The Express.js Website · GitHub
Bundler will look in the Gemfile for which gems to install. The github-pages gem includes the same version of Jekyll and other dependencies as used by GitHub Pages, so that your local setup mirrors GitHub Pages as closely as possible.
Starred by 5.3K users
Forked by 2.1K users
Languages   CSS 47.1% | HTML 34.2% | JavaScript 16.8%
🌐
GitHub
github.com › nodejs › node
GitHub - nodejs/node: Node.js JavaScript runtime ✨🐢🚀✨
January 27, 2026 - Node.js JavaScript runtime ✨🐢🚀✨. Contribute to nodejs/node development by creating an account on GitHub.
Starred by 116K users
Forked by 35.2K users
Languages   JavaScript 62.4% | C++ 23.3% | Python 10.1% | C 2.6% | HTML 0.6% | Shell 0.5%