{"id":18782339,"url":"https://github.com/lukeshay/buntime","last_synced_at":"2026-05-06T11:38:45.405Z","repository":{"id":65296049,"uuid":"589311214","full_name":"lukeshay/buntime","owner":"lukeshay","description":"An AWS Lambda runtime for Bun","archived":false,"fork":false,"pushed_at":"2023-12-15T17:39:51.000Z","size":51,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-21T07:47:43.299Z","etag":null,"topics":["aws","aws-lambda","bun"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/lukeshay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-15T19:02:37.000Z","updated_at":"2025-04-23T09:19:12.000Z","dependencies_parsed_at":"2023-12-15T18:50:11.298Z","dependency_job_id":null,"html_url":"https://github.com/lukeshay/buntime","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lukeshay/buntime","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukeshay%2Fbuntime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukeshay%2Fbuntime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukeshay%2Fbuntime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukeshay%2Fbuntime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lukeshay","download_url":"https://codeload.github.com/lukeshay/buntime/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukeshay%2Fbuntime/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32692714,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T08:33:17.875Z","status":"ssl_error","status_checked_at":"2026-05-06T08:33:17.221Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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","aws-lambda","bun"],"created_at":"2024-11-07T20:35:40.894Z","updated_at":"2026-05-06T11:38:45.363Z","avatar_url":"https://github.com/lukeshay.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Buntime\n\nAn AWS Lambda runtime for [Bun](https://bun.sh/)\n\nThis exposes the same API as the Node.js runtime. If you are looking how to handle different events, you can refer to AWS documentation. The only difference is we do not support callbacks and the following properties on the context object:\n\n- `context.callbackWaitsForEmptyEventLoop`\n- `context.done`\n- `context.fail`\n- `context.succeed`\n\n## Getting Started\n\n### Prerequisites\n\nAdd these secrets to the repository. They must have access to publish lambda layers:\n\n- `AWS_ACCESS_KEY_ID`\n- `AWS_SECRET_ACCESS_KEY`\n\n1. Clone or fork this repository\n2. Go to the Actions tab\n3. Select the action name `Publish Layer`\n4. Run the workflow with your desired parameters\n\n## Example lambda handler\n\n```ts\nimport type {\n  APIGatewayProxyEventV2,\n  APIGatewayProxyResultV2,\n  Context,\n} from \"aws-lambda\";\n\nexport default {\n  handler(\n    event: APIGatewayProxyEventV2,\n    context: Context\n  ): APIGatewayProxyResultV2 {\n    return {\n      statusCode: 200,\n      headers: {\n        \"Content-Type\": \"text/html\",\n      },\n      body: \"Hello from Buntime!\",\n    };\n  },\n};\n```\n\n## Tips\n\n### Testing locally\n\nAn example can be found in \u003c`./examples/local.ts`\u003e. In this example, it imports the handler from \u003c`./examples/handler.ts`\u003e and calls it in a simple HTTP server.\n\n### Getting the trace id\n\nWe dynamically set the trace id environment variable so you _**MUST**_ access it using `process.env._X_AMZN_TRACE_ID`. `Bun.env._X_AMZN_TRACE_ID` will not work.\n\n## Resources\n\n- \u003chttps://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukeshay%2Fbuntime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukeshay%2Fbuntime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukeshay%2Fbuntime/lists"}