{"id":17159846,"url":"https://github.com/unhappychoice/cycle-pusher","last_synced_at":"2025-07-22T10:36:34.041Z","repository":{"id":26341713,"uuid":"108122031","full_name":"unhappychoice/cycle-pusher","owner":"unhappychoice","description":":recycle: Cycle.js driver for Pusher","archived":false,"fork":false,"pushed_at":"2025-04-08T04:04:12.000Z","size":951,"stargazers_count":7,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-08T05:19:57.351Z","etag":null,"topics":["cyclejs","library","pusher","typescript","websocket","wrapper"],"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/unhappychoice.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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-10-24T12:14:24.000Z","updated_at":"2025-04-08T04:04:09.000Z","dependencies_parsed_at":"2024-02-01T04:45:56.297Z","dependency_job_id":"1db7a92f-0694-4507-b77e-31e7397530ef","html_url":"https://github.com/unhappychoice/cycle-pusher","commit_stats":{"total_commits":339,"total_committers":3,"mean_commits":113.0,"dds":0.4985250737463127,"last_synced_commit":"ae2524869dbedfadb9e0e2c93cebaf10ca2f0e38"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unhappychoice%2Fcycle-pusher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unhappychoice%2Fcycle-pusher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unhappychoice%2Fcycle-pusher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unhappychoice%2Fcycle-pusher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unhappychoice","download_url":"https://codeload.github.com/unhappychoice/cycle-pusher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248721112,"owners_count":21151048,"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":["cyclejs","library","pusher","typescript","websocket","wrapper"],"created_at":"2024-10-14T22:15:17.034Z","updated_at":"2025-04-13T13:31:35.743Z","avatar_url":"https://github.com/unhappychoice.png","language":"TypeScript","funding_links":[],"categories":["Libraries"],"sub_categories":["Drivers"],"readme":"# cycle-pusher\n[![npm version](https://badge.fury.io/js/cycle-pusher.svg)](https://badge.fury.io/js/cycle-pusher)\n[![Libraries.io dependency status for GitHub repo](https://img.shields.io/librariesio/github/unhappychoice/cycle-pusher.svg)](https://libraries.io/github/unhappychoice/cycle-pusher)\n![npm bundle size](https://img.shields.io/bundlephobia/min/cycle-pusher.svg)\n![npm](https://img.shields.io/npm/dt/cycle-pusher.svg)\n![GitHub](https://img.shields.io/github/license/unhappychoice/cycle-pusher.svg)\n\ncycle-pusher is pusher client for [cycle.js](https://cycle.js.org/)\n\n### Types\n```typescript\nconst makePusherDirver = (app_key: string, configuration: Config): Driver\u003cStream\u003cPayloadInput\u003e, PusherSource\u003e\n\ninterface PusherSource {\n    select(channelName: string, eventName: string): Stream\u003cany\u003e;\n}\n\ninterface PayloadOutput {\n    channelName: string;\n    eventName: string;\n    data: any;\n}\n\ninterface PayloadInput {\n    channelName: string;\n    eventName: string;\n    data: any;\n}\n```\n\n### Usage\n\n```typescript\nfunction main(sources) {\n    const content$ = sources.pusher.select(\"channel1\", \"event1\") // Receive messages\n\n    const payload$ = Stream.of({ // Send messages\n        channelName: \"channel1\",\n        eventName: \"client-event1\",\n        data: { \"key\": \"value\" }\n    });\n\n    return {\n        pusher: payload$\n    };\n}\n\nconst app_key = \"\";\nconst config = { // See pusher document\n    encrypted: true\n};\n\nrun(main, {\n    pusher: makePusherDirver(app_key, config)\n});\n\n```\n\nsee example directory for real usage.\n\n### License\n\nsee [LICENSE](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funhappychoice%2Fcycle-pusher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funhappychoice%2Fcycle-pusher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funhappychoice%2Fcycle-pusher/lists"}