{"id":18003347,"url":"https://github.com/woss/aws-lambda-layer-sharp","last_synced_at":"2025-03-26T08:31:25.820Z","repository":{"id":73162681,"uuid":"208902553","full_name":"woss/aws-lambda-layer-sharp","owner":"woss","description":"AWS Lambda Layer custom routine that gives you access to Sharp image library  without installing, building and shipping the module with your functions. Just include it and use it.","archived":false,"fork":false,"pushed_at":"2024-12-23T09:33:21.000Z","size":14656,"stargazers_count":20,"open_issues_count":5,"forks_count":11,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-21T12:54:27.167Z","etag":null,"topics":["aws","lambda","layer","nodejs","serverless-framework","sharp"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/woss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-16T21:36:49.000Z","updated_at":"2024-12-23T09:33:26.000Z","dependencies_parsed_at":"2024-10-29T23:48:48.671Z","dependency_job_id":null,"html_url":"https://github.com/woss/aws-lambda-layer-sharp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woss%2Faws-lambda-layer-sharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woss%2Faws-lambda-layer-sharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woss%2Faws-lambda-layer-sharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woss%2Faws-lambda-layer-sharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/woss","download_url":"https://codeload.github.com/woss/aws-lambda-layer-sharp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245618777,"owners_count":20645066,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","lambda","layer","nodejs","serverless-framework","sharp"],"created_at":"2024-10-29T23:26:26.797Z","updated_at":"2025-03-26T08:31:25.813Z","avatar_url":"https://github.com/woss.png","language":"JavaScript","readme":"# AWS Layer for [Sharp](https://github.com/lovell/sharp) 🚀🚀🚀\n\n[AWS Lambda Layers](https://docs.aws.amazon.com/en_pv/lambda/latest/dg/configuration-layers.html) custom routine that gives you access to [Sharp image library](https://github.com/lovell/sharp) without installing, building and shipping the module with your functions. Just include it and use it.\n\nModule is built on amazonlinux docker image and it's 100% compatible with nodejs10.x lambda environment.\n\nThis layer gives you:\n\n- 🚀 fast iteration when dealing with functions that resize images\n- 📦 ~30MB smaller functions, just because you don't ship them with sharp\n\n## How to Use this layer\n\nEither check the `example` folder and follow the instruction on [how to run the example](#how-to-run-example), or in your AWS console add following ARN\n`arn:aws:lambda:eu-west-1:502686283826:layer:sharp:7` when you are adding the layer.\n\nThis is last stable version.\n\n## Deploy and build the layer yourself\n\n### Building the layer\n\nDocker must be installed.\n\nRun `docker-compose up --build` in the root of the project. After that you will get the zip file under `layers/sharp/out`. I'm not sure why would you do it, since last version is already provided and sharp hasn't seen any major changes in a while. But i guess everyone loves BUILDING 😍.\n\n### Deploying\n\nAgain, from root of the project run `yarn deploy`\n\n## How to run example\n\n```bash\ncd example\nyarn\nyarn start\n```\n\nThen visit the following link\n\n[http://localhost:4000/sharp?width=800\u0026metadata=true\u0026convolve=true](http://0.0.0.0:4000/sharp?width=800\u0026metadata=true\u0026convolve=true)\n\nto deploy run `yarn deploy` from the `example` folder\n\n## Image copyright\n\n`lucky.jpg` is owned by me\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwoss%2Faws-lambda-layer-sharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwoss%2Faws-lambda-layer-sharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwoss%2Faws-lambda-layer-sharp/lists"}