{"id":37729511,"url":"https://github.com/lambda-lambda-lambda/lambda-edge-server","last_synced_at":"2026-01-16T13:47:48.580Z","repository":{"id":148263333,"uuid":"618951956","full_name":"lambda-lambda-lambda/lambda-edge-server","owner":"lambda-lambda-lambda","description":":loop: AWS CloudFront Lambda@Edge function handler emulator.","archived":false,"fork":false,"pushed_at":"2026-01-14T21:52:02.000Z","size":277,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-15T04:58:54.953Z","etag":null,"topics":["aws","cloudfront","emulator","functions","lambda-edge","nodejs"],"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/lambda-lambda-lambda.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-03-25T20:28:41.000Z","updated_at":"2026-01-14T21:49:36.000Z","dependencies_parsed_at":"2024-06-05T18:28:05.952Z","dependency_job_id":"244bc1c1-5685-47d6-a116-69b9eb69deec","html_url":"https://github.com/lambda-lambda-lambda/lambda-edge-server","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/lambda-lambda-lambda/lambda-edge-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambda-lambda-lambda%2Flambda-edge-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambda-lambda-lambda%2Flambda-edge-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambda-lambda-lambda%2Flambda-edge-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambda-lambda-lambda%2Flambda-edge-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lambda-lambda-lambda","download_url":"https://codeload.github.com/lambda-lambda-lambda/lambda-edge-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambda-lambda-lambda%2Flambda-edge-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28479034,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","cloudfront","emulator","functions","lambda-edge","nodejs"],"created_at":"2026-01-16T13:47:47.793Z","updated_at":"2026-01-16T13:47:48.563Z","avatar_url":"https://github.com/lambda-lambda-lambda.png","language":"JavaScript","readme":"# lambda-edge-server\n\n[![npm version](https://badge.fury.io/js/lambda-edge-server.svg)](https://badge.fury.io/js/lambda-edge-server) [![](https://img.shields.io/npm/dm/lambda-edge-server.svg)](https://www.npmjs.com/package/lambda-edge-server) [![Build Status](https://api.travis-ci.com/lambda-lambda-lambda/lambda-edge-server.svg?branch=master)](https://app.travis-ci.com/github/lambda-lambda-lambda/lambda-edge-server) [![Install size](https://packagephobia.com/badge?p=lambda-edge-server)](https://packagephobia.com/result?p=lambda-edge-server) [![](https://img.shields.io/github/v/release/lambda-lambda-lambda/lambda-edge-server)](https://github.com/lambda-lambda-lambda/lambda-edge-server/releases) [![NO AI](https://raw.githubusercontent.com/nuxy/no-ai-badge/master/badge.svg)](https://github.com/nuxy/no-ai-badge)\n\nAWS [CloudFront Lambda@Edge](https://docs.aws.amazon.com/lambda/latest/dg/lambda-edge.html) function handler emulator.\n\nProvides a translation layer between [Node.js](https://nodejs.org) HTTP server and [Lambda](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-generating-http-responses.html) function response format.  The goal is simplify local testing without the need for complex dependencies.\n\n## Dependencies\n\n- [Node.js](https://nodejs.org)\n\n## Installation\n\nInstall this package using [NPM](https://npmjs.com):\n\n    $ npm install lambda-edge-server\n\n## Lambda function handlers\n\nThe following `origin-request/origin-response` format is currently supported.\n\n### Synchronous example\n\n```javascript\n/**\n * @see AWS::Serverless::Function\n */\nexports.handler = function(event, context, callback) {\n  const response = {\n    status: '200',\n    statusDescription: 'OK',\n    headers: {\n      'cache-control': [{\n        key: 'Cache-Control',\n        value: 'max-age=0'\n      }],\n      'content-type': [{\n        key: 'Content-Type',\n        value: 'text/html'\n      }]\n    },\n    body: 'Success',\n  };\n\n  callback(null, response);\n};\n```\n\n### Asynchronous example\n\n```javascript\n/**\n * @see AWS::Serverless::Function\n */\nexports.handler = async function(event) {\n  const response = {\n    status: '200',\n    statusDescription: 'OK',\n    headers: {\n      'cache-control': [{\n        key: 'Cache-Control',\n        value: 'max-age=0'\n      }],\n      'content-type': [{\n        key: 'Content-Type',\n        value: 'text/html'\n      }]\n    },\n    body: 'Success',\n  };\n\n  return response;\n};\n```\n\n## Developers\n\n### CLI options\n\nLaunch [HTTP server instance](http://localhost:3000), run the function:\n\n    $ npm start ./path/to/script.js\n\nRun [ESLint](https://eslint.org/) on project sources:\n\n    $ npm run lint\n\nRun [Mocha](https://mochajs.org) integration tests:\n\n    $ npm run test\n\n## References\n\n- [Example origin request](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-event-structure.html#example-origin-request)\n- [Example origin-response](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-event-structure.html#lambda-event-structure-response)\n\n## Contributions\n\nIf you fix a bug, or have a code you want to contribute, please send a pull-request with your changes. (Note: Before committing your code please ensure that you are following the [Node.js style guide](https://github.com/felixge/node-style-guide))\n\n## Versioning\n\nThis package is maintained under the [Semantic Versioning](https://semver.org) guidelines.\n\n## License and Warranty\n\nThis package is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.\n\n_lambda-edge-server_ is provided under the terms of the [MIT license](http://www.opensource.org/licenses/mit-license.php)\n\n[AWS](https://aws.amazon.com) is a registered trademark of Amazon Web Services, Inc.\n\n## Author\n\n[Marc S. Brooks](https://github.com/nuxy)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flambda-lambda-lambda%2Flambda-edge-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flambda-lambda-lambda%2Flambda-edge-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flambda-lambda-lambda%2Flambda-edge-server/lists"}