Do you use the best static site tech stack?

Updated by Brook Jeynes [SSW] 4 months ago. See history

123

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

NameNextJS (Recommended)Gatsby πŸͺ¦AstroHugoBuilder.io
LanguageReactReactMost major JS frameworks via islandsGoCustomizable
Data HandlingFully customisableGraphQLFully customisableCustomizableFully customisable
Data SourcesFully customisableFilesystems, CMS, APIs, Databases, Local filesFully customisableFilesystemCMS, APIs, Customizable
GitHub Pages IntegrationRequires setupSeamless deployment via config filesDeployment via GitHub ActionsDeployment with GitHub ActionsCustomizable
TinaCMS integrationβœ…βœ…βœ…βœ…βœ…

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

Market Share

(Data captured in late 2024)

NameNext.js (Recommended)GatsbyHugoAstroBuilder.io
GitHub Stars127,000 πŸ‘‘55,00075,00047,0008,000
NPM Downloads (Weekly)6,000,000 πŸ‘‘260,000N/A247,000N/A
Stack Overflow Questions92,000 πŸ‘‘15,0006,0002,000100
BuiltWith Sites1,400,000 πŸ‘‘126,000167,000483,000N/A
State of JS (2023)57% used it πŸ‘‘17% used itN/A17% used itN/A
Google Trends Rank1st πŸ‘‘4th3rd2nd5th (almost 0 data)
Image

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

Image

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:

NameDescriptionProsCons
VercelA fast, developer-friendly platform optimized for frontend frameworks like Next.js, with built-in CI/CD and global edge deployment. Vercel is recommended for applications built using Next.js.πŸš€ Automatic deployments, fast CDN, Next.js support, serverless functions.❌ Limited free tier, can be costly for high traffic.
Azure static web appsMicrosoft's solution for deploying static sites with integrated APIs, authentication, and automatic GitHub/Azure DevOps deployments.πŸ”„ Integrated with Azure Functions, authentication, GitHub Actions, free tier available.❌ More complex setup.
Azure static storageA simple, cost-effective way to serve static files from Azure Blob Storage with CDN and custom domain support.πŸ’° Cheap storage costs, integrates with Azure CDN, scalable.❌ No built-in CI/CD, manual setup needed.
CloudflareA high-performance static site host leveraging Cloudflare’s global CDN, DDoS protection, and edge computing capabilities.🌍 Free global CDN, DDoS protection, edge functions, fast builds.❌ Limited build minutes on free tier, less backend flexibility.
GitHub PagesA free, GitHub-integrated static site hosting service, best suited for personal projects, documentation, and Jekyll-based blogs.πŸ†“ Free for public repos, easy integration with GitHub, supports Jekyll.❌ Limited to static sites, no server-side processing, slower updates.
Surge.shA lightweight, CLI-based static hosting service that’s quick to deploy and great for simple, no-frills web apps.⚑ Super simple CLI deployment, free tier available, custom domains supported.❌ Fewer features, no built-in CI/CD, not ideal for large-scale projects.
acknowledgements
related rules