🍿 5 min. read

Top Gatsby Plugins For Developer Blogs

Monica Powell

I've published dozens of articles on this site, which was built using Gatsby. In the past year I decided to invest more time into maintaining my blog and want to share the top plugins I recommend to enhance your Gatsby blog. Gatsby has a vast library of plugins which are Node packages that are designed to work with Gatsby APIs to extend the functionality of Gatsby sites.

I was motivated to invest more in maintaining my site because as a creator on the web it's important to have a place that you have full control over that houses all of your content. More and more developers are migrating back to self-hosting their blogs and thus retaining greater autonomy and ownership over their content.

I encourage all developers who choose to blog and have the time/resources to not only maintain their blog but to consider cross-posting to sites like dev.to. If you're just getting started with syndicating content check out this piece by Stephanie Morillo on How Blog Post Syndication Works.

  1. gatsby-plugin-google-analytics

One of the features I appreciate from Medium is that they provide content authors with access to analytics for content that they post. This information can be helpful when tracking which content resonates more with your audience and get a better gauge on how people are finding your site. If you would like access to metrics like page views, average session duration, etc. then you need to pro-actively install analytics as data usually cannot be collected retroactively. If you are interested in using Google Analytics in particular then you should check out gatsby-plugin-google-analytics.

Alternative: Adding a hit counter to your site

  1. gatsby-plugin-react-helmet

Speaking of using gatsby-plugin-google-analytics or a hit counter to learn more about your site's traffic, an essential part of creating discoverable web content is optimizing for SEO. The gatsby-plugin-react-helmet is built on-top of react-helmet to support server-side rendered SEO. It allows you to configure a site title, description, and other metadata. Updating metadata is essential to providing visually striking previews of content when content is shared on Twitter, Facebook, Slack, text messages and more!

Also, if your experience is anything like mine then debugging metadata images is sometimes an adventure and you may need to use tools like the Twitter card validator and the Facebook sharing debugger to debug image previews.

  1. gatsby-plugin-my-social-cards

One way to make your blog stand out more is to have custom images for each blog post vs. a generic-site wide image. Manually creating new images for each blog post can be time-consuming and depending on your strategy is not necessary. I ended up installing gatsby-plugin-my-social-cards to generate custom images for each blog post.

In my case I have a base image that looks like: base image

and then for each article that I post I use gatsby-plugin-my-social-cards to generate an image that combines my base image with the title of the article resulting in something that looks like:

example image preview that would appear on twitter

  1. gatsby-remark-twitter

If you want to embed relevant tweets like the ones that appear throughout this article into markdown content on your site then check out the gatsby-remark-twitter plugin.

  1. gatsby-remark-prismjs

If the audience for your blog is developers then there's a good chance that some of your articles will feature code snippets. If so, gatsby-remark-prismsjs as an extension of PrismJS allows you to set up and style language-specific code syntax highlighting.

Example snippet with PrismJS syntax highlighting:

1export function formatReadingTime(minutes) {
2 let buckets = Math.round(minutes / 5)
4 return `${new Array(buckets || 1).fill("🍿").join("")} ${minutes} min read`
  1. gatsby-remark-autolink-headers

gatsby-remark-autolink-headers allows you to automatically add anchor tags to all article headers. This allows these headers to be linkable similar to how Markdown files render on Github.com by default. This autolink functionality is helpful for allowing people to share links to particular sections of your article and helps make the process of creating table of contents more efficient.

These are 6 of the Gatsby plugins I've found essential to enhancing my Gatsby blog and providing it with better SEO and a richer experience for my audience. The next time I set up a blog using Gatsby I'd consider installing all of these plugins depending on the particular needs of the site.

This article was published on April 19, 2020.

Don't be a stranger! 👋🏾

Thanks for reading "Top Gatsby Plugins For Developer Blogs". Join my mailing list to be the first to receive my newest web development content, my thoughts on the web and learn about exclusive opportunities.


    I won’t send you spam. Unsubscribe at any time.


    • Marcel Hauri
    • Radim Velčovský
    • Arthur Denner 🇧🇷 ➡️ 🇸🇪
    • ~/αhmєd
    • Women Who Code Boulder | Denver
    • takumontakumon
    • Nachiket Kumar
    • Ryan Craig Martin
    • K.A.T - 20
    • ElegantStack
    • Matías Hernández Arellano
    • Adolfo Reyes
    • Hashim of Swords ⚔️
    • Kevin
    • Jonathan Mancilla
    • Naveen DA
    • Sissi Adamski
    • Zubair Aziz
    • Ojk
    • Jorge Nocedal
    • Nicole Zonnenberg - Black Lives Matter
    • Carolyn Shannon
    • Aman Mittal ⚛️☕🖖 loves @Expo
    • ネコビト aka DaCat
    • Shubhojyoti
    • Mar Code
    • Max Stoiber 🐟
    • René-Jean Corneille
    • Gatsby
    • Mike
    • Shareloc Holmes
    • adedaniel 💯
    • Ruby on Wills 🐺
    • Nick Lewis | Content | Code | Photography
    • Jacob Herper
    • JC
    • Edidiong Asikpo
    • TechBadGuy
    • tabitha
    • Your Play Cousin
    • +7