Course contentsShow
← Web Development
Lesson 1816 of 2,98233. Static Site Generation and JamstackFree lesson

What is Jamstack?

Understanding Jamstack as an architecture pattern: JavaScript, APIs, and Markup served statically.

What is Jamstack?

You'll learn: What Jamstack is as an architectural philosophy and how its three pillars work together to create modern, high-performance websites.

The Core Concept

Jamstack stands for JavaScript, APIs, and Markup—it's not a specific technology but rather an architecture pattern for building websites and applications. The key principle: serve pre-built static files from a CDN while using client-side JavaScript and external APIs to add dynamic functionality.

Think of Jamstack like a well-organized factory: instead of manufacturing each product (page) when a customer orders it (traditional server rendering), you manufacture everything in advance (static generation), store it in warehouses worldwide (CDN), and use smart components (JavaScript + APIs) to personalize and update products as needed.

The Three Pillars

JavaScript

Runs in the browser to handle dynamic interactions and data fetching after the initial page loads.

APIs

External services provide dynamic functionality—authentication, payments, content management, search—without requiring your own backend servers.

Markup

Pre-rendered HTML files generated at build time and served as static assets. This is where SSG and ISR fit into the picture.

Why "Stack" is a Bit Misleading

Jamstack isn't really a "stack" like LAMP or MEAN. It's more accurately a deployment architecture that prioritizes:

  • Pre-rendering content whenever possible
  • Decoupling the frontend from backend services
  • Serving assets globally via CDN
  • Using build-time processes to optimize delivery

The approaches you've learned—SSG, ISR, and even some CSR patterns—all align with Jamstack principles when they emphasize static delivery and API-driven dynamic features.

Key Takeaway: Jamstack is an architecture pattern that combines pre-built static markup, client-side JavaScript, and external APIs to create fast, secure, scalable websites without traditional web servers handling every request.