middyjs/middy
🛵 The stylish Node.js middleware engine for AWS Lambda 🛵 observed · 2026-08-28
Health v2 · maintenance only
95/100
- Activity 99
- Release rhythm 86
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 3.0
- age_days: 3317
- days_rel: 14
- days_push: 7
- n_releases_24m: 63
Adoption not part of the score
3903 stars · 398 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Middy is a Node.js middleware engine for AWS Lambda that lets developers attach modular, reusable middlewares (before/after/onError phases) around their Lambda handlers. It bundles a small core with many official middlewares for parsing, validation, auth, secrets fetching, observability, and error handling.
Use cases
- parse JSON bodies in Lambda API Gateway handlers
- validate Lambda event and response payloads with JSON Schema
- verify JWTs on incoming HTTP requests in Lambda
- fetch secrets from Secrets Manager or SSM in Lambda handlers
- add CORS and security headers to Lambda HTTP responses
- log Lambda input/output and errors for observability
- reduce boilerplate in serverless Lambda functions
When to choose
- you write AWS Lambda functions in Node.js and want clean separation of business logic from cross-cutting concerns
- you want off-the-shelf middlewares for API Gateway, JWT auth, validation, and AWS secrets
- cold-start size and performance matter and you want a minimal, opt-in middleware core
When to avoid
- your Lambda functions are in Python, Go, or another non-Node.js runtime
- you run Express or another full web server rather than Lambda handlers
- you need a general-purpose web framework with routing rather than a middleware engine
Facets
framework · maturity stable
middleware web-framework form-handling serialization logging auth caching cloud-computing backend developer-tools apis serverless cloud aws-lambda middleware-engine serverless-framework cold-start jwt secrets-manager ssm api-gateway serverless nodejs
10 sources
- readme: https://github.com/middyjs/middy · fetched 2026-08-28 · 48701a158370
- homepage: https://middy.js.org · fetched 2026-08-29 · d9f270ffc650
- site_page: https://middy.js.org/docs · fetched 2026-08-29 · 3fe16de052f9
- site_page: https://middy.js.org/docs/middlewares/intro · fetched 2026-08-29 · 1b7bbd99aef2
- site_page: https://middy.js.org/docs/events/intro · fetched 2026-08-29 · 55d616740ea2
- site_page: https://middy.js.org/docs/intro/utilities · fetched 2026-08-29 · af92e3ca942e
- site_page: https://middy.js.org/docs/writing-middlewares/intro · fetched 2026-08-29 · 94bb0aee5041
- site_page: https://middy.js.org/docs/intro/hooks · fetched 2026-08-29 · 9a8340d6f6db
- site_page: https://middy.js.org/docs/events/api-gateway-http · fetched 2026-08-29 · 3e09e080774a
- site_page: https://middy.js.org/docs/events/api-gateway-rest · fetched 2026-08-29 · b04853ec2188
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| middyjs/middy | main | 95 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem