{"id":16781090,"url":"https://github.com/vanessa219/vcomment","last_synced_at":"2025-10-08T23:43:10.008Z","repository":{"id":39862377,"uuid":"233212311","full_name":"Vanessa219/vcomment","owner":"Vanessa219","description":"💬 B3log 分布式社区的评论组件，欢迎加入下一代社区网络。","archived":false,"fork":false,"pushed_at":"2024-03-28T13:44:35.000Z","size":1140,"stargazers_count":8,"open_issues_count":5,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-29T18:54:17.050Z","etag":null,"topics":["b3log","comment","solo"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/Vanessa219.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},"funding":{"custom":"https://ld246.com/sponsor","open_collective":"b3log"}},"created_at":"2020-01-11T10:13:04.000Z","updated_at":"2025-08-03T10:46:09.000Z","dependencies_parsed_at":"2024-01-10T17:13:09.951Z","dependency_job_id":"b567f530-4813-49a0-941b-80fbe7e24a58","html_url":"https://github.com/Vanessa219/vcomment","commit_stats":{"total_commits":106,"total_committers":4,"mean_commits":26.5,"dds":0.4339622641509434,"last_synced_commit":"a9f6abba8d3f63c953f44cbcb3e6d82899d7d486"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Vanessa219/vcomment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vanessa219%2Fvcomment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vanessa219%2Fvcomment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vanessa219%2Fvcomment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vanessa219%2Fvcomment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vanessa219","download_url":"https://codeload.github.com/Vanessa219/vcomment/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vanessa219%2Fvcomment/sbom","scorecard":{"id":147263,"data":{"date":"2025-08-11","repo":{"name":"github.com/Vanessa219/vcomment","commit":"3716c863d6ff562b44d1adfc2196d8a227940e9c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.2,"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":"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":"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/13 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":"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":"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":"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":"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":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"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":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/Vanessa219/.github/.github/SECURITY.md:1","Info: Found linked content: github.com/Vanessa219/.github/.github/SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/Vanessa219/.github/.github/SECURITY.md:1","Info: Found text in security policy: github.com/Vanessa219/.github/.github/SECURITY.md:1"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 17 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"}},{"name":"Vulnerabilities","score":0,"reason":"29 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488","Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T09:37:49.870Z","repository_id":39862377,"created_at":"2025-08-16T09:37:49.870Z","updated_at":"2025-08-16T09:37:49.870Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000727,"owners_count":26082862,"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-10-08T02:00:06.501Z","response_time":56,"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":["b3log","comment","solo"],"created_at":"2024-10-13T07:36:41.623Z","updated_at":"2025-10-08T23:43:09.979Z","avatar_url":"https://github.com/Vanessa219.png","language":"TypeScript","funding_links":["https://ld246.com/sponsor","https://opencollective.com/b3log"],"categories":[],"sub_categories":[],"readme":"## 💡 简介\n\n[vcomment](https://github.com/Vanessa219/vcomment) 🧵 B3log 分布式社区的评论组件，欢迎加入下一代社区网络。\n\n## 🛠️ 使用文档\n\n### CommonJS\n\n* 安装依赖\n\n```shell\nnpm install vcmt --save\n```\n\n* 在代码中引入并初始化对象，可参考 [index.js](https://github.com/Vanessa219/vcomment/blob/master/demo/index.js)\n\n```ts\nimport Vcomment from '../src/index'\n\nconst vcomment = new Vcomment({\n  id: 'comments',\n  postId: '1353745196751',\n  userName: 'vanessa',\n  url: 'http://localhost:8080',\n  currentPage: 3,\n  vditor: {\n    hljsEnable: false,\n    hljsStyle: \"github\"\n  }\n})\n\nvcomment.render()\n```\n\n### HTML script\n\n* 在 HTML 中插入 js，可参考 [index-static.html](https://github.com/Vanessa219/vcomment/blob/master/demo/index-static.html)\n\n```html\n\u003c!-- \u003cscript src=\"https://cdn.jsdelivr.net/npm/vcmt@1.3.1/dist/index.min.js\" defer\u003e\u003c/script\u003e --\u003e\n\u003cscript src=\"https://unpkg.com/vcmt@1.3.1/dist/index.min.js\" defer\u003e\u003c/script\u003e\n```\n\n### 示例代码\n\n* [CommonJS](https://github.com/Vanessa219/vcomment/blob/master/demo/index.js)\n* [HTML script](https://github.com/Vanessa219/vcomment/blob/master/demo/index-static.html)\n\n### API\n\n#### options\n\n| |说明|\t默认值|\n|---|---|---|\n| id| 渲染元素的 id |-|\n| postId| 文章 id |-|\n| userName| 用户名 |-|\n| url| 评论 API 地址 |\"https://ld246.com\"|\n| currentPage| 评论页码|1|\n| error| 获取列表错误回调|-|\n|vditor|编辑器参数|-|\n|vditor.hljsEnable|是否启用高亮|true|\n|vditor.hljsStyle|高亮样式|\"github\"|\n|vditor.emoji|自定义表情 { [key: string]: string }|{}|\n|vditor.lang|语言|'zh_CN'|\n\n#### methods\n\n| |说明|\n|---|---|\n|render|渲染评论|\n|parseMarkdown(vditorOptions: IOptionsVditor)|Markdown 渲染|\n|lazyLoadImage|图片延迟加载|\n\n## 欢迎关注 B3log 开源社区微信公众号 `B3log开源`\n\n![image-d3c00d78](https://user-images.githubusercontent.com/873584/71566370-0d312c00-2af2-11ea-8ea1-0d45d6f0db20.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanessa219%2Fvcomment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvanessa219%2Fvcomment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanessa219%2Fvcomment/lists"}