{"id":17771448,"url":"https://github.com/rootslab/vapid","last_synced_at":"2026-04-26T12:32:52.341Z","repository":{"id":19847510,"uuid":"23109511","full_name":"rootslab/vapid","owner":"rootslab","description":"Vapid, a vacuous Redis implementation for connection tests, with a fully functional PubSub system for multiple clients.","archived":false,"fork":false,"pushed_at":"2018-02-10T14:41:32.000Z","size":41,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-23T13:23:29.678Z","etag":null,"topics":["fake-redis-server","redis","redis-server","spade"],"latest_commit_sha":null,"homepage":"","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/rootslab.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":"2014-08-19T12:39:31.000Z","updated_at":"2017-12-04T13:46:33.000Z","dependencies_parsed_at":"2022-09-01T15:58:04.368Z","dependency_job_id":null,"html_url":"https://github.com/rootslab/vapid","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/rootslab/vapid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootslab%2Fvapid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootslab%2Fvapid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootslab%2Fvapid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootslab%2Fvapid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rootslab","download_url":"https://codeload.github.com/rootslab/vapid/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootslab%2Fvapid/sbom","scorecard":{"id":784710,"data":{"date":"2025-08-11","repo":{"name":"github.com/rootslab/vapid","commit":"ec7f4a810a2a0cb941691bd79529c268685faf9b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"Code-Review","score":0,"reason":"Found 0/30 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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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: 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"}}]},"last_synced_at":"2025-08-23T05:46:43.376Z","repository_id":19847510,"created_at":"2025-08-23T05:46:43.376Z","updated_at":"2025-08-23T05:46:43.376Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32297895,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T09:34:17.070Z","status":"ssl_error","status_checked_at":"2026-04-26T09:34:00.993Z","response_time":129,"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":["fake-redis-server","redis","redis-server","spade"],"created_at":"2024-10-26T21:33:00.019Z","updated_at":"2026-04-26T12:32:52.325Z","avatar_url":"https://github.com/rootslab.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Vapid\n\n[![NPM VERSION](http://img.shields.io/npm/v/vapid.svg?style=flat)](https://www.npmjs.org/package/vapid)\n[![CODACY BADGE](https://img.shields.io/codacy/b18ed7d95b0a4707a0ff7b88b30d3def.svg?style=flat)](https://www.codacy.com/public/44gatti/vapid)\n[![CODECLIMATE-TEST-COVERAGE](https://img.shields.io/codeclimate/c/rootslab/vapid.svg?style=flat)](https://codeclimate.com/github/rootslab/vapid)\n[![LICENSE](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://github.com/rootslab/vapid#mit-license)\n\n![NODE VERSION](https://img.shields.io/node/v/vapid.svg)\n[![TRAVIS CI BUILD](http://img.shields.io/travis/rootslab/vapid.svg?style=flat)](http://travis-ci.org/rootslab/vapid)\n[![BUILD STATUS](http://img.shields.io/david/rootslab/vapid.svg?style=flat)](https://david-dm.org/rootslab/vapid)\n[![DEVDEPENDENCY STATUS](http://img.shields.io/david/dev/rootslab/vapid.svg?style=flat)](https://david-dm.org/rootslab/vapid#info=devDependencies)\n\n[![NPM MONTHLY](http://img.shields.io/npm/dm/vapid.svg?style=flat)](http://npm-stat.com/charts.html?package=vapid)\n![NPM YEARLY](https://img.shields.io/npm/dy/vapid.svg)\n\n[![NPM GRAPH](https://nodei.co/npm/vapid.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/vapid/)\n\n\u003e __Vapid__, a vacuous Redis implementation for connection tests, with a fully functional PubSub system for multiple clients.\n\n\u003e See __[lib/commands](./lib/commands)__ dir to check for implemented commands.\n\n### Install\n\n```bash\n$ npm install vapid [-g]\n```\n\n\u003e __install and update devDependencies__:\n\n```bash\n $ cd vapid/\n $ npm install \n # update\n $ npm update \n```\n\n\u003e __require__:\n\n```javascript\nvar Vapid  = require( 'vapid' );\n```\n\n### Run Tests\n\n```bash\n$ cd vapid/\n$ npm test\n```\n\n### Run Benchmarks\n\n\u003e run benchmarks for __Vapid__ PubSub system with __Spade__ clients.\n\n```bash\n$ cd vapid/\n$ npm run bench\n```\n\n\u003e __NOTE__:\n\u003e  - in order to use __spade__ and __hiredis__ native parser, install **_devDependencies_** .\n\n----------------------------------------------------------------------------------------------\n\n### Constructor\n\n```javascript\nVapid( [ Object opt ] )\n// or\nnew Vapid( [ Object opt ] )\n```\n\n### #Options\n\n\u003e Default options are listed.\n\n```javascript\n{\n    secret : 'secret'\n    , maxdb : 16\n}\n```\n\n### Properties\n\n\u003e All properties from net.Server module are inherited : 'connections', 'maxConnections', ..\n\n```javascript\n /*\n  * A property that holds the initial config object.\n  */\n Vapid.options : Object\n\n /*\n  * Hash of connected clients/sockets.\n  */\n Vapid.clients : Object\n\n /*\n  * Command Queues for connected clients, every queue is an instance of Train.\n  */\n Vapid.cqueues : Object\n\n /*\n  * Parsers for connected clients.\n  */\n Vapid.parsers : Object\n\n /*\n  * An object containing implemented Redis commands.\n  */\n Vapid.commands : Object\n\n /*\n  *\n  */\n Vapid.logger : Gerry\n\n /*\n  * An object containing bindings between channels/patterns and clients subscribed to.\n  */\n Vapid.pubsub : Object\n\n```\n\n### Methods\n\n\u003e Arguments within [ ] are optional.\n\n\u003e All methods from net.Server module are inherited : 'listen', 'address', ..\n\n```javascript\n/*\n * Enable logging to console.\n */\nVapid#cli : function ( [ Boolean enable [, Function logger [, Boolean collect_events ] ] ] ) : undefined\n\n/*\n * Send data to all connected clients ( optionally you can specify a reduced list ).\n */\nVapid#send : function ( Buffer data | String data [, Array client_id_list ] ) : Number\n\n/*\n * Server voluntarily crashed after calling Vapid#crash. All socket connections\n * will be destroyed and the server will be closed.\n */\nVapid#crash : function () : Number\n\n/*\n * Mute all or a list of sockets, server discards commands until mute will be switched off.\n */\nVapid#mute : function ( [ Boolean silent [, Array socket_names ] ] ) : Number\n```\n\n### Events\n\n\u003e All the events from net.Server module are inherited: 'listening', 'connection'. 'close', 'error', ..\n\n\u003e Vapid custom events:\n\n```javascript\n/*\n * A client has disconnected\n */\n 'disconnection' : function ( String client_id )\n\n /*\n  * Emitted when server crashes, it happens after the 'close' events.\n  * See also Vapid#crash.\n  */\n 'crashed' : function ( Number trashed )\n```\n\n### MIT License\n\n\u003e Copyright (c) 2014-present \u0026lt; Guglielmo Ferri : 44gatti@gmail.com \u0026gt;\n\n\u003e Permission is hereby granted, free of charge, to any person obtaining\n\u003e a copy of this software and associated documentation files (the\n\u003e 'Software'), to deal in the Software without restriction, including\n\u003e without limitation the rights to use, copy, modify, merge, publish,\n\u003e distribute, sublicense, and/or sell copies of the Software, and to\n\u003e permit persons to whom the Software is furnished to do so, subject to\n\u003e the following conditions:\n\n\u003e __The above copyright notice and this permission notice shall be\n\u003e included in all copies or substantial portions of the Software.__\n\n\u003e THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\n\u003e EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n\u003e MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n\u003e IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\n\u003e CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n\u003e TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n\u003e SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frootslab%2Fvapid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frootslab%2Fvapid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frootslab%2Fvapid/lists"}