{"id":13814582,"url":"https://github.com/naoyeye/Perber","last_synced_at":"2025-05-15T03:34:55.725Z","repository":{"id":11286441,"uuid":"13697017","full_name":"naoyeye/Perber","owner":"naoyeye","description":"隐藏自己 做好清理","archived":true,"fork":false,"pushed_at":"2023-07-17T09:15:38.000Z","size":15297,"stargazers_count":144,"open_issues_count":7,"forks_count":32,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-01-19T21:37:29.661Z","etag":null,"topics":["chatroom","express-js","socket-io"],"latest_commit_sha":null,"homepage":"http://www.perber.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/naoyeye.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}},"created_at":"2013-10-19T07:01:33.000Z","updated_at":"2024-05-19T10:14:44.000Z","dependencies_parsed_at":"2024-01-15T13:34:13.286Z","dependency_job_id":null,"html_url":"https://github.com/naoyeye/Perber","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/naoyeye%2FPerber","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naoyeye%2FPerber/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naoyeye%2FPerber/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naoyeye%2FPerber/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/naoyeye","download_url":"https://codeload.github.com/naoyeye/Perber/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254266522,"owners_count":22042123,"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":["chatroom","express-js","socket-io"],"created_at":"2024-08-04T04:02:19.558Z","updated_at":"2025-05-15T03:34:50.974Z","avatar_url":"https://github.com/naoyeye.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Perber 是什么\n\n 一个可以实时匿名群聊的 web 服务。\n 特色是无需注册，每个人都可以删掉其他人说的话。\n\n## 用到了哪些\n\n- **express**\n- **socket.io**\n- **redis**\n\n\n## 功能\n\n- 长按消息块，删除\n- 来新消息时声音提醒\n- @某人时，会链接到他的twitter\n- 简单的颜文字表情识别\n- 识别新浪图床\u003cdel\u003e和 instagram\u003c/del\u003e的图片 url ，直接展示图片\n- 识别发言人所在城市或国家\n- 支持中英文识别，英文会以大字体显示\n- 支持虾米音乐识别（不太稳定，最好是以 https://www.xiami.com/song/1769490347 这种数字 id 类型的 url 来测试）\n- \u003cdel\u003e上传图片\u003c/del\u003e **20181022 - 因七牛 api 调整，上传图片功能暂时关闭**\n- 限制单个人发言次数\n\n\n\n## 如何运行\n\n1. 在你的 **MySQL** 中创建名为 `perber` 的数据库, 然后导入项目根目录中的 **perber.sql**。\n\n2. 在 **/Peber/perber/** 中运行 `npm install`，安装项目所需的包，当然运行 `yarn` 也可以。\n\n3. 修改 `config-example.json` (位于目录: **/Perber/perber/config/** 中) 为 `config.json`\n\n4. 修改 `config.json` 中的 `mysqlConf` `qiniuConfig`(前提是已经有了自己的 **bucket_name**, **access_key** 和 **secret_key**) 和 `mailer`.\n\n5. 启动: `node perber/app.js`\n\n6. 在浏览器中访问 : [http://localhost:6789](http://localhost:6789) (默认端口为 6789)\n\n\n\n\n## 设置 config.json:\n\n**redisConf**\n\n如果 redis 端口没改过，基本上保持默认就好\n\n**mysqlConf**\n\n\n设置你的 mysql host, port, user, password, database.\n\n\n**qiniuConfig**\n\n设置七牛\n\nPerber 用到了 **Qiniu** 来存储图片, 你需要注册 Qiniu 来获得 \"**bucket_name**\" \"**access_key**\" 和 \"**secret_key**\"。\n\n\u003e Qiniu Cloud Storage: [http://www.qiniu.com/](http://www.qiniu.com/) \n\u003e Qiniu on Github: [https://github.com/qiniu](https://github.com/qiniu)\n\n**qqMap**\n\n设置腾讯地图 API key: https://lbs.qq.com/guides/startup.html\n\n**mailer**\n\n用来发信的，可以写俩自己的邮箱\n\n**auth**\n\n暂时没有用到\n\n**session**\n\n设置 key 和 secret\n\n**app**\n\n设置服务运行的端口号（默认端口为 6789）、timer、limit\n\n    **app.timer:**\n\n    清理程序 sockets.js 里的cleaner() 的自动运行时间间隔，按分钟计算。\n\n    设为 1 ，则 1分钟运行一次。\n\n    **app.limit:**\n\n    在设定的 timer 时间范围内，每个在线用户最多能发多少信息。\n\n**theme**\n\n保持默认就行，目前只有 default 一种\n\n**debug** : true | false\n\n调试用的\n\n\n\n\n\n## API\n\n目前只有一个，没什么用。\n\n#### post new message\n\n**url**: /api/v1/new\n\n```\nvar data = { msg: \"HAKULAMATATA test api\" };\n$.ajax({\n    url:'http://www.perber.com/api/v1/new',\n    contentType: 'application/json; charset=utf-8',\n    type: 'POST',\n    data : JSON.stringify(data)\n})\n```\n\n\n\n\n\n\n## UI\n\n* iOS Safari:\n\n![Perber in iOS Safari](http://ww2.sinaimg.cn/large/61b8bbf4tw1eg3q0lcsc5j20cn0m8dhz.jpg)\n\n* Chrome(Mackbook Pro 13):\n\n![Perber in Chrome](http://ww1.sinaimg.cn/large/61b8bbf4tw1eg3okf24rij21340vk0yl.jpg)\n\n![Perber in Chrome](http://ww1.sinaimg.cn/large/61b8bbf4tw1eg3olvkq95j20on0q60vm.jpg)\n\n\n## 依赖的第三方服务\n\n- apis.map.qq.com：腾讯地图 API，用于解析 ip， 显示所在城市或国家\n\n- xiamiRun：之前写的一个用来解析虾米音乐地址的服务 https://github.com/naoyeye/xiamiRun 不太稳定\n\n\n## 为什么做这个:\n[http://www.douban.com/group/topic/45262966/](http://www.douban.com/group/topic/45262966/)\n\n## License\n\nThis code is distributed under the terms and conditions of the [MIT license](LICENSE).\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaoyeye%2FPerber","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaoyeye%2FPerber","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaoyeye%2FPerber/lists"}