{"id":18821173,"url":"https://github.com/compwright/aws-serverless-koa","last_synced_at":"2025-04-14T00:26:28.748Z","repository":{"id":56338701,"uuid":"147235937","full_name":"compwright/aws-serverless-koa","owner":"compwright","description":"This library enables you to utilize AWS Lambda and Amazon API Gateway to respond to web and API requests using the Koa.js application framework","archived":false,"fork":false,"pushed_at":"2020-12-16T15:59:34.000Z","size":7,"stargazers_count":40,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T14:11:27.376Z","etag":null,"topics":["koa","lambda","serverless"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/aws-serverless-koa","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/compwright.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"compwright"}},"created_at":"2018-09-03T17:41:24.000Z","updated_at":"2025-04-08T12:47:23.000Z","dependencies_parsed_at":"2022-08-15T16:50:52.893Z","dependency_job_id":null,"html_url":"https://github.com/compwright/aws-serverless-koa","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/compwright%2Faws-serverless-koa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compwright%2Faws-serverless-koa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compwright%2Faws-serverless-koa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compwright%2Faws-serverless-koa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/compwright","download_url":"https://codeload.github.com/compwright/aws-serverless-koa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248800112,"owners_count":21163404,"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":["koa","lambda","serverless"],"created_at":"2024-11-08T00:35:20.690Z","updated_at":"2025-04-14T00:26:28.699Z","avatar_url":"https://github.com/compwright.png","language":"JavaScript","funding_links":["https://github.com/sponsors/compwright"],"categories":[],"sub_categories":[],"readme":"# aws-serverless-koa\n\nThis library enables you to utilize AWS Lambda and Amazon API Gateway to respond to web and API requests using the Koa.js application framework\n\n## Installation\n\n```bash\n$ npm install --save aws-serverless-koa\n```\n\n## Usage\n\n```javascript\nconst Koa = require('koa');\nconst serverless = require('aws-serverless-koa');\n\nconst app = new Koa();\n\napp.use(async ctx =\u003e {\n  ctx.body = 'Hello, world!';\n});\n\nmodule.exports.handler = serverless(app);\n```\n\n## Middleware\n\nThis package includes middleware to easily get the event object Lambda receives from API Gateway (based on `aws-serverless-express/middleware`):\n\n```\nconst awsServerlessKoaMiddleware = require('aws-serverless-koa/middleware');\napp.use(awsServerlessKoaMiddleware());\napp.use(ctx =\u003e {\n  ctx.body = ctx.apiGateway.event\n});\n```\n\n## License\n\nMIT license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompwright%2Faws-serverless-koa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcompwright%2Faws-serverless-koa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompwright%2Faws-serverless-koa/lists"}