{"id":15134252,"url":"https://github.com/nnqq/vk-subs-activity","last_synced_at":"2026-01-18T13:30:08.506Z","repository":{"id":34066620,"uuid":"168170521","full_name":"nnqq/vk-subs-activity","owner":"nnqq","description":"👥 NPM module. Count activity of your VK group subscribers (likes, comments etc), sum up and convert to points","archived":false,"fork":false,"pushed_at":"2022-06-24T22:07:45.000Z","size":145,"stargazers_count":2,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-04T05:26:43.648Z","etag":null,"topics":["nodejs","vk-api","vk-script"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/vk-subs-activity","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/nnqq.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":"2019-01-29T14:42:38.000Z","updated_at":"2023-12-26T18:38:34.000Z","dependencies_parsed_at":"2022-08-24T18:31:12.901Z","dependency_job_id":null,"html_url":"https://github.com/nnqq/vk-subs-activity","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/nnqq/vk-subs-activity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nnqq%2Fvk-subs-activity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nnqq%2Fvk-subs-activity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nnqq%2Fvk-subs-activity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nnqq%2Fvk-subs-activity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nnqq","download_url":"https://codeload.github.com/nnqq/vk-subs-activity/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nnqq%2Fvk-subs-activity/sbom","scorecard":{"id":691175,"data":{"date":"2025-08-11","repo":{"name":"github.com/nnqq/vk-subs-activity","commit":"b2ebf89f96e2d2b4639a659b93e8896681883993"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"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":"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":"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":"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":"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":"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":"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: MIT 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":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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 6 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":"20 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-6chw-6frg-f759","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-w7rc-rwvf-8q5r","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-g6ww-v8xp-vmwg","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6"],"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-22T02:20:05.247Z","repository_id":34066620,"created_at":"2025-08-22T02:20:05.247Z","updated_at":"2025-08-22T02:20:05.247Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28536755,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T13:04:05.990Z","status":"ssl_error","status_checked_at":"2026-01-18T13:01:44.092Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["nodejs","vk-api","vk-script"],"created_at":"2024-09-26T05:04:04.678Z","updated_at":"2026-01-18T13:30:08.444Z","avatar_url":"https://github.com/nnqq.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VK group subscribers activity monitoring (Node.js)\n\nThis module helps you to count activity of your VK group subscribers (likes, comments etc). And easy to integrate with your bot or something else.\n\n## Getting Started\n\n### Install\n\n```\nnpm i vk-subs-activity\n```\n\n### Usage\n\nFast start below, continue reading for advanced usage.\n\n```javascript\nconst VkSubsActivity = require('vk-subs-activity');\n\nconst vkSubsActivity = new VkSubsActivity({\n  token: process.env.TOKEN, // SERVICE or USER token, NOT group\n  groupId: process.env.GROUP_ID, // e.g. 147845620\n});\n\nvkSubsActivity.updateList()\n  .then(() =\u003e {\n    console.log(vkSubsActivity.getList());\n  });\n```\n\n### Tests\n\n```\nnpm test\n```\n\n### Methods\n\n* [constructor(settings)](#constructorsettings)\n* [.startAutoUpdate(settings, cb)](#startautoupdatesettings-cb)\n* [.stopAutoUpdate()](#stopautoupdate)\n* [.getList(settings)](#getlistsettings)\n* [.updateList(settings)](#updatelistsettings)\n* [.clearList()](#clearlist)\n\n#### constructor(settings)\n\n##### Default config\n\n```javascript\nnew VkSubsActivity({\n  token: undefined,\n  groupId: undefined,\n  lang: 'ru',\n  adminsIds: [],\n  likes: {\n    valueOfUsual: 1,\n    valueOfTop: 2,\n    countOfFirstAreTop: 5,\n    valueOfLikedAllPosts: 5,\n    ignoreAdmins: true,\n  },\n  comments: {\n    valueOfUsual: 3,\n    valueOfTop: 4,\n    countOfFirstAreTop: 5,\n    ignoreShorterThan: 10,\n    valueOfLikesFromOthers: 5,\n    ignoreAdmins: true,\n  },\n});\n```\n\n##### Properties description\n\nProperty | Type | Default | Description\n--- | --- | --- | --- |\ntoken | `string` | undefined | [VK Service or User access_token](https://vk.com/dev/access_token) |\ngroupId | `number` | undefined | Group id for monitoring\nlang | `string` | ru | VK api data language\nadminsIds | `number[]` | [] | Activity of this users don't affect in rating (they will not get any points for activity)\nlikes.valueOfUsual | `number` | 1 | Number of points user receive for \"usual\" like (not in the first N likes)\nlikes.valueOfTop | `number` | 2 | Number of points user receive for \"top\" like (in the first N likes)\nlikes.countOfFirstAreTop | `number` | 5 | How many first likes will get extra points\nlikes.valueOfLikedAllPosts | `number` | 5 | User will get extra points if he liked all posts at the update interval fromDate - toDate\nlikes.ignoreAdmins | `boolean` | true | Admins likes will not affect in rating\ncomments.valueOfUsual | `number` | 3 | Number of points user receive for \"usual\" comment (not in the first N comments)\ncomments.valueOfTop | `number` | 4 | Number of points user receive for \"top\" comment (in the first N comments)\ncomments.countOfFirstAreTop | `number` | 5 | How many first comments will get extra points\ncomments.ignoreShorterThan | `number` | 10 | Users who leave short comment, will not get points for this\ncomments.valueOfLikesFromOthers | `number` | 5 | Number of points user receive if someone likes his comment\ncomments.ignoreAdmins | `boolean` | true | Admins comments will not affect in rating\n\n#### .startAutoUpdate(settings, cb)\n\nStarts rating auto update in selected interval. Clears rating list before each iteration to prevent double data rewriting. Optionally, you can pass a function as second argument, and it will executes every time when subs-activity-list is updated \n\n##### Default config\n\n```javascript\n.startAutoUpdate({\n  fromDate: Math.floor(Date.now() / 1000 - 604800),\n  toDate: Math.floor(Date.now() / 1000),\n  interval: 300000,\n}, Promise.resolve);\n```\n\n##### Properties description\n\nProperty | Type | Default | Description\n--- | --- | --- | --- |\nfromDate | `number` | `Math.floor(Date.now() / 1000 - 604800)` (Unix time 7 days ago) | Only group posts newer than this Unix time affects rating\ntoDate | `number` | `Math.floor(Date.now() / 1000)` (Unix time now) | Only group posts older than this Unix time affects rating\ninterval | `number` | 300000 (ms) | Interval of rating update\n\n#### .stopAutoUpdate()\n\nIt stops rating auto update\n\n#### .getList(settings)\n\n##### Default config\n\n```javascript\n.getList({\n  count: 0,\n  plain: false,\n  sortBy: 'points',\n  sortDirection: 'desc',\n  search: undefined,\n});\n```\n\n##### Properties description\n\nProperty | Type | Default | Description\n--- | --- | --- | --- |\ncount | `number` | 0 (all) | Number of rating items will return\nplain | `boolean` | false | Rating list will return as string\nsortBy | `string` | points | Rating list will sort by (id / firstName / lastName / usualLikes / topLikes / totalLikes / usualComments / topComments / totalComments / commentsLikesFromOthers / likedAllPosts / points / place)\nsortDirection | `string` | desc | Rating list sort direction ascending or descending (asc / desc)\nsearch | `object` | undefined (all) | Will return only rating items which match search query. E.g. `search: { id: 123456 }` or `search: { firstName: 'Ivan' }`\n\n#### .updateList(settings)\n\nManual update of the rating list. Note that .updateList() will not clear rating list before update\n\nSettings are equal to [.startAutoUpdate(settings, cb)](#startautoupdatesettings-cb), but without `interval` property\n\n#### .clearList()\n\nClears rating list\n\n### License\n\nMIT\n\n## Contact author\n\n[Telegram](https://t.me/aveDenis)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnnqq%2Fvk-subs-activity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnnqq%2Fvk-subs-activity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnnqq%2Fvk-subs-activity/lists"}