{"id":19892884,"url":"https://github.com/romch007/adonis-pubsub","last_synced_at":"2025-06-28T21:39:38.376Z","repository":{"id":42458163,"uuid":"507541555","full_name":"romch007/adonis-pubsub","owner":"romch007","description":"PubSub provider for AdonisJS","archived":false,"fork":false,"pushed_at":"2023-08-02T10:19:03.000Z","size":2734,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T14:58:29.226Z","etag":null,"topics":["adonisjs","google-pubsub","mqtt","pubsub","redis","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/romch007.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/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":"2022-06-26T10:20:49.000Z","updated_at":"2023-11-30T12:39:00.000Z","dependencies_parsed_at":"2024-11-12T18:40:11.214Z","dependency_job_id":null,"html_url":"https://github.com/romch007/adonis-pubsub","commit_stats":{"total_commits":28,"total_committers":1,"mean_commits":28.0,"dds":0.0,"last_synced_commit":"37db5567044f3e953a394b87cb7c9aabb944ce3c"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romch007%2Fadonis-pubsub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romch007%2Fadonis-pubsub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romch007%2Fadonis-pubsub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romch007%2Fadonis-pubsub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/romch007","download_url":"https://codeload.github.com/romch007/adonis-pubsub/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252088632,"owners_count":21692830,"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":["adonisjs","google-pubsub","mqtt","pubsub","redis","typescript"],"created_at":"2024-11-12T18:25:57.830Z","updated_at":"2025-05-02T18:31:50.365Z","avatar_url":"https://github.com/romch007.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# adonis-pubsub\n\u003e PubSub provider for AdonisJS\n\n[![npm-image]][npm-url] [![license-image]][license-url] [![typescript-image]][typescript-url]\n\nPubSub provider for AdonisJS\n\nSupported brokers:\n- MQTT\n- Google PubSub\n- Redis\n\n## Installation\n\n```\nnpm install --save adonis-pubsub\n```\nConfiguration:\n```\nnode ace configure adonis-pubsub\n```\n## Per driver configuration\n- ### MQTT configuration\n```\nnpm install --save async-mqtt\n```\n- ### Google PubSub configuration\n```\nnpm install --save @google-cloud/pubsub\n```\n- ### Redis configuration\n\nPlease configure `@adonisjs/redis` ([docs](https://docs.adonisjs.com/guides/redis)) package and set the appropriate redis connection name in `config/pubsub.ts`\n\n## Usage\n\n```ts\nimport Event from '@ioc:Adonis/Core/Event'\nimport Logger from '@ioc:Adonis/Core/Logger'\nimport PubSub from '@ioc:Romch007/PubSub'\n\n// Subscribe to topic and listen for message\nPubSub.subscribe('example')\nEvent.on('pubsub:message', ({ topic, message }) =\u003e {\n  Logger.info(`Message from ${topic}: ${message.toString()}`)\n})\n\n// Publish message to topic\nawait PubSub.publish('example', Buffer.from('message data'))\n```\n\n[github-actions-image]: https://github.com/adonis-pubsub/actions/workflows/test.yml\n[github-actions-url]: https://img.shields.io/github/workflow/status/adonis-pubsub/test?style=for-the-badge \"github-actions\"\n\n[npm-image]: https://img.shields.io/npm/v/adonis-pubsub.svg?style=for-the-badge\u0026logo=npm\n[npm-url]: https://npmjs.org/package/adonis-pubsub \"npm\"\n\n[license-image]: https://img.shields.io/npm/l/adonis-pubsub?color=blueviolet\u0026style=for-the-badge\n[license-url]: LICENSE.md \"license\"\n\n[typescript-image]: https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge\u0026logo=typescript\n[typescript-url]:  \"typescript\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromch007%2Fadonis-pubsub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromch007%2Fadonis-pubsub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromch007%2Fadonis-pubsub/lists"}