https://github.com/epilot-dev/aws-lambda-utility-middlewares
AWS Lambda Utility Middlewares, a repository designed to host a collection of useful AWS Lambda Utilities developed by our team, which may be beneficial to the broader community.
https://github.com/epilot-dev/aws-lambda-utility-middlewares
aws-lambda middlewares middy typescript
Last synced: 7 months ago
JSON representation
AWS Lambda Utility Middlewares, a repository designed to host a collection of useful AWS Lambda Utilities developed by our team, which may be beneficial to the broader community.
- Host: GitHub
- URL: https://github.com/epilot-dev/aws-lambda-utility-middlewares
- Owner: epilot-dev
- License: mit
- Created: 2023-12-15T16:51:53.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-05T15:56:00.000Z (8 months ago)
- Last Synced: 2025-03-05T16:39:52.381Z (7 months ago)
- Topics: aws-lambda, middlewares, middy, typescript
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@epilot/large-response-middleware
- Size: 5.34 MB
- Stars: 2
- Watchers: 6
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
[](https://github.com/epilot-dev/aws-lambda-utility-middlewares/actions/workflows/ci.yml)
[](https://github.com/epilot-dev/aws-lambda-utility-middlewares/blob/main/)
## AWS Lambda Utility Middlewares
This repository is designed to host a collection of useful AWS Lambda Utilities developed by our team, which may be beneficial to the broader community.
## Middlewares
- [Large Response Middleware](./packages/large-response-middleware/): AWS Lambda has a known limitation regarding the payload size of responses, which is currently set at 6MB. This middleware allows a service to log and save large responses to an S3 bucket, enabling developers to investigate the causes of such large responses. Furthermore, this middleware accepts a special header that allows the rewriting of the response with a $ref pointing to the large payload stored in S3, enabling clients to recover gracefully.
- If you are using `axios` in the client, feel free to try our interceptor [Axios Large Response](./packages/axios-large-response/) allowing you to intercept large responses and easily fetch them from S3 with minimal effort.
- [Lambda Server-Timing Middleware (ext)](https://github.com/NishuGoel/lambda-server-timing/tree/main/src): Enables Lambdas to return responses with Server-Timing Header allowing to to pass request-specific timings from the backend to the browser. Allows a server to communicate performance metrics about the request-response cycle to the user agent. It also standardizes a JavaScript interface to enable applications to collect, process, and act on these metrics to optimize application delivery.
## Contributing
The packages contained in this repository are free and open-source software. Pull requests are welcome!
## Packages releases
This repository requires manual releases of the packages for now. We will be including `changesets` (or similar) in the future to manage packages releases in the monorepo.
## Disclaimer
This library is currently in beta. Expect missing features, incomplete documentation, and potential breaking changes in the API.