{"id":15140259,"url":"https://github.com/tibdex/probot-serverless-now","last_synced_at":"2025-09-29T08:31:47.682Z","repository":{"id":57330810,"uuid":"159269188","full_name":"tibdex/probot-serverless-now","owner":"tibdex","description":"🤖 Probot Wrapper to run GitHub Apps as Lambdas in Zeit's Now 2.0","archived":true,"fork":false,"pushed_at":"2020-05-26T14:07:05.000Z","size":277,"stargazers_count":32,"open_issues_count":4,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-15T20:28:19.289Z","etag":null,"topics":["lambda","now","probot","serverless","zeit","zeit-now"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/tibdex.png","metadata":{"files":{"readme":"README.md","changelog":null,"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-11-27T03:17:00.000Z","updated_at":"2024-11-19T22:19:06.000Z","dependencies_parsed_at":"2022-09-09T08:12:08.252Z","dependency_job_id":null,"html_url":"https://github.com/tibdex/probot-serverless-now","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/tibdex%2Fprobot-serverless-now","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tibdex%2Fprobot-serverless-now/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tibdex%2Fprobot-serverless-now/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tibdex%2Fprobot-serverless-now/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tibdex","download_url":"https://codeload.github.com/tibdex/probot-serverless-now/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234604488,"owners_count":18859164,"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":["lambda","now","probot","serverless","zeit","zeit-now"],"created_at":"2024-09-26T08:01:49.321Z","updated_at":"2025-09-29T08:31:47.307Z","avatar_url":"https://github.com/tibdex.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Goal\n\n`probot-serverless-now` is a wrapper around [Probot](https://github.com/probot/probot) to run your GitHub Apps as Serverless Functions with [ZEIT Now](https://zeit.co).\n\n**Note**: This package is not maintained anymore as [GitHub Actions](https://github.com/features/actions) and [github-app-token](https://github.com/marketplace/actions/github-app-token) can, most of the time, replace Probot.\n\n# Usage\n\n- `app.js`\n\n  ```javascript\n  module.exports = app =\u003e {\n    app.on(\"issues.opened\", async context =\u003e {\n      // A new issue was opened, what should we do with it?\n      context.log(context.payload);\n    });\n  };\n  ```\n\n- `api/index.js`\n\n  ```javascript\n  const { toLambda } = require(\"probot-serverless-now\");\n\n  const applicationFunction = require(\"../app\");\n\n  module.exports = toLambda(applicationFunction);\n  ```\n\n- `now.json`\n\n  ```json\n  {\n    \"version\": 2,\n    \"env\": {\n      \"APP_ID\": \"@my-app-id\",\n      \"PRIVATE_KEY\": \"@my-app-base64-encoded-private-key\",\n      \"WEBHOOK_SECRET\": \"@my-app-webhook-secret\"\n    }\n  }\n  ```\n\n## Supported Probot Features\n\n- [x] [Logging](https://probot.github.io/docs/logging/)\n- [x] [Sentry](https://probot.github.io/docs/configuration/) integration\n- [x] Webhook signature verification\n- [ ] Loading the private key from the filesystem.\n      The `PRIVATE_KEY` environment variable should be used instead (possibly _base64_ encoded).\n- [ ] Custom routing. The only routes are:\n  - `GET /`: typical Probot landing page\n  - `POST /`: webhook handler\n- [ ] Multiple applications running under the same Probot instance.\n      Instead, you should create multiple [Now Lambdas](https://zeit.co/docs/v2/deployments/concepts/lambdas/).\n      Each lambda should have its own `now.json` file since they won't share the same `APP_ID`, `PRIVATE_KEY`, and `WEBHOOK_SECRET` environment variables.\n      To do that, you could either use multiple repositories or a mono-repo with [Yarn workspaces](https://yarnpkg.com/lang/en/docs/workspaces/) or [Lerna](https://lerna.js.org/) for instance.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftibdex%2Fprobot-serverless-now","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftibdex%2Fprobot-serverless-now","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftibdex%2Fprobot-serverless-now/lists"}