{"id":44429006,"url":"https://github.com/conversationalcomponents/chat-window","last_synced_at":"2026-02-12T12:00:38.140Z","repository":{"id":52046879,"uuid":"233041504","full_name":"ConversationalComponents/chat-window","owner":"ConversationalComponents","description":"Basic chat window functionality","archived":false,"fork":false,"pushed_at":"2023-01-26T21:53:11.000Z","size":219,"stargazers_count":8,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-15T11:57:12.845Z","etag":null,"topics":["chat","chat-window","chatbot","mobx","mobx-react","react","reactjs","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ConversationalComponents.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-10T12:22:36.000Z","updated_at":"2025-06-03T16:45:16.000Z","dependencies_parsed_at":"2023-02-15T01:17:16.967Z","dependency_job_id":null,"html_url":"https://github.com/ConversationalComponents/chat-window","commit_stats":null,"previous_names":["conversationalcomponents/chat-window-core"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ConversationalComponents/chat-window","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConversationalComponents%2Fchat-window","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConversationalComponents%2Fchat-window/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConversationalComponents%2Fchat-window/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConversationalComponents%2Fchat-window/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ConversationalComponents","download_url":"https://codeload.github.com/ConversationalComponents/chat-window/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConversationalComponents%2Fchat-window/sbom","scorecard":{"id":33097,"data":{"date":"2025-08-11","repo":{"name":"github.com/ConversationalComponents/chat-window","commit":"4ad84b994b0969798bef7766b85a43a448d6872d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":3,"reason":"Found 7/19 approved changesets -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-662x-fhqg-9p8v","Warn: Project is vulnerable to: GHSA-394c-5j6w-4xmx","Warn: Project is vulnerable to: GHSA-78cj-fxph-m83p","Warn: Project is vulnerable to: GHSA-fhg7-m89q-25r3"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 18 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-14T19:38:52.573Z","repository_id":52046879,"created_at":"2025-08-14T19:38:52.573Z","updated_at":"2025-08-14T19:38:52.573Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29365553,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T08:51:36.827Z","status":"ssl_error","status_checked_at":"2026-02-12T08:51:26.849Z","response_time":55,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["chat","chat-window","chatbot","mobx","mobx-react","react","reactjs","typescript"],"created_at":"2026-02-12T12:00:20.264Z","updated_at":"2026-02-12T12:00:38.135Z","avatar_url":"https://github.com/ConversationalComponents.png","language":"TypeScript","readme":"# chat-window\n\nBasic chat window functionality\n\ninstall with ```npm install @conversationalcomponents/chat-window```\n\nexample:\n```js\nimport React from \"react\";\nimport {ChatWindow} from \"@conversationalcomponents/chat-window\";\n\nexport const Example = () =\u003e (\n    \u003cChatWindow\n        content={[\n            {\n                isUser: false,\n                message: \"Hi, this is an example\",\n                avatar: \"https://img.icons8.com/color/search/96\",\n                id: \"message_0\",\n                isLoading: false\n            }\n        ]}\n    /\u003e\n);\n\n\n```\n\n\nAn example with fake conversation:\n```js\n\nimport React, {useState, useEffect} from \"react\";\nimport {ChatWindow} from \"@conversationalcomponents/chat-window\";\n\nconst makeMessage = (isUser: boolean, text: string, id: number) =\u003e ({\n    isUser,\n    message: text,\n    avatar: isUser ? \"https://img.icons8.com/color/search/0\" : \"https://img.icons8.com/color/search/96\",\n    id: `message_${id}`,\n    isLoading: false\n});\n\nconst botReplies = [\"Wow!\", \"Fascinating, please do go on\", \"Amazing!\", \"Really?\", \"If you say so...\"];\n\nexport const Example = () =\u003e {\n    const [content, setContent] = useState([makeMessage(false, \"Hello and welcome to the example!\", 0)]);\n    useEffect(() =\u003e {\n        const lastEntry = content.length \u0026\u0026 content[content.length - 1];\n        lastEntry \u0026\u0026\n            lastEntry.isUser \u0026\u0026\n            setContent([...content, makeMessage(false, botReplies[Math.floor(Math.random() * botReplies.length)], 0)]);\n    }, [content]);\n    return (\n        \u003cChatWindow\n            title=\"Example\"\n            content={content}\n            onSubmit={(text: string) =\u003e setContent([...content, makeMessage(true, text, content.length)])}\n        /\u003e\n    );\n};\n\n\n```\n\nAn example with custom header, typing animations (Typescript):\n```js\nimport React, {useState, useEffect} from \"react\";\nimport {useUserTyping, useBotTyping, ChatWindow} from \"@conversationalcomponents/chat-window\";\nimport {ChatEntry} from \"@conversationalcomponents/chat-window/types\";\n\nconst botReplies = [\"Wow!\", \"Fascinating, please do go on\", \"Amazing!\", \"Really?\", \"If you say so...\"];\nconst getBotReply = () =\u003e botReplies[Math.floor(Math.random() * botReplies.length)];\nconst userAvatar = \"https://img.icons8.com/color/search/0\";\nconst botAvatar = \"https://img.icons8.com/color/search/1\";\n\nexport const Example = () =\u003e {\n    const [content, setContent] = useState\u003cChatEntry[]\u003e([]);\n    const [lastInputValue, setLastInputValue] = useState(\"\");\n    const [lastUnsubmittedInput, setLastUnsubmittedInput] = useState(\"\");\n\n    useEffect(() =\u003e {\n        const lastEntry = content.length \u0026\u0026 content[content.length - 1];\n        if (!lastEntry || lastEntry.isUser) return;\n        setLastInputValue(\"\");\n    }, [content]);\n\n    useEffect(() =\u003e {\n        lastInputValue \u0026\u0026 setLastUnsubmittedInput(\"\");\n    }, [lastInputValue]);\n\n    useUserTyping(content, setContent, lastUnsubmittedInput, lastInputValue, userAvatar);\n    const isBotDoneTyping = useBotTyping(content, setContent, lastInputValue, botAvatar);\n\n    useEffect(() =\u003e {\n        if (!isBotDoneTyping) return;\n        const lastEntry = content.length \u0026\u0026 content[content.length - 1];\n        if (!lastEntry || lastEntry.isUser) return;\n        lastEntry.message = getBotReply();\n        lastEntry.isLoading = false;\n    }, [isBotDoneTyping]);\n\n    return (\n        \u003cChatWindow\n            headerAdditionalContent={\u003cdiv style={{flex: 1, display: \"flex\", justifyContent: \"center\"}}\u003eHEADER\u003c/div\u003e}\n            content={content}\n            onChange={(text: string) =\u003e setLastUnsubmittedInput(text)}\n            onSubmit={(text: string) =\u003e setLastInputValue(text)}\n        /\u003e\n    );\n};\n\n```\n\nAn example with typing animations that echoes user's input back:\n\n```js\nimport React, {useState, useEffect} from \"react\";\nimport {ChatEntry} from \"@conversationalcomponents/chat-window/types\";\nimport {useUserTyping, useBotTyping, ChatWindow} from \"@conversationalcomponents/chat-window\";\n\nconst userAvatar = \"https://img.icons8.com/color/search/0\";\nconst botAvatar = \"https://img.icons8.com/color/search/1\";\n\nexport const Example = () =\u003e {\n    const [content, setContent] = useState\u003cChatEntry[]\u003e([]);\n    const [lastInputValue, setLastInputValue] = useState(\"\");\n    const [lastUnsubmittedInput, setLastUnsubmittedInput] = useState(\"\");\n    const [nextBotReply, setNextBotReply] = useState(\"\");\n\n    useEffect(() =\u003e {\n        const lastEntry = content.length \u0026\u0026 content[content.length - 1];\n        if (!lastEntry || lastEntry.isUser) return;\n        setNextBotReply(lastInputValue);\n        setLastInputValue(\"\");\n    }, [content]);\n\n    useEffect(() =\u003e {\n        lastInputValue \u0026\u0026 setLastUnsubmittedInput(\"\");\n    }, [lastInputValue]);\n\n    useUserTyping(content, setContent, lastUnsubmittedInput, lastInputValue, userAvatar);\n    const isBotDoneTyping = useBotTyping(content, setContent, lastInputValue, botAvatar);\n\n    useEffect(() =\u003e {\n        if (!isBotDoneTyping || !nextBotReply) return;\n        const lastEntry = content.length \u0026\u0026 content[content.length - 1];\n        if (!lastEntry || lastEntry.isUser) return;\n        lastEntry.message = nextBotReply;\n        lastEntry.isLoading = false;\n        setNextBotReply(\"\");\n    }, [isBotDoneTyping]);\n\n    return (\n        \u003cChatWindow\n            headerAdditionalContent={\u003cdiv style={{flex: 1, display: \"flex\", justifyContent: \"center\"}}\u003eHEADER\u003c/div\u003e}\n            content={content}\n            onChange={(text: string) =\u003e setLastUnsubmittedInput(text)}\n            onSubmit={(text: string) =\u003e setLastInputValue(text)}\n        /\u003e\n    );\n};\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconversationalcomponents%2Fchat-window","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconversationalcomponents%2Fchat-window","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconversationalcomponents%2Fchat-window/lists"}