{"id":15896027,"url":"https://github.com/tradologics/queuet","last_synced_at":"2025-10-16T00:32:49.530Z","repository":{"id":57167457,"uuid":"236832469","full_name":"tradologics/queuet","owner":"tradologics","description":"QueueT - Dead simple, Redis-based, message broker for Node.js","archived":false,"fork":false,"pushed_at":"2022-01-25T11:21:13.000Z","size":105,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-28T08:17:13.923Z","etag":null,"topics":["message-broker","message-queue","nodejs","npm","pubsub","redis"],"latest_commit_sha":null,"homepage":"https://npmjs.com/@tradologics/queuet","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tradologics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-28T20:18:49.000Z","updated_at":"2024-06-27T22:52:25.000Z","dependencies_parsed_at":"2022-08-30T15:22:08.396Z","dependency_job_id":null,"html_url":"https://github.com/tradologics/queuet","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tradologics%2Fqueuet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tradologics%2Fqueuet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tradologics%2Fqueuet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tradologics%2Fqueuet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tradologics","download_url":"https://codeload.github.com/tradologics/queuet/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229816012,"owners_count":18128512,"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":["message-broker","message-queue","nodejs","npm","pubsub","redis"],"created_at":"2024-10-06T09:05:27.699Z","updated_at":"2025-10-16T00:32:44.510Z","avatar_url":"https://github.com/tradologics.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://github.com/tradologics/queuet/blob/main/assets/logo.png?raw=true\" height=\"72\"\u003e\n\n# Dead Simple, Redis-Based, Message Broker for Node.js\n\n\u003ca href=\"https://tradologics.com/opensource\"\u003e\u003cimg alt=\"npm Version\" src=\"https://img.shields.io/badge/By-Tradologics-7269a6\"\u003e\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/package/@tradologics/queuet\"\u003e\u003cimg alt=\"npm Version\" src=\"https://badge.fury.io/js/%40tradologics%2Fqueuet.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://www.codefactor.io/repository/github/tradologics/queuet\"\u003e\u003cimg alt=\"Code Factor\" src=\"https://www.codefactor.io/repository/github/tradologics/queuet/badge\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/tradologics/queuet\"\u003e\u003cimg alt=\"Star this repo\" src=\"https://img.shields.io/github/stars/tradologics/queuet.svg?style=social\u0026label=Star\u0026maxAge=60\"\u003e\u003c/a\u003e\n\u003ca href=\"https://twitter.com/aroussi\"\u003e\u003cimg alt=\"Follow me on\" src=\"https://img.shields.io/twitter/follow/tradologics.svg?style=social\u0026label=Follow\u0026maxAge=60\"\u003e\u003c/a\u003e\n\n\n\n## Install\n\n```\n$ npm install @tradologics/queuet\n```\n\n## Use\n\n### Publisher\n\n```javascript\nconst broker = require(\"@tradologics/queuet\");\n\n// connect to redis\nbroker.initialize(\"myqueue\");\n\nbroker.publish(\"This is my message\").then(resp =\u003e {\n    broker.disconnect();\n    process.exit(0);\n}).catch(err =\u003e console.log(err));\n\n```\n\n### Subscriber\n(starts with getting the backlog)\n\n```javascript\nconst broker = require(\"queuet\");\n\n// connect to redis\nbroker.initialize(\"myqueue\");\n\n// handle backlog\nbroker.read_backlog(do_something);\n\n// subscribe to new items\nbroker.subscribe(do_something);\n\n\nfunction do_something(id, data) {\n    console.log(\"\u003e\u003e\", id, data);\n\n    // do some processing here and remove\n    // the message from the queue when done\n    broker.delete(id);\n};\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftradologics%2Fqueuet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftradologics%2Fqueuet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftradologics%2Fqueuet/lists"}