headless.dev
← All posts

What is "Headless" Architecture?

How a dramatic shift in web systems architecture helped developeres evolve e-commerce.

Recently we’ve invested a lot in our Wix Headless platform. Many developers—especially the new generation of vibe coders—don't fully understand what "headless" actually means or the problem it solves. Let's dig in.


Back in the late '90s and early 2000s, web technology was much simpler than it is today. Websites were basic and, frankly… quite ugly (check out the GeoCities Gallery if you don't believe me). Even under the hood, a typical e-commerce website was messy.

Coupling

Imagine a restaurant where the kitchen sits right in the middle of the dining room. That would be pretty uncomfortable. The smoke and smells from cooking would bother the guests, and waiters would have to weave around tables just to reach the counter. Everything in the kitchen would be on full display, even though the golden rule of restaurants is never to look into the kitchen if you want to enjoy your meal. In short, whatever happens in the kitchen directly affects the dining area, and vice versa.

In software engineering, when two distinct components are tied together like this, we say they are coupled.


Early websites suffered from the exact same issue: the code for the visual layout—the pages, design, and user interface—was tightly coupled with the code handling the business logic, like payments and databases. Just like in our restaurant example, this coupling caused major problems. For instance, tweaking the website's design could accidentally break the payment flow.

The Rise of Mobile E-commerce

As long as e-commerce sites remained simple—with few products and basic layouts—this wasn't a dealbreaker. But in the early 2010s, as smartphones took off and online shopping exploded, tight coupling became a real headache. Developers needed to build modern, responsive interfaces while simultaneously adding complex business features, and the interwoven code made updates increasingly difficult.


The solution was clear. In a proper restaurant, the kitchen and dining room are separate spaces connected by a swinging door. The two components are decoupled, keeping the noise and mess of cooking hidden from the guests.


Web systems evolved in the same way. The frontend layer—the "head"—was separated from the backend. The two parts now communicate through dedicated protocols, most commonly REST APIs.


This is the "headless" architecture, a term coined in 2013 by e-commerce pioneer Dirk Hoerig. It simply refers to designing web applications where the backend is decoupled from the frontend.


Decoupling gave web developers immense flexibility. They could now build frontends using any modern framework—from React to Next.js—or connect the same backend directly to native mobile apps. They could even run multiple frontends off a single backend, tailoring specialized user experiences and optimizing performance for each platform.

Wix Headless

This is precisely what Wix Headless offers today's vibe coders. AI tools excel at building slick frontend interfaces. However, handling secure database logic or complex payment systems is another story—a small mistake there can cost a business real money. Wix Headless lets developers build custom frontends using whatever tech stack they prefer, host them anywhere, and seamlessly connect them to Wix's robust backend business solutions: take orders, manage inventory, sell tickets and manage guests lists for your events, create content for a blog and much more . Learn more at https://dev.wix.com/docs/go-headless.