{"id":18326792,"url":"https://github.com/caibingcheng/orlike","last_synced_at":"2025-08-30T18:20:42.452Z","repository":{"id":49986937,"uuid":"371026498","full_name":"caibingcheng/orlike","owner":"caibingcheng","description":"一款博文点赞插件","archived":false,"fork":false,"pushed_at":"2022-02-24T11:52:17.000Z","size":79,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-02T11:55:36.688Z","etag":null,"topics":["blog","leancloud","vercel"],"latest_commit_sha":null,"homepage":"https://orlike.vercel.app","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/caibingcheng.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":"2021-05-26T12:30:23.000Z","updated_at":"2023-03-18T14:01:42.000Z","dependencies_parsed_at":"2022-09-26T17:31:20.467Z","dependency_job_id":null,"html_url":"https://github.com/caibingcheng/orlike","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/caibingcheng/orlike","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caibingcheng%2Forlike","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caibingcheng%2Forlike/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caibingcheng%2Forlike/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caibingcheng%2Forlike/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caibingcheng","download_url":"https://codeload.github.com/caibingcheng/orlike/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caibingcheng%2Forlike/sbom","scorecard":{"id":261954,"data":{"date":"2025-08-11","repo":{"name":"github.com/caibingcheng/orlike","commit":"283104498665b637f61354b089aae07763184d1f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"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":"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":"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":"Code-Review","score":0,"reason":"Found 1/21 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":"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":"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":"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":"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":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: 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":-1,"reason":"internal error: error during GetBranch(server): error during branchesHandler.query: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 10 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-17T11:00:47.043Z","repository_id":49986937,"created_at":"2025-08-17T11:00:47.043Z","updated_at":"2025-08-17T11:00:47.043Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272886859,"owners_count":25009907,"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","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["blog","leancloud","vercel"],"created_at":"2024-11-05T19:08:12.904Z","updated_at":"2025-08-30T18:20:42.389Z","avatar_url":"https://github.com/caibingcheng.png","language":"Python","readme":"# OrLike\r\n\r\n![GitHub](https://img.shields.io/github/license/caibingcheng/orlike)\r\n![GitHub branch checks state](https://img.shields.io/github/checks-status/caibingcheng/orlike/master)\r\n![GitHub Release Date](https://img.shields.io/github/release-date/caibingcheng/orlike)\r\n\r\n使用LeanCloud, 部署在vercel的博客点赞插件, 保障安全.\r\n\r\n当前功能:\r\n- [x] 分离APPID/APPKEY, 保护账号安全\r\n- [x] 使用随机用户ID, 不保存用户其他信息, 保障用户隐私\r\n- [x] 支持设置用户过期时间\r\n- [x] 支持取消点赞/踩\r\n- [x] 将orlike发布为pipy包, 方便自动升级\r\n- [x] 加载动画\r\n- [x] 自定义图标和CDN\r\n\r\n# Branch\r\n\r\n- server: server端代码\r\n- client: client端代码\r\n- master: demo\r\n\r\n# Deployment\r\n\r\n在这里可以将OrLike部署到你的Vercel账户上.\r\n\r\n[![Deploy to Vercel](https://camo.githubusercontent.com/f209ca5cc3af7dd930b6bfc55b3d7b6a5fde1aff/68747470733a2f2f76657263656c2e636f6d2f627574746f6e)](https://vercel.com/import/project?template=https://github.com/caibingcheng/orlike-vercel)\r\n\r\n我们更推荐使用这个[**零配置的例子**](https://github.com/caibingcheng/orlike-vercel).\r\n\r\n# Usage\r\n\r\n在你期望嵌入```OrLike```的页面加入以下链接:\r\n```JavaScript\r\n\u003cscript src=\"https://cdn.jsdelivr.net/gh/caibingcheng/orlike@client/orlike.min.js\"\u003e\u003c/script\u003e\r\n```\r\n当然, 也可以使用自己的CDN. 本项目也依赖JQuery, 所以别忘记引用JQuery:\r\n```JavaScript\r\n\u003cscript src=\"https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js\"\u003e\u003c/script\u003e\r\n```\r\n\r\n接下来, 在你期望嵌入```OrLike```的位置加上一个```div```标签, 并且加上```class```或者```id```:\r\n```HTML\r\n\u003cdiv class=\"orlike-box\"\u003e\u003c/div\u003e\r\n```\r\n\r\n然后在合适的地方初始化```OrLike```:\r\n```HTML\r\n\u003cscript\u003e\r\n    new OrLike({\r\n        serverUrl: \"https://orlike.vercel.app/\",\r\n        el: \".orlike-box\",\r\n        days: 30,\r\n        icon: {like: \"fa fa-heart\", dislike: false},\r\n        style: \"https://cdn.jsdelivr.net/gh/caibingcheng/orlike@client/orlike.min.css\",\r\n    });\r\n\u003c/script\u003e\r\n```\r\n\r\n\u003e 尽管可以使用公共的serverUrl, 但是更推荐使用私有的serverUrl, 这样更容易保证数据安全.\r\n\r\n目前初始化需要的参数:\r\n- ```serverUrl```: **必填**, Vercel服务地址\r\n- ```el```: **必填**, 放```orlike```的```div```名字(```class```或```id```)\r\n- ```days```: 可选, 用户id保存的时间, 默认是30天\r\n- ```icon```: 可选, 自定义点赞和踩的图标, 不填写这是默认, 如果是false, 则不显示对应的按扭\r\n- ```style```: 可选, 可自定义样式, 如果不填写, 则使用默认CDN\r\n- ```ifont```: 可选, 可自定义font-awesome CDN, 如果不填写, 则使用默认CDN\r\n\r\n到此为止, 本地工作已经做完了, 现在需要创建LeanCloud账户, 可以参考[Valine](https://valine.js.org/quickstart.html)的配置方法.\r\n\r\n创建账户并且新建应用之后， 需要**给应用添加一个名为```OrLike```的class**, 并且设置**读写权限为所有用户**, 然后再拿到LeanCloud的```APP ID``` 和 ```APP Key```填入到Vercel的环境变量.\r\n\r\n- ```APPID``` 对应 ```APP ID```\r\n- ```APPKEY``` 对应 ```APP Key```\r\n\r\n然后部署OrLike就可以正常工作了.\r\n\r\n# Todo \u0026 Contributes\r\n项目初期, 还有很多想象空间, 加油↖(^ω^)↗\r\n\r\n- [ ] 提供点赞/踩排名\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaibingcheng%2Forlike","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaibingcheng%2Forlike","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaibingcheng%2Forlike/lists"}