The History of the Web Framework

Fractional CTO · Founder of Injuria.ai
The History of the Web Framework
A web framework is a software abstraction that provides a standard way to build and deploy web applications. It aims to automate common tasks, enforce architectural patterns, and simplify the overhead associated with web development. The history of the web framework is a story of escalating complexity and the corresponding search for abstractions to manage it. The journey begins with simple scripts to generate dynamic HTML and progresses through architectural patterns like Model-View-Controller, the decoupling of client and server, and the recent reintegration of these concerns in sophisticated, hybrid models.
This evolution was not arbitrary. Each major shift was a direct response to tangible problems: the performance limitations of early server interfaces, the unmaintainable code resulting from mixing logic and presentation, the user experience constraints of full-page reloads, and the developmental friction of managing separate frontend and backend projects. From the first Perl scripts executed via the Common Gateway Interface to today's component-based, server-rendered applications, the goal has remained the same: to allow developers to build more powerful and maintainable applications faster. Understanding this chronological progression reveals the core technical and economic pressures that have shaped modern web development.
The Pre-Framework Era: CGI and Server-Side Includes (1991 to 1995)
The World Wide Web began as a system for sharing static documents. When Tim Berners-Lee[1] developed the first web browser and server in 1991, the system was designed to serve hypertext files written in HTML. This model was sufficient for publishing research papers and documents, but the need for dynamic content (pages that could change based on user input, database queries, or other conditions) became immediately apparent. The first solution to this problem was the Common Gateway Interface (CGI)[2], specified by the National Center for Supercomputing Applications (NCSA).
CGI defined a standard way for a web server to execute an external, standalone program to generate a response for an incoming request. When a request arrived for a CGI script, the server would launch a new process, pass request details (like headers and query parameters) through environment variables and standard input, and then pipe the script's standard output back to the client as the HTTP response. This was a simple and language-agnostic approach. Developers could write CGI scripts in any language that could read environment variables and write to standard output, with Perl[3] quickly becoming the dominant choice due to its powerful text-processing capabilities.
The primary drawback of CGI was performance. Spawning a new operating system process for every single request was computationally expensive and did not scale well under load. This overhead made it impractical for high-traffic sites. A less powerful but more efficient alternative was Server-Side Includes (SSI)[4]. SSI allowed developers to embed special directives in their HTML files, which the web server (like NCSA HTTPd or later, Apache) would parse and replace before sending the file to the client. These directives could include the contents of another file or the output of a simple command. While useful for small dynamic sections like a page's last-modified date, SSI was not a full-fledged programming environment and could not be used to build complex applications.
The First Generation: Integrated Runtimes (1995 to 2001)
The performance bottleneck of CGI led to the development of technologies that integrated programming language runtimes directly into the web server. Instead of starting a new process for each request, the server could use a persistent, in-memory interpreter to execute scripts. This approach dramatically improved performance and marked the beginning of true web application platforms.
In 1994, Rasmus Lerdorf[5] created a set of CGI binaries in C which he called Personal Home Page Tools. He soon rewrote these tools and combined them with a forms interpreter, creating PHP/FI[6], the precursor to modern PHP. The defining feature of PHP was its syntax, which allowed developers to embed code directly within HTML files using special tags (<?php ... ?>). The web server would execute the code blocks and replace them with their output, creating a final HTML document. This model, detailed in early texts like Web Application Development with PHP 4.0[7], was incredibly accessible and led to PHP's explosive growth.
Also in 1995, Allaire Corporation released ColdFusion[8]. Like PHP, it ran as a module within the web server but used a proprietary, tag-based language called CFML (ColdFusion Markup Language). Its HTML-like tags for database queries (<cfquery>) and conditional logic (<cfif>) made it particularly approachable for web designers who were already familiar with HTML.
Microsoft entered the field in 1996 with Active Server Pages (ASP)[9], which was integrated into its Internet Information Server (IIS). Similar to PHP, ASP allowed server-side scripting inside HTML using <% ... %> delimiters. The default language was VBScript, using the company's existing community of Visual Basic developers. The release of ASP was a key part of Microsoft's strategy to make its Windows NT platform a viable competitor to Unix-based web servers.
Meanwhile, the Java community developed a more structured, enterprise-focused solution. The Java Servlet API[10] was first announced in May 1996. The first official specification (version 1.0) was finalized in June 1997. Servlets were Java classes that ran inside a compatible web server or application server (like Apache Tomcat). They were compiled, type-safe, and managed by a long-running Java Virtual Machine (JVM), offering superior performance and robustness compared to interpreted scripting languages. However, writing HTML by printing strings from Java code was cumbersome. To address this, Sun released JavaServer Pages (JSP) in 1999. JSP reversed the model, allowing developers to embed Java code into HTML-like files, providing a developer experience closer to that of PHP and ASP.
While these first-generation technologies solved the CGI performance problem, they introduced a new one: a severe lack of structure. By encouraging the mixing of database queries, business logic, and HTML markup in the same file, they led to what was often called "spaghetti code." As applications grew, these files became nearly impossible to read, debug, and maintain.
The Rise of MVC and Convention over Configuration (2002 to 2008)
The maintenance crisis of spaghetti code created demand for architectural patterns that could enforce a separation of concerns. The pattern that came to dominate web development was Model-View-Controller (MVC)[11]. In the context of the web, the Model represents the application's data and business logic, the View is the template that renders the user interface (typically HTML), and the Controller handles user input, interacts with the Model, and selects the appropriate View to render.
The Java Dominance with Struts
The first widely adopted MVC web framework was Apache Struts[12], created by Craig McClanahan and donated to the Apache Foundation in 2000. Struts formalized the MVC pattern for Java developers. A central servlet (the Controller) intercepted all requests, routing them to specific Action classes based on configuration. These Action classes would interact with the business logic (the Model) and then forward the request to a JSP file (the View) for rendering. For a time, Struts was the de facto standard for serious Java web development. However, it became notorious for its reliance on verbose and complex XML configuration files, which were required to wire together all the components of the application.
Microsoft's Component-Based Approach
In 2002, Microsoft released the .NET Framework[13] and its new web platform, ASP.NET. The initial version, known as Web Forms, took a different approach from MVC. As detailed in books like Designing Microsoft ASP.NET Applications[14], Web Forms offered a stateful, event-driven programming model that attempted to emulate desktop application development. Developers could drag-and-drop UI components onto a design surface, and the framework would manage the component's state across HTTP requests using a hidden field called ViewState. While this model made for rapid development, the abstraction over the stateless nature of HTTP was often leaky and could result in large page sizes and unpredictable behavior.
The Rails Revolution
David Heinemeier Hansson first released Ruby on Rails[15] as open source in July 2004. The official 1.0 release occurred in December 2005. Rails, built on the Ruby programming language, was a full-stack MVC framework that introduced two transformative philosophies: "Convention over Configuration" and "Don't Repeat Yourself" (DRY). Where frameworks like Struts required developers to explicitly configure every detail, Rails made assumptions. For example, a model class named User would automatically be mapped to a database table named users and a controller named UsersController. This drastically reduced the amount of boilerplate code and configuration required.
Rails also integrated a suite of tools that became standard expectations for modern frameworks: an object-relational mapper (ORM) called ActiveRecord, database migration tools, and code generation through scaffolding. Its influence was immense, proving that web development could be both powerful and enjoyable. Rails popularized REST (Representational State Transfer) as a design principle for web applications and demonstrated the value of a highly opinionated, integrated framework.
Inspired by Rails, other language communities developed similar frameworks. In 2005, Adrian Holovaty and Simon Willison publicly released Django[16], a Python framework born out of their work at a newspaper. Like Rails, Django was a "batteries-included" MVC framework (or MVT, Model-View-Template, in its own terminology) that emphasized rapid development, a clean design, and a powerful built-in ORM and admin interface. In the Java world, the Spring Framework[17] and its Spring MVC module gained popularity as a more flexible, less heavyweight alternative to Struts, heavily promoting dependency injection to decouple components instead of relying on Rails-style conventions.
The Ajax Revolution and the Rise of the Client-Side (2005 to 2012)
While server-side frameworks were maturing, a parallel evolution was happening in the browser. The traditional web model involved a full page reload for every user interaction, which felt slow and clunky compared to native desktop applications. The solution was to use JavaScript to fetch data from the server asynchronously in the background and update parts of a page without a full refresh.
This technique was not new. Microsoft had introduced the XMLHttpRequest object in Internet Explorer 5. However, it was Jesse James Garrett's 2005 article, "Ajax: A New Approach to Web Applications", that gave the pattern a name (Asynchronous JavaScript and XML) and a conceptual framework. The launch of applications like Google Maps (2005) and Gmail (2004) demonstrated the transformative potential of Ajax, creating rich, interactive experiences that were previously impossible on the web.
jQuery and DOM Abstraction
Implementing Ajax was complicated by severe inconsistencies between web browsers' JavaScript engines and DOM APIs. This problem was solved by JavaScript libraries that provided a unified, cross-browser API. The most successful of these was jQuery[18], created by John Resig[19] and released in 2006. jQuery's concise syntax for selecting and manipulating DOM elements ($(".my-class")), handling events, and making Ajax requests ($.ajax()) made client-side scripting dramatically simpler. It became an almost universal dependency for websites that needed any level of interactivity. Server-side frameworks like Rails and Django added helpers to easily generate JavaScript code that used jQuery for Ajax interactions, as described in references like Ajax, Rich Internet Applications, and Web Development for Programmers[20].
Client-Side MVC Frameworks
As applications moved more logic to the client-side, managing it with jQuery alone led to its own form of spaghetti code, often called "jQuery soup." This created a need for architectural patterns on the client, mirroring the shift that had happened on the server years earlier. This led to the first generation of client-side MVC frameworks.
Backbone.js[21], released by Jeremy Ashkenas in 2010, was one of the first and most popular. It provided a minimal set of building blocks: Models, Collections, Views, and a Router, to give structure to client-side code. It was unopinionated and lightweight, leaving many decisions to the developer.
Also in 2010, Google's Misko Hevery released AngularJS[22]. AngularJS was a far more comprehensive and opinionated framework. It introduced powerful concepts like declarative two-way data binding (which automatically synchronized the model and the view), dependency injection, and directives that allowed developers to create custom HTML tags. AngularJS made it possible to build complex Single-Page Applications (SPAs): applications that load a single HTML page and dynamically update the content as the user interacts with them. This marked a major shift: the backend's role began to transition from rendering HTML to primarily serving data through APIs.
The Modern Era: Components, APIs, and Full-Stack Frameworks (2013 to Present)
The rise of SPAs and the increasing complexity of client-side logic set the stage for the modern era of web development, defined by component-based architectures, API-first design, and a new generation of frameworks that blur the lines between client and server.
Node.js and the JavaScript Takeover
A pivotal development was the release of Node.js[23] by Ryan Dahl in 2009. Node.js allowed JavaScript to be used for server-side programming, using an event-driven, non-blocking I/O model that was well-suited for handling many concurrent connections. This enabled the "JavaScript everywhere" paradigm, where developers could use a single language for both the frontend and backend. The npm[24] package manager fostered a vast ecosystem of open-source libraries. Express.js[25], a minimal and flexible web application framework for Node.js, quickly became the standard for building backend servers and REST APIs in the JavaScript world.
The Component-Based UI Revolution
While AngularJS was powerful, its two-way data binding could lead to performance issues and complex state management in large applications. This created an opening for new ideas.
In 2013, Facebook open-sourced React[26], a JavaScript library for building user interfaces created by Jordan Walke. React was not a full framework but focused solely on the View layer. It introduced two key innovations. First, it promoted a declarative, component-based architecture, where the UI is composed of encapsulated, reusable pieces of code. Second, it used a "Virtual DOM." Instead of directly manipulating the browser's DOM, React would build a lightweight representation of the DOM in memory, calculate the most efficient changes needed to update the UI based on state changes, and then apply those changes to the real DOM. This approach offered significant performance gains.
In 2014, Evan You, a former Google developer who had worked on AngularJS, released Vue.js[27]. Vue was designed to be an approachable and incrementally adoptable framework. It combined the best ideas from its predecessors: a component-based architecture and Virtual DOM inspired by React, and a template-based syntax and reactivity system that were reminiscent of AngularJS but more performant.
In response to the shift towards component-based architecture, the Google team undertook a complete rewrite of AngularJS. Released in 2016 and simply named Angular[28] (version 2 and later), it was a modern, component-based framework built with TypeScript. It was more opinionated and comprehensive than React, offering a complete solution with routing, state management, and an HTTP client module included. This rewrite was a breaking change, creating a division in the ecosystem between legacy AngularJS applications and modern Angular applications.
The API-First World and Full-Stack Integration
The dominance of client-side frameworks like React, Angular, and Vue solidified the architectural pattern of a backend that serves a JSON API to a separate frontend SPA. Backend frameworks like Rails, Django, and Express adapted, focusing more on providing efficient API endpoints. New technologies like GraphQL[29], open-sourced by Facebook in 2015, emerged as a more flexible alternative to REST for API development, allowing clients to request exactly the data they need.
However, managing two separate codebases, build systems, and deployments for the frontend and backend introduced new complexities. This led to the emergence of modern full-stack frameworks that aim to provide a more integrated development experience.
Next.js[30], first released by Vercel in 2016, is a React framework that brought server-side rendering (SSR) and static site generation (SSG) to the component model. This allows for faster initial page loads and better SEO compared to client-rendered SPAs, while retaining the rich interactivity of React. It provides file-system based routing and API routes, blending client and server concerns into a single project. Similar frameworks like Nuxt[31] for Vue and SvelteKit[32] for Svelte followed this pattern.
Today, the evolution continues. A leading-edge concept is React Server Components[33], which further blurs the line between client and server. This model allows developers to write components that render exclusively on the server, with zero JavaScript footprint on the client, while also interoperating with traditional interactive client components. This hybrid approach seeks to combine the simple data-fetching model of older server-rendered frameworks like PHP and Rails with the component-based UI model of React. The history of web frameworks shows a continuous cycle: identifying a problem, creating an abstraction to solve it, and then dealing with the new complexities introduced by that abstraction. The current trend toward integrated, hybrid frameworks represents the latest attempt to find the optimal balance between developer experience, application performance, and user experience.
Sources (33)
- W3C: Tim Berners-Lee
- IETF RFC 3875: The Common Gateway Interface (CGI)
- Perl Programming Language
- Apache HTTP Server Tutorial: Server-Side Includes
- Wikipedia: Rasmus Lerdorf
- PHP Manual: History of PHP
- Web Application Development with PHP 4.0
- Wikipedia: Adobe ColdFusion
- Wikipedia: Active Server Pages
- eclipse.org
- Wikipedia: Model - view - controller
- Apache Struts
- Microsoft: What is .NET Framework?
- Designing Microsoft ASP.NET Applications
- Ruby on Rails
- Django Project
- Spring Framework
- jQuery
- Wikipedia: John Resig
- Ajax, Rich Internet Applications, and Web Development for Programmers
- Backbone.js
- AngularJS
- Node.js
- npm
- Express.js
- React
- Vue.js
- Angular
- GraphQL
- Next.js by Vercel
- Nuxt
- SvelteKit
- GitHub: React RFCs - Server Components