{"id":27160302,"url":"https://github.com/haricharank9/pub-sub-topic-ts","last_synced_at":"2025-04-08T23:41:07.191Z","repository":{"id":57142874,"uuid":"439952206","full_name":"haricharank9/pub-sub-topic-ts","owner":"haricharank9","description":"Topic-based Publish-Subscribe pattern library TypeScript implementation.","archived":false,"fork":false,"pushed_at":"2021-12-19T20:53:25.000Z","size":107,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T12:30:27.733Z","etag":null,"topics":["design-pattern","javascript","publisher","pubsub","subscriber","topic","typescript","typescript-library"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/haricharank9.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-19T19:38:42.000Z","updated_at":"2023-03-09T01:12:49.000Z","dependencies_parsed_at":"2022-09-05T11:50:22.776Z","dependency_job_id":null,"html_url":"https://github.com/haricharank9/pub-sub-topic-ts","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haricharank9%2Fpub-sub-topic-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haricharank9%2Fpub-sub-topic-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haricharank9%2Fpub-sub-topic-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haricharank9%2Fpub-sub-topic-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haricharank9","download_url":"https://codeload.github.com/haricharank9/pub-sub-topic-ts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247947823,"owners_count":21023058,"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":["design-pattern","javascript","publisher","pubsub","subscriber","topic","typescript","typescript-library"],"created_at":"2025-04-08T23:41:06.618Z","updated_at":"2025-04-08T23:41:07.182Z","avatar_url":"https://github.com/haricharank9.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pub-sub-topic-ts\nTopic based Publish-Subscribe pattern library TypeScript implementation.\n\n### Installation\n```sh\n    npm install pub-sub-topic-ts\n```\n\n### API\n\n```typescript\n    // subscribe to a topic\n    subscribe\u003cT\u003e(name: string, callback: (data: T[]) =\u003e void): Subscriber\n\n    // publish to a topic \n    publish\u003cT\u003e(topicName: string, data: T): void\n\n    //unsubscribe from topic\n    unsubscribe(subscriber: Subscriber): void\n\n    //delete a topic\n    deleteTopic(name: string): void\n\n    //get list of topics\n    getTopics(): string[]\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharicharank9%2Fpub-sub-topic-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharicharank9%2Fpub-sub-topic-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharicharank9%2Fpub-sub-topic-ts/lists"}