{"id":15093354,"url":"https://github.com/ookamiiixd/baileys-api","last_synced_at":"2025-07-28T05:10:20.372Z","repository":{"id":37280283,"uuid":"403978192","full_name":"ookamiiixd/baileys-api","owner":"ookamiiixd","description":"An implementation of baileys as REST API with multiple connections support","archived":false,"fork":false,"pushed_at":"2025-07-22T21:50:37.000Z","size":288,"stargazers_count":441,"open_issues_count":5,"forks_count":348,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-07-22T23:33:24.661Z","etag":null,"topics":["api","multi-device","rest","rest-api","whatsapp","whatsapp-api"],"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/ookamiiixd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"custom":["https://paypal.me/ookamiiixd","https://trakteer.id/ookamiiixd"]}},"created_at":"2021-09-07T12:55:44.000Z","updated_at":"2025-07-22T01:05:55.000Z","dependencies_parsed_at":"2024-10-23T08:55:13.258Z","dependency_job_id":"aece882b-3f41-43d4-a221-ac6a8066824d","html_url":"https://github.com/ookamiiixd/baileys-api","commit_stats":{"total_commits":62,"total_committers":6,"mean_commits":"10.333333333333334","dds":"0.19354838709677424","last_synced_commit":"f4122aaa13774f8927b0ba7d7ec59988dc16ba92"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/ookamiiixd/baileys-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ookamiiixd%2Fbaileys-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ookamiiixd%2Fbaileys-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ookamiiixd%2Fbaileys-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ookamiiixd%2Fbaileys-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ookamiiixd","download_url":"https://codeload.github.com/ookamiiixd/baileys-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ookamiiixd%2Fbaileys-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267464522,"owners_count":24091505,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["api","multi-device","rest","rest-api","whatsapp","whatsapp-api"],"created_at":"2024-09-25T11:21:43.213Z","updated_at":"2025-07-28T05:10:20.350Z","avatar_url":"https://github.com/ookamiiixd.png","language":"TypeScript","funding_links":["https://paypal.me/ookamiiixd","https://trakteer.id/ookamiiixd"],"categories":[],"sub_categories":[],"readme":"\u003e 🚨 **NOTICE**: `@adiwajshing/baileys` which is this project relied on, has been discontinued. Thus, this project will be archived and stopped receiving updates anymore. Thanks everyone who's been part of this❤️\n\n---\n\n# Baileys API\n\nAn implementation of [@adiwajshing/Baileys](https://github.com/adiwajshing/Baileys) as a simple REST API with multiple device support\n\n## Requirements\n\n- **NodeJS** version **14.5.0** or higher\n- **Prisma** [supported databases](https://www.prisma.io/docs/reference/database-reference/supported-databases). Tested on MySQL and PostgreSQL\n\n## Installation\n\n1. Download or clone this repo. If you want to skip the build step, you can download the prebuilt one (file with the `baileys-api-VERSION.tgz` name pattern) from the release page\n2. Enter to the project directory\n3. Install the dependencies\n\n```sh\nnpm install\n```\n\n4. Build the project using the `build` script\n\n```sh\nnpm run build\n```\n\nYou can skip this part if you're using the prebuilt one from the release page\n\n## Setup\n\n1. Copy the `.env.example` file and rename it into `.env`, then update your [connection url](https://www.prisma.io/docs/reference/database-reference/connection-urls) in the `DATABASE_URL` field\n1. Update your [provider](https://www.prisma.io/docs/reference/api-reference/prisma-schema-reference#fields) in the `prisma/schema.prisma` file if you're using database other than MySQL\n1. Run your [migration](https://www.prisma.io/docs/reference/api-reference/command-reference#prisma-migrate)\n\n```sh\nnpx prisma migrate (dev|deploy)\n```\n\nor push the schema\n\n```sh\nnpx prisma db push\n```\n\nDon't forget to always re-run those whenever there's a change on the `prisma/schema.prisma` file\n\n## `.env` Configurations\n\n```env\n# Listening Host\nHOST=\"localhost\"\n\n# Listening Port\nPORT=\"3000\"\n\n# Database Connection URL\nDATABASE_URL=\"mysql://root:12345@localhost:3306/baileys_api\"\n\n# Reconnect Interval (in Milliseconds)\nRECONNECT_INTERVAL=\"5000\"\n\n# Maximum Reconnect Attempts\nMAX_RECONNECT_RETRIES=\"5\"\n\n# Maximum SSE QR Generation Attempts\nSSE_MAX_QR_GENERATION=\"10\"\n\n# Pino Logger Level\nLOG_LEVEL=\"warn\"\n```\n\n## Usage\n\n1. Make sure you have completed the **Installation** and **Setup** step\n1. You can then start the app using the `start` script\n\n```sh\nnpm run start\n```\n\n1. Now the endpoint should be available according to your environment variables configuration. Default is at `http://localhost:3000`\n\n## API Docs\n\nThe API documentation is available online [here](https://documenter.getpostman.com/view/18988925/2s8Z73zWbg). You can also import the **Postman Collection File** `(postman_collection.json)` into your Postman App alternatively\n\n## Notes\n\n- There's no authentication, you may want to implement your own. I don't want to force anyone into using a specific authentication method, choose whatever you love\n\n## Notice\n\nThis project is intended for learning purpose only, don't use it for spamming or any activities that's prohibited by **WhatsApp**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fookamiiixd%2Fbaileys-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fookamiiixd%2Fbaileys-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fookamiiixd%2Fbaileys-api/lists"}