{"id":23155080,"url":"https://github.com/tengattack/lambda","last_synced_at":"2025-04-04T16:45:37.598Z","repository":{"id":38968029,"uuid":"242999275","full_name":"tengattack/lambda","owner":"tengattack","description":"lambda edge scripts for Amazon CloudFront","archived":false,"fork":false,"pushed_at":"2022-06-01T23:40:00.000Z","size":276,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-10T02:21:40.693Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tengattack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-25T12:53:54.000Z","updated_at":"2020-03-01T04:23:25.000Z","dependencies_parsed_at":"2022-09-05T22:10:16.408Z","dependency_job_id":null,"html_url":"https://github.com/tengattack/lambda","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/tengattack%2Flambda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tengattack%2Flambda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tengattack%2Flambda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tengattack%2Flambda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tengattack","download_url":"https://codeload.github.com/tengattack/lambda/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247215890,"owners_count":20903003,"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":[],"created_at":"2024-12-17T20:15:18.852Z","updated_at":"2025-04-04T16:45:37.580Z","avatar_url":"https://github.com/tengattack.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lambda\n\nAmazon CloudFront Edge Scripts\n\n## viewer-request\n\nTransform URL `/\u003cpath\u003e?lambda=style/\u003cstyle\u003e` to `/lambda!\u003cstyle\u003e/\u003cpath\u003e` in viewer request function.\n\nBTW, Invalidation path should be transformed URLs, like `/lambda!webp/*`.\n\n## origin-response\n\nParse the URL with `/lambda!\u003cstyle\u003e/` prefix and convert source image to specified style image (save to Amazon S3 for future access directly).\n\n### Style\n\n- `avatar` (180x180, webp format)\n- `avatar_jpg` (180x180, jpeg format)\n- `webp` (webp format)\n\n### MozJPEG support\n\nBuild mozjpeg on CentOS 7:\n\n```sh\nscl enable devtoolset-7 bash\ncd /path/to/build\ngit clone https://github.com/mozilla/mozjpeg.git\ncd mozjpeg\ncmake -DPNG_SUPPORTED=0 -DWITH_JPEG8=1 -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib64 .\nmake\n\n# copy library\ncp libjpeg.so.8.2.2 /path/to/lambda/lib/\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftengattack%2Flambda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftengattack%2Flambda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftengattack%2Flambda/lists"}