{"id":19238095,"url":"https://github.com/casibase/casibase-widget","last_synced_at":"2026-03-04T06:32:19.735Z","repository":{"id":251580987,"uuid":"837569465","full_name":"casibase/casibase-widget","owner":"casibase","description":"Source code for Casibase AI chat widget","archived":false,"fork":false,"pushed_at":"2024-08-18T10:35:35.000Z","size":28,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-21T06:42:00.369Z","etag":null,"topics":["agi","ai","casbin","casibase","chat","chat-widget","chatgpt","llm","tracking","tracking-code","widget"],"latest_commit_sha":null,"homepage":"https://tcdn.casibase.org/example","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/casibase.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2024-08-03T11:12:48.000Z","updated_at":"2024-08-18T10:35:38.000Z","dependencies_parsed_at":"2024-08-18T11:42:11.139Z","dependency_job_id":"e7cb39b7-602f-4dfd-92a1-c72239a8e8eb","html_url":"https://github.com/casibase/casibase-widget","commit_stats":null,"previous_names":["casbin/casibase-tracker","casibase/casibase-widget"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/casibase/casibase-widget","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casibase%2Fcasibase-widget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casibase%2Fcasibase-widget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casibase%2Fcasibase-widget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casibase%2Fcasibase-widget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/casibase","download_url":"https://codeload.github.com/casibase/casibase-widget/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casibase%2Fcasibase-widget/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30074151,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T05:31:57.858Z","status":"ssl_error","status_checked_at":"2026-03-04T05:31:38.462Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["agi","ai","casbin","casibase","chat","chat-widget","chatgpt","llm","tracking","tracking-code","widget"],"created_at":"2024-11-09T16:29:21.151Z","updated_at":"2026-03-04T06:32:19.710Z","avatar_url":"https://github.com/casibase.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# casibase-widget\n\n![image](https://github.com/user-attachments/assets/e68510fe-107d-4718-983f-371b5f09e6e3)\n\n![image](https://github.com/user-attachments/assets/682ca165-7941-4739-a5d4-a3bd36b6ce9a)\n\nTracking code for the chat widget of the Casibase AI knowledge base: https://casibase.org/\n\nA real project that uses this tracking code can be found at Casbin website: https://casbin.org/\n\n## Complete example\n\nSee source code at: https://github.com/casibase/casibase-widget/blob/master/example.html\n\nThe demo of it is hosted at: https://tcdn.casibase.org/example\n\n## Get Started\n\nPut the following tracking code (HTML tag) into your main HTML file like index.html. If you need the Javascript version, just remove the `\u003cscript\u003e...\u003c/script\u003e` tag from it.\n\n```html\n\u003cscript\u003e\n  (function (w, d, s, c, i) {\n    var j = d.createElement(s);\n    j.async = true;\n    j.src = 'https://tcdn.casibase.org/casibase.js';\n    j.onload = function () {\n      w[c]('init', {\n        endpoint: \"https://ai.casbin.com\",\n      });\n    };\n    var f = d.getElementsByTagName(s)[0];\n    f.parentNode.insertBefore(j, f);\n    w[c] = w[c] || function () {\n      (w[c].q = w[c].q || []).push(arguments);\n    };\n  })(window, document, \"script\", \"casibaseChat\");\n\u003c/script\u003e\n```\n\n## Parameters\n\n- `endpoint` (mandatory): The URL for Casibase\n- `themeColor` (optional): The theme color of the widget (default: `rgb(64,59,121)`)\n- `enableAnimations` (optional): Whether to enable animation effects when opening the chat window (default: `true`)\n- `popupWidth` (optional): The width of the chat window (default: \"550px\")\n- `popupHeight`(optional): The height of the chat window (default: \"600px\")\n- `buttonText` (optional): The text displayed on the chat button (default: \"Chat with AI\")\n- `popupTitle` (optional): The title of the chat popup, used as the iframe title attribute (default: \"Chat with AI\")\n- `popupTime` (optional): The time in seconds after which the chat window automatically opens. Set to -1 to disable auto-opening (default: -1)\n- `buttonPosition` (optional): The position of the chat button. Possible values are \"TopLeft\", \"MiddleLeft\", \"BottomLeft\", \"TopRight\", \"MiddleRight\", \"BottomRight\" (default: \"BottomRight\")\n- `closeOnLeave` (optional): Whether to close the chat window when clicking outside of it (default: `false`)\n\nAn example to use the parameters is:\n\n```html\n\u003cscript\u003e\n  (function (w, d, s, c, i) {\n    var j = d.createElement(s);\n    j.async = true;\n    j.src = 'https://tcdn.casibase.org/casibase.js';\n    j.onload = function () {\n      w[c]('init', {\n        endpoint: \"https://ai.casbin.com\",\n        themeColor: \"rgb(64,59,121)\",\n        enableAnimations: true,\n        popupWidth: \"550px\",\n        popupHeight: \"600px\",\n        buttonText: \"Chat with AI\",\n        popupTitle: \"Casibase AI Assistant\",\n        popupTime: -1,\n        buttonPosition: \"BottomRight\",\n        closeOnLeave: false\n      });\n    };\n    var f = d.getElementsByTagName(s)[0];\n    f.parentNode.insertBefore(j, f);\n    w[c] = w[c] || function () {\n      (w[c].q = w[c].q || []).push(arguments);\n    };\n  })(window, document, \"script\", \"casibaseChat\");\n\u003c/script\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasibase%2Fcasibase-widget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcasibase%2Fcasibase-widget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasibase%2Fcasibase-widget/lists"}