Jamstack is an architecture for websites where pages are prebuilt into static files, served from a CDN, and made dynamic with JavaScript and APIs instead of a traditional server. The name came from JavaScript, APIs and Markup. In 2026 the term is used less, because frameworks like Astro now mix prebuilt pages with server-rendered routes in one project, but the core ideas (prerender what you can, serve from the edge, call services for the rest) are how most fast content sites are built.
This explainer covers what Jamstack originally meant, what changed, which parts are still good advice, and how Astro maps onto the model today.
Key Takeaways
- Jamstack meant prebuilt markup on a CDN, plus JavaScript and APIs for anything dynamic.
- Its main benefits (speed, low cost, security, Git-based workflows) still hold.
- The strict “no server” rule faded as frameworks added per-route server rendering and edge functions.
- Astro is static-first: pages prerender by default, and individual routes or components can render on demand.
- The practical 2026 version is “static by default, server where it earns its place.”
What Jamstack originally meant
The term was coined around 2015 to describe a shift away from monolithic platforms like WordPress, where a server builds each page from a database on every request. The Jamstack approach split that apart:
- Markup was prebuilt at deploy time by a static site generator and served as files.
- JavaScript in the browser handled interactivity.
- APIs (your own serverless functions or third-party services) handled everything dynamic: forms, search, payments, comments, authentication.
The site itself had no application server. A Git push triggered a build, the build produced files, and a CDN served them worldwide. Hosts like Netlify, Vercel and Cloudflare Pages built their platforms around that workflow.
| Traditional (monolith) | Jamstack |
|---|---|
| Server renders each page per request | Pages prebuilt at deploy time |
| Database queried on every view | Content fetched at build time |
| Plugins run on your server | Features come from APIs and services |
| Scale by adding servers | CDN scales automatically |
| Deploy by updating a running server | Deploy by uploading new files atomically |
Why Jamstack caught on
The benefits were concrete:
- Speed. Prebuilt HTML served from the nearest CDN edge has a very low time to first byte.
- Cost. Static hosting is cheap or free, and traffic spikes don’t require more servers.
- Security. No server code or database means far fewer ways in.
- Developer workflow. Everything in Git, preview deployments for every pull request, instant rollbacks.
- Decoupling. Content in a headless CMS, front end in any framework, services swapped independently. The what is a headless CMS explainer covers that side.
What changed: the limits of “no server”
Strict Jamstack had real pain points, and they shaped what came next.
Build times. Rebuilding every page for every content change worked for hundreds of pages, not for hundreds of thousands. Incremental builds and on-demand rendering emerged to avoid full rebuilds.
Client-side everything. Pushing all dynamic behavior into browser JavaScript led to heavy bundles. Many “Jamstack” sites were really single-page apps that shipped large frameworks to render content that could have been HTML. The MPA vs SPA explainer covers that trade-off.
API sprawl. A site could depend on a dozen third-party services, each with its own pricing, outages and keys.
Personalization. Anything that depended on the visitor (logged-in state, location, cart) needed client-side fetching and loading spinners.
Frameworks responded by bringing the server back, but selectively. Serverless and edge functions let a route render on demand close to the visitor. Hybrid frameworks let you choose static or server rendering per page. By the early 2020s, “Jamstack” described a philosophy more than a strict architecture, and the community moved toward broader terms like “static-first” or “composable.”
Which Jamstack ideas still matter in 2026
Most of the original advice holds up:
- Prerender everything you can. Content that’s the same for every visitor should be HTML built ahead of time.
- Serve from a CDN. Static files at the edge beat any origin server for latency. See what a CDN does for an Astro site.
- Deploy atomically from Git. Every commit is a build, every build is a complete, immutable deploy, and rollback is one click.
- Use services for specialized jobs. Payments, email, search indexes and authentication are usually better bought than built.
- Keep the browser light. Ship JavaScript only for components that need it.
What’s changed is the absolute “no server” rule. In 2026, rendering a route on demand, or a single component per request, is a normal tool rather than an exception.
Where Astro fits in the Jamstack picture
Astro fits the Jamstack model closely and extends it in the places where the original model struggled.
Prebuilt markup by default. A new Astro project uses output: 'static'. Every page is HTML built at deploy time and deployable to any static host or CDN.
JavaScript only where needed. Astro components ship zero client JavaScript. Interactive parts are islands, hydrated individually with client:* directives, so a mostly static page doesn’t carry a framework.
APIs and content at build time. Content collections read Markdown, MDX, JSON or any CMS through loaders, and pages fetch APIs in their frontmatter during the build:
---
// src/pages/team.astro
const team = await fetch('https://api.example.com/team').then((r) => r.json());
---
<ul>
{team.map((person) => <li>{person.name}, {person.role}</li>)}
</ul>
That fetch runs once, at build time. Visitors receive the finished list.
Server rendering when it earns its place. Add an adapter, and individual routes can opt out of prerendering:
---
// src/pages/account.astro
export const prerender = false;
const user = Astro.locals.user;
if (!user) return Astro.redirect('/login/');
---
<h1>Welcome back, {user.name}</h1>
Server islands go further: a static page can include one component that renders per request with server:defer, so a cached product page can show a live cart count. Actions provide type-safe server functions for forms. Those features cover what strict Jamstack pushed onto third-party APIs or client-side code. The Astro SSR guide and server islands guide explain them.
A 2026 static-first architecture with Astro
For a typical content or marketing site, this is the setup that keeps the Jamstack benefits without its old limits:
| Layer | Typical choice |
|---|---|
| Content | Markdown in Git, or a headless CMS through a content loader |
| Pages | Prerendered HTML (Astro default) |
| Interactivity | Islands with client:visible or client:idle |
| Dynamic parts | Server islands or a few on-demand routes, with an adapter |
| Forms | Astro Actions, a host function, or a form service |
| Search | A static index such as Pagefind |
| Hosting | Cloudflare Pages, Netlify, Vercel, or GitHub Pages if fully static |
| Rebuilds | On Git push and on CMS publish webhooks |
Most sites never need more than the first three rows and a static host. Add the rest only when a feature demands it. The rendering mode guide helps you decide per page.
Is the word “Jamstack” still useful?
As a search term and a shorthand, yes: people still use it to mean “fast, prebuilt, CDN-served site.” As a strict architecture, less so, because the boundary between static and dynamic is now a per-route or per-component setting instead of a platform choice.
A more accurate description of what modern frameworks offer is static-first: build HTML ahead of time by default, and reach for the server deliberately. Astro was designed around that default. Every Komal theme follows it too, building to static files you can host on any CDN, with room to add server features later; browse the Astro themes to see the pattern in finished sites. For Astro’s own explanation of rendering choices, see the on-demand rendering docs.
FAQ
What does Jamstack stand for?
Jamstack originally stood for JavaScript, APIs and Markup: prebuilt markup served from a CDN, with JavaScript in the browser and APIs for dynamic features. The capitalization later changed from JAMstack to Jamstack as the term broadened.
Is Jamstack dead in 2026?
The label is used less, but the approach isn’t dead. Prerendering pages, serving them from a CDN, and using services for dynamic features is still how most fast content sites work. What faded is the strict rule against any server rendering.
Is Astro a Jamstack framework?
Astro fits the Jamstack model: it prebuilds pages to static HTML by default and deploys to any CDN. It also supports per-route server rendering, server islands and actions, so it covers cases strict Jamstack sites handled with client-side code or third-party APIs.
What is the difference between Jamstack and a static site?
A static site is a delivery model: prebuilt files served as-is. Jamstack is a broader architecture built on static delivery, adding browser JavaScript and APIs for dynamic features, plus a Git-based build and deploy workflow.
Do Jamstack sites need a headless CMS?
No. Many Jamstack sites store content as Markdown in Git. A headless CMS helps when non-technical editors need a friendly interface, and it plugs into the build through an API.