With the wonderful world of JAMstack getting big, all the categories of services and tools that help it along are as important as ever. There are static site generators, headless CMSs, and static file hosts.

I think those classifications are handy, and help conversations along. But there is a point where nuance is necessary and these classification buckets get a little leaky.

Note, these charts are just intended to paint a spectrum, not to be a comprehensive list of services.

Headless CMSs

A Headless CMS is a CMS that provides an admin area for creating and editing content, but offers no front-end to build the website from. All the content is accessed via APIs.

Imagine WordPress, which has an admin area, but it also has themes from which you build the website from on the server-side, with all kinds of PHP functions for you to use the content data. All that theming stuff is the “head”. So a headless CMS would be like WordPress with just the admin area. And indeed you can use it that way, as it offers APIs.

There is even more nuance here, as there are services that offer an admin area, but don’t actually store the data for you. Plus there is CMSs that are hosted for you, and CMSs where you have to bring your own hosting. Let’s have a peak.

ServiceHeadless?HostingNotes
ContentfulYesCloudA classic headless CMS
SanityJSON data structure, accessed via APIs, custom admin area is self-hosted
CockpitSelfComes with admin UI
Strapi
KeystoneJSAll code, not even an admin UI
WordPressSorta – Usually used with headSelf or CloudHas a head, but you don’t have to use it, you choose to only use APIs to access content if you wish.
DrupalSelf
CraftCMSSelfSpecifically has a headless mode and GraphQL API. Craft Cloud will bring a cloud-hosted headless varient
NetlifyCMSSorta – Doesn’t actually store content, just helps edit it.GUI for Git-hosted Markdown
ForestryCloud
JoomlaNoSelfA classic headed CMS
SquarespaceCloudSite builder, meant to build hosted/headed sites
Wix

Static Site Hosts

This is tricky to talk about because literally, any web host will host static files, and probably do an OK job of it. I think it’s most useful to consider hosts that only do static hosting on purpose because it means they can optimize for that situation do other useful things.

ServiceNotes
NetlifyThe gold standard in static file hosts right now. Developer conviences galore.
Cloudflare Workers SitesCDN-first static file hosting alongside a cloud functions service.
Firebase HostingFirebase is a whole suite of sub-products, but the hosting in particular is static and on a CDN.
GitHub PagesStatic file host, but will also run Jekyll and other actions. Is not a CDN.
NeocitiesStatic file host with online editor and community.
S3Raw file storage. Can be configured to be a web host. Not a CDN unless you put CloudFront in front of it.
BluehostNot really a static file host.
MediaTemple
Hostgator

Sometimes you’ll see people trying to use stuff like Dropbox or Google Drive to do static file hosting (for a website), but I’ve found these services generally ultimately don’t like that and prevent the use for that. If it works today, fine, but I wouldn’t count on any of them long term.

Static Site Generators

You would think this category would be straightforward, without much spectrum. A static site generator takes input and makes statically generated pages that can render without, say, needing to hit a database. But even here there is a spectrum.

The language the generator is in kinda matters. It affects speed. It affects installability on different local platforms. It affects your ability to write code to extend it and hack on it.

But perhaps more importantly, not all static site generators are only static site generators. Some can be run on the server as well, weirdly enough. And there are some that kinda look like static site generators, but are more correctly classified as flat-file CMSs.

SoftwareLangNotes
JekyllRubyOne of the originals in this generation of static site generator.
HugoGoKnown for speed.
11tyNodeProcesses 11 different template languages out of the box.
GatsbyReactGatsby is truly a static site generator, but generally, the sites “hydrate” into SPAs, but remain static (nothing server-rendered). Big ecosystem of plugins to help with connecting data sources, handling images, etc.
NextNext can do static site generation, but it can also run live in Node and do server-side rendering on the fly (“Isomorphic JavaScript”).
NuxtVueNuxt is the spirtiual companion to Next but in Vue. It also can either be staticly generator or run isomorphicly.
KirbyPHPKirby runs from static files (no database), but isn’t really a static site as the pages are rendered by PHP.
StatamicStatamic is similar to Kirby in that static files are used for data but the page themselves are rendered by PHP.
PerchJust an example of a CMS that keeps data in a database and isn’t trying to be a static site generator at all.

The post JAMstack Tools and The Spectrum of Classification appeared first on CSS-Tricks.