r/github 10h ago

Question Free hosting for small dynamic website compatible with github

Hey! I am recently getting into web development and I am wanting to start a blog that I own and can fully customize and build from the ground up. I first was using GitHub because I have some experience using it with other projects and it has pages which is free and built right into the platform. However I have realized that a static website may not have the capabilities that I am wanting.

I am wondering what options are there for hosting. I don't need anything crazy I doubt I will really get any traffic but I want it to be able to be up so I can view whenever and show it to people. And I will be doing all development in GitHub so I don't need really any features besides the bare minimum.

I would prefer something that has the ethical values of open source, transparency, and caution with ai, but beggars can't be choosers.

(Capabilities wanted: conversion of plain text database [containing title body images tags] to blog posts either using prebuilt general formatting or custom formatting for specific post. Search function. As far as I know these capabilities are not available in a static page.)

I assume I got plenty of things wrong in this post, as again, I am new to web development so please educate me in the comments!

5 Upvotes

12 comments sorted by

6

u/Moumos 10h ago

Cloudflare Pages + Workers + D1/KV/R2 in Free-Tier is also with GitHub compatible.

5

u/ARKyal03 10h ago

Static websites can handle database-driven blogs, custom layouts, and search using GitHub Pages, though free server hosting options exist if you prefer a true backend server.

You can also use Vercel/Netlify.

3

u/ImDevinC 10h ago

Check out Hugo. You can write your posts in markdown, store them in GitHub, and have it serve those using GitHub pages.

1

u/repeating_bears 2h ago

My blog uses Hugo, and this is good advice, but I might check out Astro instead for something new

I only use it for Starlight right now (docs built on top of Astro), but it works well for that

2

u/reini_urban 7h ago

Stay with GitHub. You can do dynamic websites there, with Javascript and wasm, even embedded sqlite.

1

u/keyan556 8h ago

jekyle

1

u/MrJacuna 8h ago

You can give sitedropper.com a try. If you're using Claude, Cursor, Codex, or another agent you can connect to it directly and let your LLM take care of the deployment.

You can also just simply upload a ZIP of most web frameworks and it'll get it online for you.

It also has some nice privacy and sharing features so you can keep your projects restricted to specific people, or simply launch it as a public site.

1

u/Poat540 8h ago

Vercel, cloud flare, etc

1

u/hotsince05 8h ago

Use quartz.
See this
https://animishraa05.github.io
Its a static site generator and works very well

1

u/Straight-Date8472 8h ago

Use astro + cloudflare pages

1

u/geralt_noble 2h ago

GitHub Pages can still work here. Keep the site static and add an API for the database/search stuff. What's your planned stack?

1

u/repeating_bears 2h ago

A search function can be done on a static site. You build the search index when you build the site.

Starlight (docs by Astro) offers this out of the box, powered by this https://pagefind.app