Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Powertools (logger, HTTP client, AWS clients, middlewares, patterns) for Lambda functions.
| Date | Stars |
|---|---|
| 2026-07-24 | 740 |
| 2026-07-25 | 740 |
| 2026-07-28 | 740 |
| 2026-07-30 | 740 |
| 2026-08-06 | 740 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
0.0
growth rate 0.00%/day
[](https://circleci.com/gh/getndazn/dazn-lambda-powertools)
# DAZN Lambda Powertools
`dazn-lambda-powertools` is a collection of middlewares, AWS clients and helper libraries that make working with lambda easier.
## Motivation
Writing Lambdas often involves the bootstrapping of specific tooling, like reading and forwarding on correlation-id's, emitting logs on a lambda timeout, and more.
Re-writing and maintaining this bootstrapping logic into every individual lambda can be a pain, so to prevent this re-work we created `dazn-lambda-powertools`.
## Usage
The quickest way to get setup is to use the opinionated [pattern basic](/packages/lambda-powertools-pattern-basic) package.
`npm install @dazn/lambda-powertools-pattern-basic`
```javascript
const wrap = require('@dazn/lambda-powertools-pattern-basic')
module.exports.handler = wrap(async (event, context) => {
return 42
})
```
For more control, you can pick and choose from the [individual packages](/packages).
## Powertools and Middy
All of the powertool middlewares use the [middy](https://github.com/middyjs/middy) library (**v2.x**), and therefore adhere to the middy API.
However, the other tools such as the clients are generic.
## What's in Powertools
An integrated suite of powertools for Lambda functions that reduces the effort to implement common lamdba tasks, such as dealing with correlation-ids.
* support correlation IDs
* debug logs are turned off in production, and are instead sampled for 1% of invocations
* debug logging decisions are respected by all the functions on a call chain
* HTTP requests always report both latency as well as response count metrics
## Overview of available tools
* [logger](/packages/lambda-powertools-logger): structured logging with JSON, configurable log levels, and integrates with other tools to support correlation IDs and sampling (only enable debug logs on 1% of invocations)
* [correlation IDs](/packages/lambda-powertools-correlation-ids): create and store correlation IDs that follow the DAZN naming convention
* [correlation IDs middleware](/packages/lambda-powertools-middleware-correlation-ids): automatically extract correlation IDs from the invocation event
* [sample logging middleware](/packages/lambda-powertools-middleware-sample-logging): enable debug logging for 1% of invocations, or when upstream caller has made the decision to enable debug logging
* [obfuscater middleware](/packages/lambda-powertools-middleware-obfuscater): allows you to obfuscate the invocation event so that sensitive data (e.g. PII) is not logged accidentally
* [log timeout middleware](/packages/lambda-powertools-middleware-log-timeout): logs an error message when a function invocation times out
* [stop infinite loop middleware](/packages/lambda-powertools-middleware-stop-infinite-loop): stops infinite loops
### Client libraries
* [http client](/packages/lambda-powertools-http-client): HTTP client that automatically forwards any correlation IDs you have captured or created, and records both latency as well as response count metrics
* [CloudWatchEvents client](/packages/lambda-powertools-cloudwatchevents-client): CloudWatchEvents client that automatically forwards any correlation IDs you have captured or created when you put events to an event bus
* [EventBridge client](/packages/lambda-powertools-eventbridge-client): EventBridge client that automatically forwards any correlation IDs you have captured or created when you put events to an event bus
* [SNS client](/packages/lambda-powertools-sns-client): SNS client that automatically forwards any correlation IDs you have captured or created when you publish a message to SNS
* [SQS client](/packages/lambda-powertools-sqs-client): SQS client that automatically forwards any correlation IDs you have captured or created when you publish a message to SQS
* [Kinesis client](/packages/lambda-powertools-kinesisExcerpt of 10,560 characters
Read on GitHubYan Cui · United Kingdom
261
39
34
18
16
15
13
6
3
3
2
R Max Espinoza · Milence · Netherlands
2
2
2
1
Will Heslam
1
1
1
1
Takahiro Horike · Serverless Operations, Inc · Japan
1
Would you bet a product on this? Bounded 0–100 and slow moving.
matched fp:40705d0e6d69146e, topic:serverless