{"id":18441591,"url":"https://github.com/stefanwalther/lepus","last_synced_at":"2026-02-14T01:03:03.441Z","repository":{"id":52542784,"uuid":"112685815","full_name":"stefanwalther/lepus","owner":"stefanwalther","description":"Convenience wrapper around amqplib.","archived":false,"fork":false,"pushed_at":"2025-11-17T23:33:08.000Z","size":166,"stargazers_count":1,"open_issues_count":17,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-02-10T02:41:42.710Z","etag":null,"topics":["amqp","amqp-client","amqplib","broker","publisher","rabbit","rabbitmq","subscriber","taskqueue"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stefanwalther.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.yml","contributing":"docs/contributing.md","funding":null,"license":"LICENSE.md","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}},"created_at":"2017-12-01T02:33:46.000Z","updated_at":"2020-02-27T20:45:02.000Z","dependencies_parsed_at":"2023-01-23T14:00:36.664Z","dependency_job_id":"9e1abc62-75c1-403a-b10c-8d98c0bab0e9","html_url":"https://github.com/stefanwalther/lepus","commit_stats":{"total_commits":98,"total_committers":4,"mean_commits":24.5,"dds":0.2755102040816326,"last_synced_commit":"121438ed4e2b0bd78a9e0d63b4a4a5297032d6fb"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/stefanwalther/lepus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanwalther%2Flepus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanwalther%2Flepus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanwalther%2Flepus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanwalther%2Flepus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stefanwalther","download_url":"https://codeload.github.com/stefanwalther/lepus/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanwalther%2Flepus/sbom","scorecard":{"id":850739,"data":{"date":"2025-08-11","repo":{"name":"github.com/stefanwalther/lepus","commit":"121438ed4e2b0bd78a9e0d63b4a4a5297032d6fb"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Code-Review","score":-1,"reason":"Found no human activity in the last 16 changesets","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":"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":"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":"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":"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":"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":"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":"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":"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":"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":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Warn: project license file does not contain an FSF or OSI license."],"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":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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 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-23T22:27:41.227Z","repository_id":52542784,"created_at":"2025-08-23T22:27:41.227Z","updated_at":"2025-08-23T22:27:41.227Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29427636,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T22:20:51.549Z","status":"ssl_error","status_checked_at":"2026-02-13T22:20:49.838Z","response_time":78,"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":["amqp","amqp-client","amqplib","broker","publisher","rabbit","rabbitmq","subscriber","taskqueue"],"created_at":"2024-11-06T06:38:41.364Z","updated_at":"2026-02-14T01:03:03.416Z","avatar_url":"https://github.com/stefanwalther.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## lepus\n\n\u003e Convenience wrapper around amqplib.\n\n[![CircleCI](https://img.shields.io/circleci/project/github/stefanwalther/lepus.svg)](https://circleci.com/gh/stefanwalther/lepus)\n[![codecov](https://codecov.io/gh/stefanwalther/lepus/branch/master/graph/badge.svg)](https://codecov.io/gh/stefanwalther/lepus)\n\n---\n\n__NOTE__: This is absolutely not a complete or really working solution, I'm just implementing bits and bobs as I require them.  Feel free to contribute.\n\n---\n\n## Features\n\n- Connect to RabbitMQ \u0026 maintain a connection\n- Retry to connect in case the connection fails or drops\n- Publish a message\n- Subscribe to a message\n\n## Install\n\n```\n$ npm install lepus --save\n```\n\n## Usage\n\n### Basic Usage\n\n```\nconst Lepus = require('lepus');\n\n(async () =\u003e {\n  let lepus = new Lepus();\n  await lepus.connect();\n  \n  // Publish a message\n  let publishOpts = {\n      exchange: {\n        type: 'topic',\n        name: 'test'\n      },\n      key: 'test-key',\n      payload: {\n        foo: 'bar',\n        bar: 'baz',\n        date: new Date()\n      },\n      options: {}\n    };  \n  await lepus.publishMessage(publishOpts);\n  \n  // Subscribe to messages\n  let subscribeOpts = {\n      exchange: {\n        type: 'topic',\n        name: 'test'\n      },\n      key: 'test-key',\n      queue: {\n        name: 'test-key-queue'\n      }\n  };\n  \n  await lepus.subscribeMessage(subscribeOpts, async (msgContent, msgRaw) =\u003e {\n    \n    console.log('Hurray, we have received a message!');\n    console.log('=\u003e msgContent', msgContent);\n    console.log('=\u003e msgRaw', msgRaw);\n    \n  });\n  \n  \n  // In case we want to disconnect ...\n  // await lepus.disconnect();\n  \n})();\n\n```\n\n### API\n\nSee [API docs](./docs/api-docs.md)\n\n### Examples\n\n- Connect to RabbitMQ: [./examples/connection.js](./examples/connection.js)\n- Handle connection failure: [./examples/connection-failure.js](./examples/connection-failure.js)\n- Publish a message: [./examples/publishMessage.js](./examples/publishMessage.js)\n- Subscribe to a queue: [./examples/subscribeMessage.js](./examples/subscribeMessage.js)\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/stefanwalther/lepus/issues). The process for contributing is outlined below:\n\n1. Create a fork of the project\n2. Work on whatever bug or feature you wish\n3. Create a pull request (PR)\n\nI cannot guarantee that I will merge all PRs but I will evaluate them all.\n\n### Run tests\n\n#### Unit tests:\n\n```bash\n$ npm run test:unit\n```\n#### Integration tests:\n\nFirst start RabbitMQ locally:\n```sh\n$ docker-compose up -d\n```\n\nThen run the integration tests:\n```bash\n$ npm run test:unit\n```\n\n### Updating docs\n\n```sh\n$ make gen-readme\n```\n\n## References\n\nHere are links \u0026 libraries that helped me:\n- https://guidesmiths.github.io/rascal/\n- https://github.com/lanetix/node-lanetix-amqp-easy\n- https://github.com/nowait/amqp\n- https://github.com/dial-once/node-bunnymq\n\nSome inspirations for the topology functionality:\n- https://github.com/LeanKit-Labs/rabbit-topology\n\nAMQP Connection Mgmt:\n- https://www.npmjs.com/package/amqp-connection-manager\n\n## About\n\n### Author\n**Stefan Walther**\n\n* [twitter](http://twitter.com/waltherstefan)\n* [github.com/stefanwalther](http://github.com/stefanwalther) \n* [LinkedIn](https://www.linkedin.com/in/stefanwalther/)\n\n### License\nMIT\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on March 30, 2018._\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefanwalther%2Flepus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstefanwalther%2Flepus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefanwalther%2Flepus/lists"}