{"id":13716722,"url":"https://github.com/nathancahill/aws-serverless-micro","last_synced_at":"2025-04-30T11:32:57.037Z","repository":{"id":34802702,"uuid":"183823898","full_name":"nathancahill/aws-serverless-micro","owner":"nathancahill","description":"Deploy Micro functions on AWS Lambda","archived":false,"fork":false,"pushed_at":"2023-01-05T16:16:10.000Z","size":429,"stargazers_count":14,"open_issues_count":6,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T01:22:59.122Z","etag":null,"topics":["aws-lambda","micro","serverless","zeit"],"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/nathancahill.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}},"created_at":"2019-04-27T21:37:55.000Z","updated_at":"2025-03-29T02:08:54.000Z","dependencies_parsed_at":"2023-01-15T09:31:21.931Z","dependency_job_id":null,"html_url":"https://github.com/nathancahill/aws-serverless-micro","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathancahill%2Faws-serverless-micro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathancahill%2Faws-serverless-micro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathancahill%2Faws-serverless-micro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathancahill%2Faws-serverless-micro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nathancahill","download_url":"https://codeload.github.com/nathancahill/aws-serverless-micro/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251691469,"owners_count":21628324,"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","micro","serverless","zeit"],"created_at":"2024-08-03T00:01:13.678Z","updated_at":"2025-04-30T11:32:56.739Z","avatar_url":"https://github.com/nathancahill.png","language":"JavaScript","funding_links":[],"categories":["Deployment Tools"],"sub_categories":["Utilities"],"readme":"![CI](https://github.com/nathancahill/aws-serverless-micro/workflows/CI/badge.svg?branch=master)\n[![Coverage Status](https://coveralls.io/repos/github/nathancahill/aws-serverless-micro/badge.svg?branch=master)](https://coveralls.io/github/nathancahill/aws-serverless-micro?branch=master)\n![Dependencies](https://img.shields.io/badge/dependencies-1-brightgreen.svg)\n\n# AWS Serverless Micro\n\nRun [Micro](https://github.com/zeit/micro/) functions on AWS Lambda. A very thin\nlayer for Micro functions that does two things:\n\n-   Reshape an API Gateway `event` object to [`http.IncomingMessage`](https://nodejs.org/api/http.html#http_class_http_incomingmessage)\n-   Marshall the returned [`http.ServerResponse`](https://nodejs.org/api/http.html#http_class_http_serverresponse) to a Lambda Proxy object.\n\nInspired by [awslabs/aws-serverless-express](https://github.com/awslabs/aws-serverless-express/).\n\n_With **Micro**:_\n\n```js\n// The Micro function\n$ cat my-api.js\nmodule.exports = async () =\u003e 'Welcome to Micro'\n\n// Running with `micro`\n$ micro my-api.js\nmicro: Accepting connections on port 3000\n```\n\n_With **aws-serverless-micro**:_\n\n```js\n// The Micro function\n$ cat my-api.js\nmodule.exports = async () =\u003e 'Welcome to Micro'\n\n// Wrapped in `aws-serverless-micro`\n$ cat lambda.js\nmodule.exports = {\n    handler: require('aws-serverless-micro')(require('./my-api')),\n}\n\n// Deploy `lambda.handler` with the tool of your choice\n```\n\n## Install\n\n```\n$ yarn add aws-serverless-micro\n```\n\n```\n$ npm install aws-serverless-micro\n```\n\naws-serverless-micro targets Node.js v8.10 or higher as this is the version running on AWS Lambda.\n\n## Compatability\n\nThis libary is **100% compatible** with the Micro API. The [full Micro test suite](https://github.com/nathancahill/aws-serverless-micro/tree/master/test/fixtures/micro)\nis run against the library with 100% coverage.\n\n-   [x] micro.send\n-   [x] micro.sendError\n-   [x] micro.createError\n-   [x] micro.buffer\n-   [x] micro.text\n-   [x] micro.json\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathancahill%2Faws-serverless-micro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnathancahill%2Faws-serverless-micro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathancahill%2Faws-serverless-micro/lists"}