{"id":30180979,"url":"https://github.com/streamich/rx-use","last_synced_at":"2025-08-12T08:06:45.037Z","repository":{"id":38172683,"uuid":"260687977","full_name":"streamich/rx-use","owner":"streamich","description":"RxJS DOM sensors","archived":false,"fork":false,"pushed_at":"2025-07-28T21:37:16.000Z","size":2485,"stargazers_count":17,"open_issues_count":20,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-28T23:23:18.929Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/streamich.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2020-05-02T13:01:46.000Z","updated_at":"2025-05-17T18:38:07.000Z","dependencies_parsed_at":"2025-07-28T23:13:22.767Z","dependency_job_id":"0f1335a3-4f69-46a8-a6b3-4720cfe8354b","html_url":"https://github.com/streamich/rx-use","commit_stats":{"total_commits":82,"total_committers":3,"mean_commits":"27.333333333333332","dds":"0.14634146341463417","last_synced_commit":"4ad72c572bd4b15b8faa0d620dee6b3bc79aaf81"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/streamich/rx-use","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamich%2Frx-use","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamich%2Frx-use/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamich%2Frx-use/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamich%2Frx-use/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/streamich","download_url":"https://codeload.github.com/streamich/rx-use/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamich%2Frx-use/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270024697,"owners_count":24514054,"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","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2025-08-12T08:06:22.087Z","updated_at":"2025-08-12T08:06:45.020Z","avatar_url":"https://github.com/streamich.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rx-use\n\nSensor and side-effect library for [`rxjs`](https://rxjs-dev.firebaseapp.com/). Do you want to contribute? See, [`help wanted`](https://github.com/streamich/rx-use/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22).\n\n\n## Observables\n\n- [`location$`](./docs/location$.md) \u0026mdash; browser location and history sensor.\n  - [`pathname$`](./docs/pathname$.md) \u0026mdash; browser location pathname sensor.\n- [`network$`](./docs/network$.md) \u0026mdash; returns consolidate network status info.\n  - [`onLine$`](./docs/onLine$.md) \u0026mdash; `boolean` whether user is on-line.\n  - [`connection$`](./docs/connection$.md) \u0026mdash; information about user's network connection.\n- [`windowSize$`](./docs/windowSize$.md) and [`windowSizeRaf$`](./docs/windowSizeRaf$.md) \u0026mdash; browser window dimension sensor.\n- [`darkTheme$`](./docs/darkTheme$.md) \u0026mdash; emits `true` if UI should use dark theme.\n- [`matchMedia$()`](./docs/matchMedia$.md) \u0026mdash; returns boolean indicating media query match.\n  - [`colorSchemeDark$`](./docs/colorSchemeDark$.md) \u0026mdash; whether user selected dark theme in system settings.\n  - [`colorSchemeLight$`](./docs/colorSchemeLight$.md) \u0026mdash; whether user selected light theme in system settings.\n  - [`colorSchemeNoPreference$`](./docs/colorSchemeNoPreference$.md) \u0026mdash; whether user has no preference for color scheme.\n- `stdin$` \u0026mdash; listen for data coming from STDIN.\n- `ansiKeys$` \u0026mdash; listen for ANSI terminal key presses.\n- `pubsub` \u0026mdash; publish/subscribe mechanism for inter-tab communication in browser.\n- [`tablist`](./src/tablist/README.md) \u0026mdash; keeps track of all same origin tabs, elects leader and allows to send messages to all tabs or create private channels between any two tabs.\n\n\n## Operators\n\n- [`raf()`](./docs/raf.md) \u0026mdash; de-bounces events using `window.requestAnimationFrame`.\n\n\n## Other\n\n- `fromStream()` \u0026mdash; constructs observable from Node.js readable stream.\n\nMost observables imported from this library have `ReadonlyBehaviorSubject` type.\nWhich is an `Observable` with an extra `.getValue()` to access the current value of the observable.\n\n```ts\ntype ReadonlyBehaviorSubject\u003cT\u003e = Observable\u003cT\u003e \u0026 Pick\u003cBehaviorSubject\u003cT\u003e, 'getValue'\u003e;\n```\n\n\n## License\n\n[Unlicense](LICENSE) \u0026mdash; public domain.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstreamich%2Frx-use","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstreamich%2Frx-use","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstreamich%2Frx-use/lists"}