{"repo":"middyjs/middy","free":true,"listed":false,"github":"https://github.com/middyjs/middy","clone":"git clone https://github.com/middyjs/middy.git","description":"🛵 The stylish Node.js middleware engine for AWS Lambda 🛵","language":"JavaScript","stars":3904,"topics":["serverless","aws","aws-lambda","framework","middleware","lambda-handler","lambda","nodejs","javascript","typescript"],"license":"MIT","category":"ai-agents","readme_excerpt":"The stylish Node.js middleware engine for AWS Lambda Full documentation: https://middy.js.org &middot; LLM-friendly: llms.txt / llms-full.txt What is Middy Middy is a middleware engine for AWS Lambda on Node.js. It lets you keep your handler focused on business logic while attaching reusable steps for parsing, validation, auth, observability, error handling, and AWS service integration. - 52 official packages covering API Gateway, SQS, S3, DynamoDB, SNS, EventBridge, Kinesis, Kafka, WebSockets, and more - Built-in TypeScript types, Node.js = 22, ESM - Tiny core (only @middy/util , plus an optional peer dependency for durable functions), no AWS SDK in core - Routers for HTTP, WebSocket, and CloudFormation custom resources - First-class support for AWS Lambda response streaming and durable functions Install Example When to use Middy Use Middy for every production Lambda. Production handlers always need the same set of non-functional concerns: - Input validation at every trust boundary (HTTP body / headers / query, event-source payloads). - Structured logging and consistent error reporting . - Mapped HTTP error responses instead of stack traces. - Secrets and config fetched from a secure store with caching + cold-start prefetch. - CORS, security headers, response shaping for HTTP APIs. - Authentication for anything exposed to the internet. - Partial-batch failure handling for SQS / Kinesis / DynamoDB Streams / Kafka / S3 Batch. - Graceful pre-timeout responses so clients see 408","default_branch":null,"files":null,"tree":[],"storefront":"/r/middyjs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/middyjs/middy/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}