{"id":23869134,"url":"https://github.com/extrawest/firebase-chat-list-component","last_synced_at":"2025-09-08T18:31:19.343Z","repository":{"id":57122513,"uuid":"380751538","full_name":"extrawest/firebase-chat-list-component","owner":"extrawest","description":"Extrawest Chat Component for Firebase","archived":false,"fork":false,"pushed_at":"2021-07-21T22:39:23.000Z","size":148,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-18T17:25:40.005Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/extrawest.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}},"created_at":"2021-06-27T13:48:38.000Z","updated_at":"2023-02-12T21:19:14.000Z","dependencies_parsed_at":"2022-08-24T14:59:30.601Z","dependency_job_id":null,"html_url":"https://github.com/extrawest/firebase-chat-list-component","commit_stats":null,"previous_names":["extrawest/firebase-chat-component"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/extrawest/firebase-chat-list-component","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extrawest%2Ffirebase-chat-list-component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extrawest%2Ffirebase-chat-list-component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extrawest%2Ffirebase-chat-list-component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extrawest%2Ffirebase-chat-list-component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/extrawest","download_url":"https://codeload.github.com/extrawest/firebase-chat-list-component/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extrawest%2Ffirebase-chat-list-component/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274229367,"owners_count":25245187,"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-09-08T02:00:09.813Z","response_time":121,"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-01-03T12:16:10.016Z","updated_at":"2025-09-08T18:31:19.027Z","avatar_url":"https://github.com/extrawest.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Maintaner](https://img.shields.io/badge/maintainer-extrawest.com-blue)\r\n[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/extrawest/firebase-chat-list-component/graphs/commit-activity)\r\n![GitHub release](https://img.shields.io/github/v/release/extrawest/firebase-chat-list-component)\r\n[![GitHub tag](https://img.shields.io/github/v/tag/extrawest/firebase-chat-list-component)](https://github.com/extrawest/firebase-chat-list-component/tags/)\r\n# Extrawest Firebase Chat List Component\r\nExtrawest Chat List Component for Firebase\r\n\r\n## Installation\r\n\r\nExtrawest Firebase Chat List Component requires **React 16.8.0 or later** and **Firebase v8.0.0 or later**.\r\n\r\n```bash\r\n# with npm\r\nnpm install --save extrawest-firebase-chat-list-component\r\n\r\n# with yarn\r\nyarn add extrawest-firebase-chat-list-component\r\n```\r\n\r\nThis assumes that you’re using the [npm](https://npmjs.com) or [yarn](https://yarnpkg.com/) package managers with a module bundler like [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) to consume [CommonJS](http://webpack.github.io/docs/commonjs.html) modules.\r\n\r\n## Demo\r\n\r\n[Check a simple live demo](https://extrawest-firebase-chat.web.app/)\r\n\r\n## Available settings\r\n\r\n| Prop  | Type | Description |\r\n| ------------- | ------------- |  ------------- |\r\n| chatMessagePlaceholder | string | Placeholder message for input field  |\r\n| loading | boolean | status if list of messages loading or not  |\r\n| messages | func | list of available message |\r\n| handleSubmitMessage | func | callback to handle submit a new message  |\r\n| currentAuthUid | string or undefined | current user id to mark user messages |\r\n\r\n## How to use\r\n\r\n```jsx\r\n\r\nimport ChatBox from \"extrawest-firebase-chat-list-component\";\r\n\r\n\u003cChatBox\r\n  chatMessagePlaceholder=\"Type a message\"\r\n  messages={snapshots}\r\n  loading={loading}\r\n  handleSubmitMessage={handleSubmit}\r\n  currentAuthUid={currentUserId}\r\n/\u003e\r\n\r\n```\r\n\r\n## Firebase Database rules\r\n\r\nBefore using chat, you need to configure firebase application and rules for Realtime Database\r\n\r\n```\r\n{\r\n  \"rules\": {\r\n    \"chat\": {\r\n      \".read\": \"auth != null\",\r\n      \".write\": \"auth != null\",\r\n      \"$messageId\": {\r\n       \".validate\": \"newData.hasChildren(['message', 'timestamp', 'author']) \u0026\u0026 newData.child('message').isString() \u0026\u0026 newData.child('author').isString() \u0026\u0026 newData.child('timestamp').isNumber()\"\r\n      }  \r\n    }\r\n  }\r\n}\r\n```\r\n\r\n## License\r\n\r\n- See [LICENSE](/LICENSE)\r\n\r\n---\r\nCreated by Extrawest React.js Team\r\n[Extrawest.com](https://www.extrawest.com), 2021\r\n---","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fextrawest%2Ffirebase-chat-list-component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fextrawest%2Ffirebase-chat-list-component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fextrawest%2Ffirebase-chat-list-component/lists"}