How was August for all of you? It's been rainy here in Mumbai. Like really rainy. But let's not digress cause it's time for the Gatsby Gazette!
This month's Gazette features our work on materialization, a healthier Gatsby repo with improved community engagement, some accessibility wins, better webpack chunking, a better offline experience in Gatsby, a brand new theme of the month, and finally, Gatsby Days.
Let's get this party started.
The Gatsby team has had a busy month. We've made some exciting improvements.
Marcy Sutton from Gatsby's Learning team has been doing some incredible work in making Gatsby more accessible by default.
A big part of making the web more accessible is teaching us how to write more accessible apps! Back in June, Marcy conducted some user testing sessions for accessibility research. She wrote about it in her post, What we learned from user testing of accessible client-side routing techniques with Fable Tech Labs which I consider canonical and required reading.
We've made a bunch of improvements to Gatsby's GraphQL layer recently. Here is a quick summary:
- We now support abstract data interfaces. This means that you can build Gatsby sites (or themes) that support the same query for multiple data sources. Mikhail from the core team talks more about this on Learn With Jason
- Materialisation: This work included a major refactoring in Gatsby’s data layer. It restores support for a database storage backend within Gatsby, which speeds up builds for larger sites. Check it out in #16091.
- Stefan added the ability to snapshot your Gatsby schema in gatsby-plugin-schema-snapshot. This enables you to lock-down a project’s GraphQL schema.
- GraphiQL Explorer is now available in the WPGraphiQL plugin for WordPress. Thanks to Henrik Wirth for adding this feature in #16.
v3 includes an updated Workbox, the ability to append custom scripts to the generated service worker and many more smaller improvements.
Ward from the core team recently made some improvements to Gatsby's webpack config in #17093. This introduces a better splitChunks config and results in a 400 KB reduction in initial bundle size and a 400 ms faster TTI for gatsbyjs.org.
Huge shoutout to the Next.js team since we picked this up from them!
We recently enabled automatic dependency updates using Renovate. As of today, dependencies in all official Gatsby packages are completely up to date (excluding major versions).
This means faster resolution of bugs caused by upstream issues and also better security.
We'd like to thank Rhys Arkins for all his help on setting this up and we highly recommend Renovate!
Localizing Gatsby Documentation
Nat Alison who helped translating the React documentation is helping us set up the Gatsby documentation for translations. She's documented a few possible approaches that have worked in her experience in the RFC for Gatsby Docs Localization.
We'd love to hear your comments on the RFC. If you're interested in helping translate the Gatsby documentation to a language of your choice, now is the time to get involved!
It's been a pretty busy month on the monorepo. We've merged in a lot of your contributions and they've all been amazing. Let's go over some of the highlights!
GraphiQL Code Exporter
Back in June, Michał from the Gatsby core team worked on adding GraphiQL Explorer to GraphiQL in Gatsby. One of the next steps he mentioned was the addition of code snippet generation using graphiql-code-exporter.
Gatsby now includes Code Exporter in GraphiQL out of the box starting from v2.15.3, thanks to Dan Kirkham.
When you write a query in GraphiQL, this will automatically generate code for you! You can check out Dan's work on the PR on GitHub.
It's really hard to pick out favorites from all the incredible contributions you folks make so apologies in advance if I missed anything (let us know on Twitter). Here are my favorites from the past month:
- Jeremy Albright did some really solid work and fixed an issue where Gatsby CLI would leave your terminal in an inconsistent state in #16714
- Nicolas Goutay fixed a memory leak in IntersectionObservers (with help from atomiks) in #17056
- Benedikt Franke brought order to some chaos by making root plural fields non nullable in #15321
- Mateusz Burzyński cleaned up and refactored some XState code over to v4, significantly improving the visualization in the process in #17192
- Matthew Miller fixed an issue that could cause infinite loops in cyclic node trees in #17078
Gatsby Site of the month
Brand new month, brand new Gatsby site.
The site of the month is ghost.org
They built their brand new site in Gatsby and we love it because:
- That video in the home page background
- Nice little animations
- Blazing fast navigation thanks to Gatsby
Theme of the Month
The Gatsby theme of the month is Novela (a theme by Narative)
With minimal styling and maximum features — including multiple homepage layouts, built-in social sharing and dark mode — Novela makes it easy to start publishing beautiful articles and stories with Gatsby.
I'm a big fan of the team at Narative and I think Novela is a great Gatsby theme.
We’ve always enjoyed using Gatsby for our projects and when themes were announcement we knew it would be special. Novela is our first dive into themes and we’ve quickly grown to love it. It’s exciting to be part of the formation of a new way to build and share Gatsby sites.
Gatsby Days, London
The entire Gatsby team is headed to London in a few weeks for our quarterly Gatsby gathering!
And with that, comes the next Gatsby Days. If you haven't already, you can register here to watch the Gatsby team (and friends) talk about exciting new things in the Gatsby world.
We even have a special discount code just for you: GAZETTE25
We'd love to meet you 💜