Skip to main content


The most used Node.js middleware engine for AWS Lambda.

What is Middy?

Middy is a sleek middleware engine designed to streamline your AWS Lambda code when working with Node.js. This framework simplifies Node.js Lambda function code, freeing you to focus on your core business logic, while effortlessly eliminating redundancy and extensive boilerplate code.

Middy empowers developers to incorporate common elements like authentication, authorisation, validation, and serialisation in a modular and reusable fashion. By decoupling these concerns from your primary code, Middy allows you to keep your attention squarely on your business logic, resulting in cleaner and more efficient serverless applications.


  • Simple but powerful : Middleware engines enhance code organisation, eliminates duplication, and standardises the management of non-functional concerns such as authentication, authorisation, validation, and serialisation.
  • Focus on the essentials: By offloading non-functional code to middleware, you can boost productivity and concentrate on what truly matters: the core business logic.
  • Lean and efficient: Middy boasts a very small core and an unobtrusive API, ensuring it adds the least possible overhead to your code.
  • Ready-made solutions: Middy includes an extensive collection of official middleware and utilities that are ready to use, tackling the most common non-functional use cases effortlessly.
  • Exceptional speed: Middy has been meticulously crafted to optimise your Lambda functions for speed. Its streamlined core keeps Lambda sizes compact and cold starts under control. You can add only the components you require!
  • Extensibility: Need more customisation? Crafting your own custom middleware is straightforward. Plus, if that’s not enough, you can even expand Middy’s capabilities through its hooks.

Supported in the AWS Lambda Powertools for Typescript.

AWS Lambda Powertools for TypeScript seamlessly integrates with Middy, reducing the manual setup required for many essential features.

Whether you’re coding in TypeScript or JavaScript, the utility instrumentation remains consistent. This compatibility ensures optimal performance of your serverless applications, regardless of your language preference.

Middy is an Open-Source Project

If you want to contribute to Middy you’d be more than welcome. We’d love to hear your feedback.

Learn more

Learn more about Middy with the AWS Bites Podcast

Check out what the creator, Luciano Mammino, has to say about Middy.

Have a Question?

Get in touch with a member of our team below.