{"id":13756178,"url":"https://github.com/dearcode/candy","last_synced_at":"2026-01-19T17:03:33.817Z","repository":{"id":57501204,"uuid":"65800143","full_name":"dearcode/candy","owner":"dearcode","description":"新一代IM","archived":false,"fork":false,"pushed_at":"2018-09-14T06:57:58.000Z","size":32753,"stargazers_count":310,"open_issues_count":3,"forks_count":62,"subscribers_count":30,"default_branch":"master","last_synced_at":"2025-05-10T03:31:44.993Z","etag":null,"topics":["im"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dearcode.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}},"created_at":"2016-08-16T08:02:41.000Z","updated_at":"2025-02-28T18:11:47.000Z","dependencies_parsed_at":"2022-09-14T19:41:11.451Z","dependency_job_id":null,"html_url":"https://github.com/dearcode/candy","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dearcode/candy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dearcode%2Fcandy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dearcode%2Fcandy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dearcode%2Fcandy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dearcode%2Fcandy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dearcode","download_url":"https://codeload.github.com/dearcode/candy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dearcode%2Fcandy/sbom","scorecard":{"id":330898,"data":{"date":"2025-08-11","repo":{"name":"github.com/dearcode/candy","commit":"17d8d8ce647346935bcaaff7b1dfdc211398badd"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/22 approved changesets -- score normalized to 0","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":"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":"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":"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":"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":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"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":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: goCommand not pinned by hash: vendor/google.golang.org/grpc/vet.sh:19","Warn: goCommand not pinned by hash: vendor/google.golang.org/grpc/vet.sh:21","Info:   0 out of   2 goCommand dependencies pinned"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 11 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-18T03:35:29.261Z","repository_id":57501204,"created_at":"2025-08-18T03:35:29.261Z","updated_at":"2025-08-18T03:35:29.261Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28577051,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T16:29:19.148Z","status":"ssl_error","status_checked_at":"2026-01-19T16:29:17.772Z","response_time":67,"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":["im"],"created_at":"2024-08-03T11:00:38.437Z","updated_at":"2026-01-19T17:03:33.785Z","avatar_url":"https://github.com/dearcode.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"![Logo](https://raw.githubusercontent.com/dearcode/web/master/static/img/logo.png \"Candy logo\")\n\n[![Build Status](https://travis-ci.org/dearcode/candy.svg?branch=master)](https://travis-ci.org/dearcode/candy)\n[![Go Report Card](https://goreportcard.com/badge/github.com/dearcode/candy)](https://goreportcard.com/report/github.com/dearcode/candy)\n[![GoDoc](https://godoc.org/github.com/dearcode/candy?status.svg)](https://godoc.org/github.com/dearcode/candy)\n\n\n## 项目背景 \n  Candy是新一代即时通信软件, 我们是一套完整的即时通讯开源解决方案，包括移动端，WEB端，PC端。  \n\n## Candy架构\n![candy server](https://raw.githubusercontent.com/dearcode/doc/master/candy_server.jpg \"Candy Server\")  \n  * Gate 接收客户端请求，负责客户端连接维护  \n  * Master 负责全局ID生成，及节点管理等功能  \n  * Notifer 消息分发中心，整个系统的消息队列, 负责在线及离线消息推送   \n  * Store 逻辑处理中心，单机版中兼顾存储服务  \n\n### Android  \n    https://github.com/dearcode/candy-android  \n\n### Web  \n    https://github.com/dearcode/web  \n\n### CUI  \n    https://github.com/zeazen/candy-cui  \n    \n## 项目运行\n### 获取源码\n  `mkdir -p $GOPATH/src/github.com/dearcode`  \n  `cd $GOPATH/src/github.com/dearcode`  \n  `git clone git@github.com:dearcode/candy.git`  \n   \n### 编译安装 \n  `make`  \n  依次启动 `master`, `notice`, `store`, `gate`  \n  直接运行不需要参数，默认使用9000到9004端口   \n\n###  测试运行\n  项目根目录中的candy.go是一个命令行的全功能展示  \n  `go run candy.go`\n\n## 跨平台支持  \n  Candy客户端可以直接使用gomobile编译出安卓/IOS客户端可用的库文件，可以方便快捷的和服务器通信, 用户无需关注客户端服务器的实现； 只需要把重点放在客户端开发上。  \n\n### Android库编译  \n  可以直接使用gomobile编译出安卓可用的版本  \n\n#### 环境要求：  \n  1. JDK 1.7版本以上  \n  2. Android SDK  \n  3. 安装gomobile   \n\n#### 编译命令:    \n  `gomobile bind -v -target=android/arm github.com/dearcode/candy/client`  \n  \n### IOS库编译\n  可以直接使用gomobile编译出IOS可用的版本  \n\n#### 环境要求：  \n  1. IOS SDK  \n  2. 安装gomobile   \n\n#### 编译命令:   \n  `gomobile bind -v -target=ios github.com/dearcode/candy/client`   \n\n\n\n技术讨论QQ群：[![Circle CI](http://pub.idqqimg.com/wpa/images/group.png)](http://shang.qq.com/wpa/qunwpa?idkey=d43cad7db88d71f70da81523c02b2fe59343111e1d0a9d5f5ac2a198ee047279) 29996599    \n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdearcode%2Fcandy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdearcode%2Fcandy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdearcode%2Fcandy/lists"}