JAMstack is <3

August 19, 2018   

Officially, JAMstack is:

Modern web development architecture based on client-side JavaScript, reusable APIs, and prebuilt Markup.

But really, JAMstack represents the growing pushback from developers who are sick of: ridiculous page bloat, “javascript fatigue”, and overly complex web frameworks.

We have text articles slowly loading multiple megabytes of tracking/ads/cryptomining rather than loading instantly with the information the user actually wanted. We have two major and incompatible versions of Angular in production. Front-ends are becoming replications of the entire backend which creates twice as many places for errors and slows down development considerably.

JAMstack is a breath of sanity in the very cluttered and overcomplicated space of web development.

Working on the web can be faster and easier if we abstract out the most common features of web pages as APIs rather than reinventing the wheel each time with the hypest “language du jour” is.

Making your sites as light as possible lets you use less of your clients bandwidth and makes it easier and cheaper to scale in the future. JAMstack gives you the best of both worlds by using Javascript and APIs to have dynamic function on a static markdown site.

The best part about JAMstack is that it isnt some new framework that you have to learn. It is more about using your current skills in JS, HTML, and CSS to create something flexible, powerful, and blazingly fast. At its core the JAMstack website is really just a gathering of tools and best practices for unleashing the power of static sites. Javascript and API’s can perform the dynamic side while the actual pages are statically generated and delivered via CDN. Dynamic sites will simply never beat a static site for Time To Load(TTL).

This site was built using JAMstack principles. Here’s how I did it: I used Hugo, Github, Forestry.io, Netlify, and GoDaddy(I have since moved to Namecheap).

install hugo
create static site
git repo init
install theme
git push
connect netlify
connect forestry.io
setup custom domain in netlify
point godaddy dns to netlify servers
after netlify dns: one click ssl
force https

voila!

Now I can log into Forestry from anywhere and update my posts, add pictures, and change my pages around without having to work in the command line. It’s like having usability of Wordpress except it’s free to host, easier to scale, and way more secure since it doesn’t have a juicy login page to attack.

JAMstack is obviously not suitable for every single website or project(I still build most of my applications in Ruby and Rails) however most business and informational websites would gain significant benefits from switching from something like Wordpress to a JAMstack build. This is definitely a paradigm that any serious web developer should have in their toolbox if they respect their users.