{"id":13505545,"url":"https://github.com/wulfmann/auto-cdk","last_synced_at":"2025-04-28T12:27:27.152Z","repository":{"id":40766142,"uuid":"268932511","full_name":"wulfmann/auto-cdk","owner":"wulfmann","description":"Effortless APIs with CDK","archived":false,"fork":false,"pushed_at":"2023-01-07T18:46:49.000Z","size":547,"stargazers_count":24,"open_issues_count":42,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T09:41:19.098Z","etag":null,"topics":["api","api-gateway","aws","aws-lambda","cdk","generator","webpack"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/wulfmann.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-02T23:48:32.000Z","updated_at":"2024-08-13T03:40:13.000Z","dependencies_parsed_at":"2023-02-07T21:16:28.995Z","dependency_job_id":null,"html_url":"https://github.com/wulfmann/auto-cdk","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/wulfmann%2Fauto-cdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wulfmann%2Fauto-cdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wulfmann%2Fauto-cdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wulfmann%2Fauto-cdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wulfmann","download_url":"https://codeload.github.com/wulfmann/auto-cdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251312863,"owners_count":21569310,"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":["api","api-gateway","aws","aws-lambda","cdk","generator","webpack"],"created_at":"2024-08-01T00:01:09.676Z","updated_at":"2025-04-28T12:27:27.106Z","avatar_url":"https://github.com/wulfmann.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","Construct Libraries","aws"],"sub_categories":["APIs"],"readme":"# Auto CDK\n\n`auto-cdk` lets you generate an api gateway with lambda integrations based on the filesystem. It makes use of [AWS CDK](https://aws.amazon.com/cdk/) to generate cloudformation stacks, and [Webpack](https://webpack.js.org) for bundling and code-splitting.\n\n**Caveats**\n\nCurrently this project only aims to build and package node/typescript-based integrations. It is on the roadmap to support more, but will not be available until a later version.\n\n## Quickstart\n\n```bash\nyarn add auto-cdk\n```\n\nCreate an `api` directory and add a file to it that exports a function named `handler`:\n\n```bash\n$ mkdir api \u0026\u0026 touch api/index.ts\n```\n\n```js\n// api/index.ts\n\nexports.handler = (event, ctx) =\u003e {\n  return {\n    statusCode: 200,\n    body: 'hello world',\n    headers: {\n      'Content-Type': 'text/html'\n    }\n  }\n}\n```\n\nRun:\n\n```bash\n$ yarn dev\n```\n\nYou should now have webpack auto-compiling when your source changes, and a cdk stack that has been generated in `cdk.out`.\n\n### Bonus\n\nIf you install [AWS sam-cli](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html), you can run the api on localhost with the following:\n\n```bash\n$ sam local start-api cdk.out/*.template.json\n```\n\nView more examples [here](/docs/examples).\n\n## Features\n\n* Automatic CDK Stack Generation\n* Code-Splitting and Bundling with Webpack\n* Out of the box typescript support\n\n## Contributing\n\nIf you would like to make a contribution or learn more about running this project locally, please review the [Contributing Documentation](/CONTRIBUTING.md).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwulfmann%2Fauto-cdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwulfmann%2Fauto-cdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwulfmann%2Fauto-cdk/lists"}