{"id":34836904,"url":"https://github.com/rodrigogs/baileys-store","last_synced_at":"2025-12-25T16:07:28.420Z","repository":{"id":293902800,"uuid":"985458936","full_name":"rodrigogs/baileys-store","owner":"rodrigogs","description":"Baileys Store","archived":false,"fork":false,"pushed_at":"2025-11-10T04:59:51.000Z","size":181,"stargazers_count":5,"open_issues_count":2,"forks_count":8,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-10T05:02:32.097Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/rodrigogs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null},"funding":{"github":["rodrigogs","purpshell","auties00","SheIITear"]}},"created_at":"2025-05-17T20:04:39.000Z","updated_at":"2025-11-10T04:57:37.000Z","dependencies_parsed_at":"2025-05-17T20:48:42.512Z","dependency_job_id":"036bd2dc-9a3c-4e86-b19b-98dc9efeae4e","html_url":"https://github.com/rodrigogs/baileys-store","commit_stats":null,"previous_names":["rodrigogs/baileys-store"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rodrigogs/baileys-store","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodrigogs%2Fbaileys-store","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodrigogs%2Fbaileys-store/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodrigogs%2Fbaileys-store/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodrigogs%2Fbaileys-store/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rodrigogs","download_url":"https://codeload.github.com/rodrigogs/baileys-store/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodrigogs%2Fbaileys-store/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28032365,"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-12-25T02:00:05.988Z","response_time":58,"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":[],"created_at":"2025-12-25T16:05:47.496Z","updated_at":"2025-12-25T16:07:28.412Z","avatar_url":"https://github.com/rodrigogs.png","language":"TypeScript","funding_links":["https://github.com/sponsors/rodrigogs","https://github.com/sponsors/purpshell","https://github.com/sponsors/auties00","https://github.com/sponsors/SheIITear"],"categories":[],"sub_categories":[],"readme":"# Baileys Store\n\nA storage implementation for [Baileys](https://github.com/WhiskeySockets/Baileys) - the WebSocket-based WhatsApp Web API library.\n\n![GitHub License](https://img.shields.io/github/license/rodrigogs/baileys-store)\n![npm](https://img.shields.io/npm/v/baileys-store)\n![GitHub issues](https://img.shields.io/github/issues/rodrigogs/baileys-store)\n\n# Installation\n\n```bash\nnpm install @rodrigogs/baileys-store baileys\n# or\nyarn add @rodrigogs/baileys-store baileys\n```\n\nNote: This package requires `baileys` as a peer dependency. Make sure to install it alongside this package.\n\n# Usage\n\nThis package provides different storage implementations for Baileys:\n\n1. In-Memory Store\n2. Cache Manager Auth State\n\n## In-Memory Store\n\n```typescript\nimport { makeInMemoryStore } from '@rodrigogs/baileys-store'\n\nconst store = makeInMemoryStore({})\n// You can bind the store to your Baileys instance\nstore.bind(baileysSock)\n```\n\n## Cache Manager Auth State\n\n```typescript\nimport { makeCacheManagerAuthState } from '@rodrigogs/baileys-store'\nimport { caching } from 'cache-manager'\n\n// Create a store with cache-manager\nconst store = await caching('memory')\n// or any other cache-manager storage\nconst authState = await makeCacheManagerAuthState(store, 'session-key')\n// Use the auth state in your baileys connection\nconst sock = makeWASocket({ auth: authState })\n```\n\n## Testing \u0026 Reference Implementation\n\nFor a comprehensive example with real WhatsApp connection, store validation, and testing utilities, check the [test-app](test-app/) directory. It includes:\n\n- Real WhatsApp authentication with QR code\n- Store validation and integrity checking\n- Support for both Baileys v6 and v7\n- Interactive terminal UI\n- Comprehensive documentation\n\nSee [test-app/README.md](test-app/README.md) for detailed instructions.\n\n# Disclaimer\nThis project is not affiliated, associated, authorized, endorsed by, or in any way officially connected with WhatsApp or any of its subsidiaries or its affiliates.\nThe official WhatsApp website can be found at whatsapp.com. \"WhatsApp\" as well as related names, marks, emblems and images are registered trademarks of their respective owners.\n\nThe maintainers of Baileys do not in any way condone the use of this application in practices that violate the Terms of Service of WhatsApp. The maintainers of this application call upon the personal responsibility of its users to use this application in a fair way, as it is intended to be used.\nUse at your own discretion. Do not spam people with this. We discourage any stalkerware, bulk or automated messaging usage.\n\n# License\nCopyright (c) 2025 Rodrigo Gomes da Silva\n\nLicensed under the MIT License:\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\nThus, the maintainers of the project can't be held liable for any potential misuse of this project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodrigogs%2Fbaileys-store","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frodrigogs%2Fbaileys-store","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodrigogs%2Fbaileys-store/lists"}