{"id":16832645,"url":"https://github.com/zswang/xqueue","last_synced_at":"2026-05-19T00:34:30.973Z","repository":{"id":57402182,"uuid":"112743250","full_name":"zswang/xqueue","owner":"zswang","description":"Emitter at Redis queue","archived":false,"fork":false,"pushed_at":"2018-10-09T14:02:12.000Z","size":41,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-05-03T09:23:25.800Z","etag":null,"topics":["emitter","publish","queue","redis","subscribe"],"latest_commit_sha":null,"homepage":null,"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/zswang.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":"2017-12-01T13:31:36.000Z","updated_at":"2019-06-25T03:09:45.000Z","dependencies_parsed_at":"2022-09-16T01:24:27.366Z","dependency_job_id":null,"html_url":"https://github.com/zswang/xqueue","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zswang/xqueue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zswang%2Fxqueue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zswang%2Fxqueue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zswang%2Fxqueue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zswang%2Fxqueue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zswang","download_url":"https://codeload.github.com/zswang/xqueue/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zswang%2Fxqueue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33196185,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"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":["emitter","publish","queue","redis","subscribe"],"created_at":"2024-10-13T11:49:53.549Z","updated_at":"2026-05-19T00:34:30.956Z","avatar_url":"https://github.com/zswang.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xqueue\n\nEmitter at Redis queue\n\n[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coverage-image]][coverage-url]\n\n## xqueue:emitter:listener:${type}\n\n* emit(type, data)\n\n```redis\nSMEMBERS xqueue:emitter:listener:${type}\nRPUSHX xqueue:emitter:encoding:${type}:${encoding}\nSREM xqueue:emitter:encoding:${type}:${encoding}\n```\n\n* on(type, encoding, fn)\n\n```redis\nRPUSH xqueue:emitter:encoding:${type}:${encoding} :nil\nEXPIRE xqueue:emitter:encoding:${type}:${encoding} ${expire}\nSADD xqueue:emitter:listener:${type} ${encoding}\n\nwhile (true) {\n  LPOP xqueue:emitter:encoding:${type}:${encoding}\n  sleep()\n}\n```\n\n\n## License\n\nMIT © [zswang](http://weibo.com/zswang)\n\n[npm-url]: https://badge.fury.io/js/xqueue\n[npm-image]: https://badge.fury.io/js/xqueue.svg\n[travis-url]: https://travis-ci.org/zswang/xqueue\n[travis-image]: https://travis-ci.org/zswang/xqueue.svg?branch=master\n[coverage-url]: https://coveralls.io/github/zswang/xqueue?branch=master\n[coverage-image]: https://coveralls.io/repos/zswang/xqueue/badge.svg?branch=master\u0026service=github","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzswang%2Fxqueue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzswang%2Fxqueue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzswang%2Fxqueue/lists"}