Next.js Discord

Discord Forum

easiest way to add "/blog" to my nextjs project?

Unanswered
Ahmet posted this in #help-forum
Open in Discord
Hey everyone,

I have a website which is built with Next.js (JavaScript), and I want to integrate a simple blog under /blog (e.g., countless.dev/blog/post-title).

I don’t want to build an entire blog system from scratch. I just want a way to make blog posts via an API, ideally something that’s open-source or free, and not a full CMS like WordPress, which requires hosting and setup I don’t want to deal with.

Most solutions I’ve found either:
1. Take over the whole site as a full CMS-based blog.
2. Are paid services instead of something lightweight and free.
3. Require self-hosting like WordPress, or costs $50/month for WP Engine or similar platforms.

It’s surprising that there isn’t a simple open-source blogging tool that can be easily integrated into an existing site.

So, is there any open-source or free tool that lets me add a blog section where I can just post via an API?

Thanks in advance!

4 Replies

just use something like sanity or contentful to create content and use their sdk/api to fetch and render it on your page
Roseate Spoonbill
@Ahmet Look for Headless CMS-es - most of them have free tier and blog examples. Depending on the data volume, you may be able to fit in the free tier.

I'd recommend looking at Flotiq (disclaimer: I work for the company that creates it). Recently, we released a simple blog example with fully typed SDK based on your schema: https://github.com/flotiq/flotiq-nextjs-blog-starter

Contentful is another good choice - it's popular and often mentioned as go-to Headless CMS. Other popular options are Strapi and Sanity. It's worth mentioning, that Strapi is an Open Source with an option to host it on your own, so it may fit your requirements.
Saltwater Crocodile
use strapi as a admin panel or back end, next for front, i have done before
Rose-breasted Grosbeak
Depending on your requirements, markdown/mdx works well enough