{"repo":"pH200/sharp-layer","free":true,"listed":false,"github":"https://github.com/pH200/sharp-layer","clone":"git clone https://github.com/pH200/sharp-layer.git","description":"npm sharp for AWS Lambda layers, separated builds for arm64 and x64, minified and bundled with esbuild","language":"JavaScript","stars":119,"topics":["aws","aws-lambda","aws-lambda-layer","github-actions","sharp","sst","nodejs","npm"],"license":"Apache-2.0","category":"workflow-automation","readme_excerpt":"sharp for AWS Lambda Layers About The prebuilt sharp node module for AWS Lambda layer. Features - Built and tested automatically using GitHub Actions - Automatically releases sharp updates with GitHub Actions - Separated builds for arm64 and x64 - Minified and bundled with esbuild - Minimum 6.98 MB zip file to optimize cold start time Why use a bundled Lambda function? / Why separate build for arm64? Please check out Optimizing Node.js dependencies in AWS Lambda for details. A bundled and minified lambda function can be up to 70% faster for cold starts. The package size is also crucial for cold start performance. Download Releases Download latest release-arm64.zip or release-x64.zip Usage Check out aws: Creating and sharing Lambda layers for more details. This package can be used with sst. Check out docs.sst.dev: Lambda Layers and sst.dev: Resize Images for examples. Setting arm64 for sst functions Setting up a lambda layer for AWS SAM Providing a zip file locally actually works, even though it's not mentioned in the documentation. Build Fork this repo - Actions - Run build.yml References Umkus/lambda-layer-sharp - another maintained sharp lambda layer aws: Creating and sharing Lambda layers aws: Working with layers aws: Building layers sharp: Installation - AWS Lambda","default_branch":null,"files":null,"tree":[],"storefront":"/r/pH200","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/pH200/sharp-layer/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."}