{"id":20345688,"url":"https://github.com/kscript/yx-web-im-demo","last_synced_at":"2026-04-16T09:36:45.400Z","repository":{"id":96368992,"uuid":"154255506","full_name":"kscript/yx-web-im-demo","owner":"kscript","description":"基于网易云信开发的im 聊天工具 demo (基础版功能有限, 仅供参考)","archived":false,"fork":false,"pushed_at":"2025-02-12T20:56:46.000Z","size":7191,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-04T15:47:58.849Z","etag":null,"topics":["demo","im","requirejs","yunxin"],"latest_commit_sha":null,"homepage":"https://kscript.github.io/yx-web-im-demo/im/main.html","language":"JavaScript","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/kscript.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-23T03:22:04.000Z","updated_at":"2020-01-08T06:01:28.000Z","dependencies_parsed_at":"2023-04-10T04:50:53.221Z","dependency_job_id":null,"html_url":"https://github.com/kscript/yx-web-im-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kscript/yx-web-im-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kscript%2Fyx-web-im-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kscript%2Fyx-web-im-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kscript%2Fyx-web-im-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kscript%2Fyx-web-im-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kscript","download_url":"https://codeload.github.com/kscript/yx-web-im-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kscript%2Fyx-web-im-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31880572,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T09:23:21.276Z","status":"ssl_error","status_checked_at":"2026-04-16T09:23:15.028Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["demo","im","requirejs","yunxin"],"created_at":"2024-11-14T22:09:24.440Z","updated_at":"2026-04-16T09:36:45.371Z","avatar_url":"https://github.com/kscript.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yx-web-im-demo\n\n#### 项目介绍\n网易云信im\n\n#### 安装\n```npm\ncnpm i\n```\n\n#### 运行\n```npm\nnpm run run\n```\n\n#### 打包 require\n```npm\nnpm run rjs\n```\n\n#### 在github中查看\n##### 1. 使用默认的项目配置\n[点击进入](https://kscript.github.io/yx-web-im-demo/im/home)\n##### 2. 使用自己的项目配置\n首先, 访问 https://kscript.github.io 页面  \n然后, 在控制台给 localstorage 设置下 有效的uid, token, appkey属性 及 host 属性 ([im项目](https://kscript.github.io/yx-web-im-demo/im/main)所在目录) \n设置完毕, 访问 [im项目登录页](https://kscript.github.io/yx-web-im-demo/im/login) 即可查看自己的im项目\n\n#### 简单调试\n```\nvoid requirejs(['global'], function(global){\n  // 获取im实例\n  var yx = global('yunXin');\n  console.log(yx);\n  // 发送消息\n  yx.sendMessage({\n    to: 'ks2017',\n    text: '你好'\n  });\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkscript%2Fyx-web-im-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkscript%2Fyx-web-im-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkscript%2Fyx-web-im-demo/lists"}