Do you use the best static site tech stack?

Last updated by Tiago AraΓΊjo [SSW] about 1 month ago.See history

Pure HTML pages are the fastest website around. However, server-side scripting languages enable richer functionality. Static sites solve this problem by providing the best of both worlds. Static sites are:

  • Cheap
  • Easy to use
  • Fast

On the other hand, complex functionality can be a bit more limited and time consuming to implement.

Here are some popular static site generators:

Features

Name NextJS (Recommended) Gatsby πŸͺ¦ Astro Hugo Builder.io
Language React React Most major JS frameworks via islands Go Customizable
Data Handling Fully customisable GraphQL Fully customisable Customizable Fully customisable
Data Sources Fully customisable Filesystems, CMS, APIs, Databases, Local files Fully customisable Filesystem CMS, APIs, Customizable
GitHub Pages Integration Requires setup Seamless deployment via config files Deployment via GitHub Actions Deployment with GitHub Actions Customizable
TinaCMS integration βœ… βœ… βœ… βœ… βœ…

Note: πŸͺ¦ Gatsby is no longer being actively developed.

Market Share

(Data captured in late 2024)

Name Next.js (Recommended) Gatsby Hugo Astro Builder.io
GitHub Stars 127,000 πŸ‘‘ 55,000 75,000 47,000 8,000
NPM Downloads (Weekly) 6,000,000 πŸ‘‘ 260,000 N/A 247,000 N/A
Stack Overflow Questions 92,000 πŸ‘‘ 15,000 6,000 2,000 100
BuiltWith Sites 1,400,000 πŸ‘‘ 126,000 167,000 483,000 N/A
State of JS (2023) 57% used it πŸ‘‘ 17% used it N/A 17% used it N/A
Google Trends Rank 1st πŸ‘‘ 4th 3rd 2nd 5th (almost 0 data)

google trends nextjs
Figure: Google trends for the above SSGs. In a substantial lead is NextJS, followed by Gatsby

GatsbyVsNextjs
Figure: NextJS and Gatsby are the major competitors that have been duking it out, lately Next.js has exploded in popularity

Two examples of static sites in action are SSW People and SSW Rules.

There are a few hosting options to choose from including:

Matt Wicks
Piers Sinclair
We open source.Loving SSW Rules? Star us on GitHub. Star
Stand by... we're migrating this site to TinaCMS