DEV Community

Mohamed Ibrahim
Mohamed Ibrahim

Posted on

💭 What's the Best Tech Stack for a Markdown-Based Programming Blog?

Hi everyone 👋

I'm planning to build my own programming blog, and I’d love to get your input!

Here’s what I’m aiming for:

✅ The content will be written fully in Markdown
✅ I don’t want to use any database
✅ I want full control over customization — so I’m not looking to use WordPress, Ghost, or similar platforms
✅ I prefer building things from scratch or at least with lightweight frameworks/libraries

Basically, I want a developer-focused blog that I can style and structure completely my way.

So my question is:

Which tech stack would you recommend for this kind of setup?

& How to best organize and parse Markdown content?

Right now I’m thinking of using Next.js with some Markdown libraries like gray-matter and remark to parse the posts. It seems like a solid setup using getStaticProps for static generation.

But I’m wondering...

👉 Is there a better or more lightweight option for this use case?
Maybe something like Astro, Eleventy, or even something more minimal?

Thanks in advance for any thoughts or experiences you can share!

Top comments (2)

Collapse
 
pengeszikra profile image
Peter Vivo • Edited

My hidden gem (markdown viewer) in this code: dev.to/pengeszikra/javascript-grea... maybe a good starting point for a really lightweight markdown solution. That is don't hold any dependency expect Tailwind - and that is also can removable.

But need to be create a compact sysntax highlight system for each language.

At long markdown code with lot of ( maybe different language - HTML, js, ts, css, regexp .... ) the syntaxh highlighting process will be time consuming, so I think some rust -> webassembly webworker will be the fastes solution.

Here is the source:
github.com/Pengeszikra/flogon-gala...
github.com/Pengeszikra/flogon-gala...
github.com/Pengeszikra/flogon-gala...

Collapse
 
moibra profile image
Mohamed Ibrahim

Thank you ❤️