What is JAMstack? Why do we use the JAMstack architecture?

Last Modified

JAMstack is a modern architecture for web development that uses JavaScript, APIs, and prebuilt markup (i.e., static site generators) as core technologies, instead of traditional server-side rendering techniques.

JAMstack is an acronym that stands for three core technologies: JavaScript, APIs, and Markup. The architecture of JAMstack is based on several principles, including:

  • Prebuilt: Pre-compile all HTML, CSS, and JavaScript into static files before pushing content to production.
  • Serverless: Use APIs to handle all dynamic functionality, such as form submissions, payments, etc., without the need to set up or manage any runtime environment on the server.
  • Security: JAMstack applications are deployed through a CDN and can remain secure from a variety of network attacks and vulnerabilities.

The advantages of JAMstack include faster website loading times, better security, lower hosting costs, and improved scalability and maintainability. JAMstack is suitable for projects of various sizes, from personal blogs to enterprise-level web applications.