{"id":16125748,"url":"https://github.com/dy/sube","last_synced_at":"2026-03-09T20:06:30.123Z","repository":{"id":57373901,"uuid":"447827723","full_name":"dy/sube","owner":"dy","description":"Subscribe to any reactive source, weakly","archived":false,"fork":false,"pushed_at":"2024-01-08T01:46:13.000Z","size":59,"stargazers_count":11,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-12T21:16:09.901Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/dy.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-01-14T03:14:32.000Z","updated_at":"2023-09-10T11:28:57.000Z","dependencies_parsed_at":"2024-01-08T02:57:46.871Z","dependency_job_id":"e8f5711e-735f-4ffc-b570-959f8db7863f","html_url":"https://github.com/dy/sube","commit_stats":null,"previous_names":["spectjs/sube"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/dy/sube","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fsube","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fsube/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fsube/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fsube/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dy","download_url":"https://codeload.github.com/dy/sube/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fsube/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30310055,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T20:05:46.299Z","status":"ssl_error","status_checked_at":"2026-03-09T19:57:04.425Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2024-10-09T21:31:28.954Z","updated_at":"2026-03-09T20:06:30.105Z","avatar_url":"https://github.com/dy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sube \u003ca href=\"https://github.com/spectjs/sube/actions/workflows/test.yml\"\u003e\u003cimg src=\"https://github.com/spectjs/sube/actions/workflows/test.yml/badge.svg\"/\u003e\u003c/a\u003e \u003ca href=\"http://npmjs.org/sube\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/sube\"/\u003e\u003c/a\u003e\n\n\u003e Subscribe weakly to any reactive source\n\n```js\nimport sub from './sube.js'\n\nunsub = sub(source, onnext, onerror?, oncomplete?)\n\nunsub() // unsubscribe\n```\n\nKinds of sources:\n\n* _Promise_, _Thenable_ (autocleanup)\n* _Observable_, _Subscribable_, _Subject_ ([rxjs](https://ghub.io/rxjs), [zen-observable](https://github.com/zenparsing/zen-observable) etc.)\n* _AsyncIterable_ (see [it-awesome](https://github.com/alanshaw/it-awesome))\n* _Signal_ ([@preact/signals](https://ghub.io/@preact/signals), [value-ref](https://ghub.io/value-ref) etc.)\n* _observ-\\*_ ([observ](https://www.npmjs.com/package/observ), [observable](https://www.npmjs.com/package/observable), [mutant](https://www.npmjs.com/package/mutant))\n\n\u003cp align=\"center\"\u003e🕉\u003cp\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdy%2Fsube","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdy%2Fsube","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdy%2Fsube/lists"}