{"id":21001133,"url":"https://github.com/j05u3/chats_manager","last_synced_at":"2025-05-14T23:32:28.779Z","repository":{"id":62246266,"uuid":"550070216","full_name":"j05u3/chats_manager","owner":"j05u3","description":"Display and manage your Whatsapp Cloud API chats.","archived":false,"fork":false,"pushed_at":"2023-10-02T16:17:34.000Z","size":241,"stargazers_count":11,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-09T16:57:44.942Z","etag":null,"topics":["chat-client","firestore","flutter","whatsapp","whatsapp-cloud-api"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/j05u3.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"License.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-10-12T06:50:42.000Z","updated_at":"2025-05-08T14:44:18.000Z","dependencies_parsed_at":"2023-02-18T20:20:36.045Z","dependency_job_id":null,"html_url":"https://github.com/j05u3/chats_manager","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/j05u3%2Fchats_manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j05u3%2Fchats_manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j05u3%2Fchats_manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j05u3%2Fchats_manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/j05u3","download_url":"https://codeload.github.com/j05u3/chats_manager/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254248389,"owners_count":22039007,"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":["chat-client","firestore","flutter","whatsapp","whatsapp-cloud-api"],"created_at":"2024-11-19T08:13:54.407Z","updated_at":"2025-05-14T23:32:23.692Z","avatar_url":"https://github.com/j05u3.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chats_manager\n\nDisplay and answer your [Whatsapp Cloud API](https://developers.facebook.com/docs/whatsapp/cloud-api/) chats.\n\n![image](https://github.com/j05u3/chats_manager/assets/7897132/038c2716-c790-49c5-8cc9-b0617c8fc5dc)\n\n## What works so far:\n\n* Display the text messages stored on Firestore using [these functions](https://gist.github.com/j05u3/b3ad1d5d9106a918941587e03c1919b1) for bots built using [whatsapp-cloud-api-express](https://github.com/j05u3/whatsapp-cloud-api-express).\n* Display the message statuses (delivered, read, failed).\n* Display image messages.\n* Answer messages / send template messages (you need to implement your own backend endpoint for this to work).\n* Firebase authentication with Google.\n* Basic templates display support through the `private_constants.dart` file.\n* Only works on web (desktop and mobile), not native apps for the time being.\n\n## Roadmap:\n\n* Be able to send messages to a new phone number.\n* Be able to pause the bot or stop it.\n\n## Development and deployment setup:\n\n1. Run `flutterfire configure` and `firebase init` to setup firebase for your project. Choose `build/web` as the public folder. You also need to follow the instructions for each of the firebase libraries used here (check the pubspec.yaml file). Some of those are the Google Sign-in part in:\n  - https://github.com/firebase/FirebaseUI-Flutter/blob/main/packages/firebase_ui_auth/doc/providers/oauth.md\n  \n2. Create and populate the file `lib/private_constants.dart`. You take a look at the example file `lib/private_constants_example.dart`.\n\n## Deployment:\n\n1. Setup hosting: the build folder for web is `build/web`.\n2. Using CMD on windows you can run the following command (\u0026\u0026 is used to run the next command only if the previous one was successful):\n\n```\nflutter build web --release \u0026\u0026 firebase deploy --only hosting \u0026\u0026 time /t\n\n# or if using targets:\nflutter build web --release \u0026\u0026 firebase deploy --only hosting:TARGET_NAME\n```\n\n## Notes:\n\n- When changing or using @JsonSerializable (to generate models) run `flutter pub run build_runner build` or `flutter pub run build_runner watch --delete-conflicting-outputs` to start the watcher.\n- If your are hosting your images on Google Storage don't forget to add the CORS configuration to allow the images to be displayed on the web. Example cors json config:\n\n```json\n[\n  {\n    \"origin\": [\"*\"],\n    \"method\": [\"GET\", \"POST\", \"PUT\", \"DELETE\"],\n    \"responseHeader\": [\"Content-Type\"],\n    \"maxAgeSeconds\": 3600\n  }\n]\n```\n\n## Acknowledgements\n\n- https://github.com/flyerhq/flutter_chat_ui: For the chat UI and other UI component ideas used in here.\n- https://github.com/flyerhq/flutter_firebase_chat_core: For some code snippets and ideas.\n- https://github.com/tawn33y/whatsapp-cloud-api: For the original Whatsapp Cloud API bot library.\n- https://javiercbk.github.io/json_to_dart/: Used for generating the initial models from json.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj05u3%2Fchats_manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fj05u3%2Fchats_manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj05u3%2Fchats_manager/lists"}