{"id":28558541,"url":"https://github.com/shelfio/aws-lambda-brotli-unpacker","last_synced_at":"2025-06-10T08:09:11.061Z","repository":{"id":37580101,"uuid":"156017826","full_name":"shelfio/aws-lambda-brotli-unpacker","owner":"shelfio","description":"Unpacks large Lambda binaries to /tmp","archived":false,"fork":false,"pushed_at":"2025-05-28T00:42:29.000Z","size":688,"stargazers_count":9,"open_issues_count":3,"forks_count":3,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-05-28T01:35:03.937Z","etag":null,"topics":["aws-lambda","brotli","node-module","nodejs","npm-package","serverless"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/shelfio.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,"zenodo":null}},"created_at":"2018-11-03T19:43:38.000Z","updated_at":"2025-05-28T00:42:32.000Z","dependencies_parsed_at":"2024-01-10T23:25:27.166Z","dependency_job_id":"21622ee2-c2b4-436f-9a9a-790f49b09b7c","html_url":"https://github.com/shelfio/aws-lambda-brotli-unpacker","commit_stats":{"total_commits":239,"total_committers":7,"mean_commits":"34.142857142857146","dds":0.2845188284518828,"last_synced_commit":"068a1e0339d088845ff46b45af2059cea1f7551c"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shelfio%2Faws-lambda-brotli-unpacker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shelfio%2Faws-lambda-brotli-unpacker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shelfio%2Faws-lambda-brotli-unpacker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shelfio%2Faws-lambda-brotli-unpacker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shelfio","download_url":"https://codeload.github.com/shelfio/aws-lambda-brotli-unpacker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shelfio%2Faws-lambda-brotli-unpacker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259033838,"owners_count":22795772,"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","brotli","node-module","nodejs","npm-package","serverless"],"created_at":"2025-06-10T08:09:09.633Z","updated_at":"2025-06-10T08:09:11.035Z","avatar_url":"https://github.com/shelfio.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aws-lambda-brotli-unpacker [![CircleCI](https://circleci.com/gh/shelfio/aws-lambda-brotli-unpacker/tree/master.svg?style=svg\u0026circle-token=a31c3d7699a00ad54a4a8c3fce9e8636973c81f3)](https://circleci.com/gh/shelfio/aws-lambda-brotli-unpacker/tree/master) ![](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)\n\n\u003e Unpacks large Lambda binaries to /tmp, such as Tesseract, LibreOffice, Google Chrome, etc\n\nInspired by [chrome-aws-lambda](https://github.com/alixaxel/chrome-aws-lambda)\n\nUsed in projects: [aws-lambda-tesseract](https://github.com/shelfio/aws-lambda-tesseract)\n\n## Install\n\n```\n$ yarn add @shelf/aws-lambda-brotli-unpacker\n```\n\nVersion 1.x works with Node 10.x \u0026 12.x only. For Node 8.10 use v0.0.2\n\n## Test\n\nNeeds Docker installed.\n\n```\n$ npm test\n```\n\n## Usage\n\n\u003e Q: Why do I need this package?\n\nA: It helps if you want to deploy pre-compiled software to use in Lambda. See list of projects where it is used above.\n\n\u003e Q: Why bother?\n\nA: Lambda environment has limited software installed. This package helps ship large binaries compiled for Lambda\nwhich unpack to `/tmp` folder when Lambda starts.\n\n\u003e Q: Why `/tmp`?\n\nA: Lambda has [500 MB of storage](https://docs.aws.amazon.com/lambda/latest/dg/running-lambda-code.html) in `/tmp`\n\n\u003e Q: Why brotli?\n\nA: This compression algorithm is known for great speed/size ration. Perfect for scarce Lambda resources.\n\n## Example\n\n```js\nconst {unpack} = require('@shelf/aws-lambda-brotli-unpacker');\nconst {execSync} = require('child_process');\n\nconst inputPath = path.join(__dirname, '..', 'bin', 'tt.tar.br'); // for example, tesseract\nconst outputPath = '/tmp/tesseract/tesseract';\n\nmodule.exports.handler = async event =\u003e {\n  await unpack({inputPath, outputPath});\n\n  execSync(`${outputPath} -l eng image.png`);\n};\n```\n\n## Publish\n\n```sh\n$ git checkout master\n$ yarn version\n$ yarn publish\n$ git push origin master --tags\n```\n\n## License\n\nMIT © [Shelf](https://shelf.io)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshelfio%2Faws-lambda-brotli-unpacker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshelfio%2Faws-lambda-brotli-unpacker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshelfio%2Faws-lambda-brotli-unpacker/lists"}