{"id":16909704,"url":"https://github.com/drager/serverless-hapi","last_synced_at":"2025-03-17T07:30:56.493Z","repository":{"id":30820452,"uuid":"125921564","full_name":"drager/serverless-hapi","owner":"drager","description":"Use hapi with the serverless framework. Works with AWS lambda, Azure functions and Google Cloud Platform functions.","archived":false,"fork":false,"pushed_at":"2023-01-23T23:22:23.000Z","size":1685,"stargazers_count":15,"open_issues_count":32,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-01T23:14:21.193Z","etag":null,"topics":["aws-lambda","azure-functions","functions","hapi","hapijs","lambda","lambda-functions","serverless","serverless-framework"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drager.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":null,"support":null}},"created_at":"2018-03-19T21:17:43.000Z","updated_at":"2021-10-06T11:45:59.000Z","dependencies_parsed_at":"2023-02-13T04:46:11.261Z","dependency_job_id":null,"html_url":"https://github.com/drager/serverless-hapi","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drager%2Fserverless-hapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drager%2Fserverless-hapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drager%2Fserverless-hapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drager%2Fserverless-hapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drager","download_url":"https://codeload.github.com/drager/serverless-hapi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221673780,"owners_count":16861705,"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","azure-functions","functions","hapi","hapijs","lambda","lambda-functions","serverless","serverless-framework"],"created_at":"2024-10-13T18:57:08.335Z","updated_at":"2024-10-27T12:12:50.733Z","avatar_url":"https://github.com/drager.png","language":"TypeScript","readme":"# serverless-hapi\n\nUse hapi with the [serverless framework](https://github.com/serverless/serverless).\n\nThe latest version of `serverless-hapi` works with hapi \u003e= 17.\nFor usage with hapi 16, use version `2.0.x` of `serverless-hapi`.\nSee [2.0.x branch](https://github.com/drager/serverless-hapi/tree/2.0.x).\n\nWorks with Amazon Lambda and Azure Functions.\n\n## Usage\n\nA simple usage example:\n\n```typescript\nimport {APIGatewayEvent, Callback, Context} from 'aws-lambda'\nimport * as hapi from 'hapi'\nimport {serverlessHapi, ResponseData} from 'serverless-hapi'\n\nconst app = () =\u003e {\n  const server = new hapi.Server()\n\n  server.route({\n    method: 'GET',\n    path: '/hello',\n    handler: _request =\u003e ({message: 'Hello from hapi!'}),\n  })\n\n  return server\n}\n\nconst onInitError = (error: Error) =\u003e {\n  console.error(error)\n  throw error\n}\n\nexport const hello: (\n  event: APIGatewayEvent,\n  context: Context,\n  callback: Callback\n) =\u003e Promise\u003cResponseData | Error\u003e = serverlessHapi(app(), onInitError)\n```\n\nFor more examples, check out the [example folder](https://github.com/drager/serverless-hapi/tree/master/example).\n\n## Features and bugs\n\nPlease file feature requests and bugs at the [issue tracker][tracker].\n\n[tracker]: https://github.com/drager/serverless-hapi/issues\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrager%2Fserverless-hapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrager%2Fserverless-hapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrager%2Fserverless-hapi/lists"}