How I constructed my Site with NextJs, Chakra UI, and GraphCMS?



Having a own website has many benefits above working with a third-party platform, these types of as entire management over your facts, customizations, additional approaches to monetize, and so on. A short while ago I crafted my blog (web with NextJs, Chakra UI, and GraphCMS and manufactured it stay a couple of times again. In this article, I will clarify how I designed it, what systems I used and why, what I learned though executing so, and the challenges I encountered.

There are many platforms out there for producing a own weblog, but I made mine from the floor up to place my competencies into practice and have an understanding of what it truly is like to manage everything.

Let’s get started out

Ahead of we start off

  • Code is Open up Resource – GitHub repo (Star⭐ it)
  • I will soon compose a action-by-action guidebook to host your very own instance of this blog site. (Recommendations in repo README are not for manufacturing)
  • How about looking at this report on my site, so that you try it out 👀?

Equipment, services, technologies, frameworks, and libraries

Why I utilized these technologies over their alternate options?

Why NextJs?

I did not just decide NextJs because I’m familiar with ReactJs. Having said that, NextJs is a best framework for generating these kinds of internet websites.


  • Crafted-in pre-rendering: This improves your Search engine optimization and speeds up your web-site.
  • File-based routing: No a lot more messing up with routes.
  • API routes: Carry out standard backend functionality devoid of the require for a separate backend.

There are a good deal additional rewards but these three are more than enough to come to a decision.

Why Chakra UI?

Feel me, if you adore React you will really like Chakra-UI. It reduces a large amount of CSS operate.

Good reasons:

  • Element-centered styling.
  • Super effortless to create light-weight and dim UI.
  • The factors will deal with all factors of accessibility.
  • Elements are entirely customizable.

Why GraphCMS?

Once more if you appreciate QraphQL you will enjoy GraphCMS. It really is ideal for a weblog.


  • Bought so a lot of characteristics that you would not locate nearly anything missing.
  • Straightforward to regulate content with lovely UI.
  • Extensions.

Why Giscus?

In circumstance you didn’t know, Giscus is a GitHub Conversations-driven comment program. We all know how highly effective GitHub discussions are, so why not apply that ability to the comment system?


  • 100% cost-free and Open up Resource.
  • No adverts and no monitoring.
  • Use all attributes of GitHub Conversations.

Consider out by leaving a remark on this posting.

Why BeyondWords?

I investigated a great deal to increase audio content to my weblog. BeyondWords was the perfect suit for me.


  • Generous totally free strategy.
  • Large amount of voices.
  • Converts article content to audio flawlessly 💯.

Why Vercel?

NextJs + Vercel = 💪


  • Blazing quickly.
  • Realtime advancement
  • Built-in lighthouse score

Why Google Analytics and Google AdSense?

I like the Google ecosystem. They assist you increase your web page and recognize your viewers far better.

How I prepared and created my weblog

Branding and Website positioning

These are the resources I used for branding and Search engine optimization:

  • Colorhunt: 6 hues have been selected, just one of which currently being the topic coloration (#7868E6).
  • Fonts:
    • Google Fonts: Poppins for the system of the web site.
    • Alliance No 2 for headings. (This typeface is just not obtainable in Google Fonts, so I experienced to get it someplace else.)
  • Canva – For all the styles like logos, open graph visuals, and deal with illustrations or photos.
  • Favicon generator – Utilised this to crank out favicons for all screen resolutions.
  • Webcode – Employed this to crank out meta tags, open graph tags, and Twitter card tags.

All the webpages except the house web page assist Prosperous Benefits which boosts Search engine marketing.


I created a tough layout in Figma and took inspiration from distinctive weblog sites and dribbble.

Let us see distinctive pages

This blog site is made up of 8 key internet pages.

itsrakesh-blog home page

The Home web site has one featured posting, 4 classes, three most latest posts, and 4 most recent snippets. All internet pages include things like a central search solution on the navbar that allows you to search for nearly anything. There will also be a research site wherever you might lookup for precise objects these as articles or blog posts, snippets, classes, or tags.

itsrakesh-blog articles page

The Articles or blog posts website page is for exploring and exploring article content. Each article card consists of a featured picture, the day it was printed, browse time, a header, an excerpt, and tags. Clicking on the featured image or headline will get you to the relevant short article. This page at this time only displays 12 latest articles or blog posts pagination will be additional shortly. To locate content articles, benefit from the classified lookup possibility.

itsrakesh-blog snippets page

Snippets are not code-snippets, but somewhat mini-blogs. The Snippets website page is wherever you may possibly look through and research for snippets. Each individual snippet card only consists of the snippet’s title. This page’s search selection returns snippet final results.

itsrakesh-blog categories page

Each individual write-up belongs to a solitary class. All of the groups are shown on the Categories web site. When you click on a category, it will screen a listing of all content that slide underneath that class, with the success displayed on the article content web page. You may possibly also use that website page look for characteristic to appear for types.

itsrakesh-blog tags page

Very similar to the classes web page, the Tags site lists all of the tags. Just about every short article can have one particular or a lot more tags. When you simply click on a tag, it will convey up a checklist of all the articles that have that tag. You can appear up accessible tags in the search characteristic.

itsrakesh-blog article page

The Write-up site incorporates the precise article. I utilised respond-markdown npm offer to render markdown. It can be an astounding resource, supports remark plugins, and safely and securely converts markdown to HTML. You can also compose GitHub-flavoured markdown. I will before long insert embeds assistance.
This page consists of breadcrumb, past-up-to-date date, read through-time, highlighted picture, released date, writer photograph, and identify, audio post, report information, discussion/comment portion and two recommended articles or blog posts.

itsrakesh-blog snippet page

The Snippet page is the same as the post page, but it excludes the showcased impression and audio post.

itsrakesh-blog support me page

Eventually, you can find the Support Me site. This webpage lists all of the methods you can support my operate. I take donations applying Ko-fi. I compared ko-fi to BuyMeACoffee and chose ko-fi for two primary reasons: 1. No service fees and 2. Paypal guidance.
Regardless of what content I produce, it would be absolutely nothing with no your help ❤️. I need to have your assist to retain my site jogging and hold developing articles, so any sort of support will be significantly appreciated :). I also planned a exclusive site for all my supporters.

What I learned?

I want to point out that most of the frameworks, applications, and many others used in setting up this blog site are my very first makes an attempt. This project taught me NextJs, Chakra UI, and GraphQl. I also realized a whole lot about Website positioning, PWA, and accessibility.


Your comments is extra important than you can envision. Be sure to share your ideas in the remarks.

You could be intrigued:

Abide by for much more like this each week 🚀.

Thank you for reading through!

Leave a Reply

Your email address will not be published.