{"id":16231584,"url":"https://github.com/hustcc/clz","last_synced_at":"2025-03-19T14:30:45.235Z","repository":{"id":66093469,"uuid":"244075674","full_name":"hustcc/clz","owner":"hustcc","description":":writing_hand: Serverless \u0026 Beautiful third-part comment system base on lean cloud.","archived":false,"fork":false,"pushed_at":"2020-03-09T01:59:02.000Z","size":59,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T19:12:10.622Z","etag":null,"topics":["clz","comment-system","serverless"],"latest_commit_sha":null,"homepage":"https://git.hust.cc/clz","language":"TypeScript","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/hustcc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://hust.cc","https://paypal.me/hustcc","https://atool.vip"]}},"created_at":"2020-03-01T02:47:11.000Z","updated_at":"2025-01-09T02:43:42.000Z","dependencies_parsed_at":"2023-03-10T23:36:54.047Z","dependency_job_id":null,"html_url":"https://github.com/hustcc/clz","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"d20c0fe8fce7cf81099e76df0d732dcabf942994"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hustcc%2Fclz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hustcc%2Fclz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hustcc%2Fclz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hustcc%2Fclz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hustcc","download_url":"https://codeload.github.com/hustcc/clz/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243997041,"owners_count":20380980,"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":["clz","comment-system","serverless"],"created_at":"2024-10-10T13:06:10.141Z","updated_at":"2025-03-19T14:30:45.227Z","avatar_url":"https://github.com/hustcc.png","language":"TypeScript","funding_links":["https://hust.cc","https://paypal.me/hustcc","https://atool.vip"],"categories":[],"sub_categories":[],"readme":"# clz\n\n\u003e Serverless \u0026 Beautiful third-part comment system base on lean cloud. 简洁有趣、无需后端代码的三方评论系统。\n\n[Live Demo 1](https://atool.vip/corevalue/) | [Live Demo 2](https://git.hust.cc/clz)\n\n[![npm Version](https://img.shields.io/npm/v/clz.svg)](https://www.npmjs.com/package/clz)\n[![Build Status](https://github.com/hustcc/clz/workflows/build/badge.svg)](https://github.com/hustcc/clz/actions)\n[![npm License](https://img.shields.io/npm/l/clz.svg)](https://www.npmjs.com/package/clz)\n\n\n## Install\n\n```bash\n$ npm i --save clz\n```\n\n\n## Usage\n\n```ts\nimport CLZ from 'clz';\n\n// 注意换成你自己的，去 leancloud 免费创建即可获取\nconst c = new CLZ({\n  appId: 'KO2rVJq8lMvgaYkEMhrUxgGn-gzGzoHsz',\n  appKey: '3UEp42VPz1kc731PeKDYKY7Q',\n  serverURLs: 'https://ko2rvjq8.lc-cn-n1-shared.com',\n  page: 'clz',\n});\n\n// 处理当前页面\nc.launch();\n\n// or update \nc.clear();\n\nc.updatePage('your page key'); // default is `pathname`.\n\nc.launch();\n```\n\n\n## Option\n\n - `appId`：leancloud 应用的 appId；\n - `appKey`：leancloud 应用的 appKey；\n - `serverURLs`：leancloud 应用的 serverURLs；\n - `page`：页面唯一标识，默认是根据 url 中的 `pathname` 标识；\n - `clicks`：触发评论的点击次数，默认是 `2`，也就是双击；\n - `interval`：连续点击的间隔时间，默认为 `200` 毫秒；\n\n\n## Apply\n\n\u003e 在 leancloud 中注册账号，然后申请免费应用，即可获得对应的 `appId`、`appKey`，`serverURLs` 可使用提供的共享地址，不过最好绑定二级域名，使用自己的域名地址。\n\n1. 进入 [leancloud](https://leancloud.cn/dashboard/applist.html#/apps) 控制台，创建应用（免费的即够用）\n2. 在应用设置 - 应用 Keys 页面\n3. 复制 `appId`、`appKey`、`serverURLs` 作为程序的配置\n4. 你也可以在存储管理中，去管理所有的评论\n\n\n\n## License\n\nMIT@[hustcc](https://github.com/hustcc).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhustcc%2Fclz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhustcc%2Fclz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhustcc%2Fclz/lists"}