Skip to main content

Third-party middlewares

The following middlewares are created and maintained outside this project. We cannot guarantee for its functionality. If your middleware is missing, feel free to open a Pull Request.

Version 2.x - 5.x

  • dazn-lambda-powertools: A collection of middlewares, AWS clients and helper libraries that make working with lambda easier.
  • middy-ajv: AJV validator optimized for performance
  • middy-console-logger: Middleware for filtering logs printed over console logging methods. If the level of the console logging method is equal or bigger than configured level, the log is printed, Otherwise, it is ignored.
  • middy-event-loop-tracer: Middleware for dumping active tasks with their stacktraces in the event queue just before AWS Lambda function timeouts. So you can understand what was going on in the function when timeout happens.
  • middy-idempotent: idempotency middleware for middy
  • middy-invocation: Middleware for accessing current AWS Lambda invocation event and context from anywhere without need to passing event and context as arguments through your code.- middy-lesslog: Middleware for lesslog, a teeny-tiny and severless-ready logging utility
  • middy-jsonapi: JSONAPI middleware for middy
  • middy-lesslog: Middleware for lesslog, a teeny-tiny and severless-ready logging utility
  • middy-profiler: Middleware for profiling CPU on AWS Lambda during invocation and shows what methods/modules consume what percent of CPU time
  • middy-rds: Creates RDS connection using knex or pg
  • middy-recaptcha: reCAPTCHA validation middleware
  • middy-sparks-joi: Joi validator
  • @iress/middy-http-path-router: Routes AWS API Gateway events to handlers based on static and dynamic paths
  • @nhs/fhir-middy-error-handler: An error handler for use in an AWS Lambda returning FHIR compliant error messages as OperationOutcome resources. Used as part of the Prescriptions for Patients FHIR API.

Version 2.x - 3.x

  • aws-lambda-powertools-typescript: A suite of utilities for AWS Lambda Functions that makes structured logging, creating custom metrics asynchronously and tracing with AWS X-Ray easier

    • logger: Structured logging made easier, and a middleware to enrich log items with key details of the Lambda context
    • metrics: Custom Metrics created asynchronously via CloudWatch Embedded Metric Format (EMF)
    • parameters: The Parameters utility provides high-level functions to retrieve one or multiple parameter values from AWS Systems Manager Parameter Store, AWS Secrets Manager, AWS AppConfig, Amazon DynamoDB, or your own parameter store.
    • tracer: Utilities to trace Lambda function handlers, and both synchronous and asynchronous functions

Version 1.x