{"id":15011386,"url":"https://github.com/vercel-community/bun","last_synced_at":"2025-04-12T03:30:58.717Z","repository":{"id":194153890,"uuid":"690221904","full_name":"vercel-community/bun","owner":"vercel-community","description":"🐰 Bun runtime for ▲ Vercel Serverless Functions","archived":false,"fork":false,"pushed_at":"2023-10-02T20:27:45.000Z","size":33,"stargazers_count":100,"open_issues_count":4,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T23:22:10.797Z","etag":null,"topics":["bun","javascript","nodejs","serverless","typescript","vercel"],"latest_commit_sha":null,"homepage":"https://bun-vercel.vercel.app","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/vercel-community.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-09-11T19:16:17.000Z","updated_at":"2025-03-22T16:53:46.000Z","dependencies_parsed_at":"2023-10-03T01:37:31.883Z","dependency_job_id":null,"html_url":"https://github.com/vercel-community/bun","commit_stats":{"total_commits":29,"total_committers":1,"mean_commits":29.0,"dds":0.0,"last_synced_commit":"3aa775bec542c2bdeff8f78c6e0442fe23bbc1df"},"previous_names":["andrewbarba/bun-vercel"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vercel-community%2Fbun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vercel-community%2Fbun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vercel-community%2Fbun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vercel-community%2Fbun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vercel-community","download_url":"https://codeload.github.com/vercel-community/bun/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248512497,"owners_count":21116613,"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":["bun","javascript","nodejs","serverless","typescript","vercel"],"created_at":"2024-09-24T19:41:01.234Z","updated_at":"2025-04-12T03:30:57.988Z","avatar_url":"https://github.com/vercel-community.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bun-vercel\n\nRun [Bun](https://bun.sh) on Vercel Serverless Functions\n\n[https://bun-vercel.vercel.app/](https://bun-vercel.vercel.app/)\n\n\u003e This is an experimental project and should not be used in production. This project is not endorsed by Vercel.\n\n```typescript\n// src/main.ts\nimport { type Server } from \"bun\"\n\nexport default {\n  async fetch(request: Request, server: Server) {\n    return new Response(\"Hello from Bun on Vercel\", {\n      status: 200,\n      headers: { \"Content-Type\": \"text/plain\" }\n    })\n  }\n}\n```\n\n## Get Started\n\nThere are two ways to deploy your project to Vercel:\n\n1. GitHub integration\n2. Manually from your computer\n\n### GitHub Integration\n\n\u003e Note: An issue in Bun must be resolved before this method is fully operational\n\n#### 1. Update your package.json with `bun-vercel`\n\n```json\n{\n  \"devDependencies\": {\n    \"bun-vercel\": \"^1.0.0-alpha.4\",\n  }\n}\n```\n\n#### 2. Update the `build` script run bun-vercel\n\n```json\n{\n  \"scripts\": {\n    \"build\": \"bun-vercel ./src/main.ts\"\n  }\n}\n```\n\n#### 3. Add a `vercel.json` with your build command\n\n```json\n{\n  \"buildCommand\": \"bun run build\"\n}\n```\n\n### Manually\n\nBefore starting you should follow the same setup steps as the GitHub integration, as they will be needed regardless.\n\n\u003e Note: To deploy from your computer you must have Docker installed so we can build for Amazon Linux\n\n1. Install the Vercel CLI and run `vercel link`\n2. Run `bun run build`\n3. Run `vercel deploy --prebuilt --prod`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvercel-community%2Fbun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvercel-community%2Fbun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvercel-community%2Fbun/lists"}