Middleware is software that sits between a web server or application and other services, handling requests and responses as they travel through a system. It provides functions such as authentication, data transformation or logging, and it is not a front‑end framework.