{"id":21222218,"url":"https://github.com/lostintime/node-rx-stream","last_synced_at":"2026-05-05T18:38:24.689Z","repository":{"id":143907249,"uuid":"112851509","full_name":"lostintime/node-rx-stream","owner":"lostintime","description":"Reactive Streams implementation with TypeScript","archived":false,"fork":false,"pushed_at":"2018-03-12T16:12:26.000Z","size":144,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-22T18:51:23.694Z","etag":null,"topics":["javascript","nodejs","reactive-streams","typesafe","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lostintime.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2017-12-02T15:08:35.000Z","updated_at":"2018-03-19T19:47:04.000Z","dependencies_parsed_at":"2023-05-19T11:00:33.950Z","dependency_job_id":null,"html_url":"https://github.com/lostintime/node-rx-stream","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostintime%2Fnode-rx-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostintime%2Fnode-rx-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostintime%2Fnode-rx-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostintime%2Fnode-rx-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lostintime","download_url":"https://codeload.github.com/lostintime/node-rx-stream/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243668234,"owners_count":20328042,"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":["javascript","nodejs","reactive-streams","typesafe","typescript"],"created_at":"2024-11-20T22:42:11.886Z","updated_at":"2025-10-13T03:50:15.875Z","avatar_url":"https://github.com/lostintime.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"RxStream\n========\n\nTypeScript port of [Monix](https://github.com/monix/monix) reactive streams module.\nAll credits goes to [monix authors](https://github.com/monix/monix/graphs/contributors)!\n\n## WARNING! Work in progress!\n\nThis library is [Work in Progress](./TODO.md), api may change until version `1.0.0`.\n\n\n## Usage\n\nInstall `rx-stream` library:\n\n```$bash\nnpm install --save rx-stream\n```\n\n### Hello World\n\nCreate an `Observable` and observe it's events:\n\n```$typescript\nimport Observable from 'rx-stream';\nimport {Future} from 'funfix';\n\nObservable.range(0, 10)\n    .mapFuture(n =\u003e Future.pure(n).delayResult(1000))\n    .foreach((e) =\u003e {\n        console.log('got item', e);\n    })\n```\n\n### `takeUntil` for synchronous sources\n\nFor synchronous sources, in order to use `takeUntil` and `onErrorRestart` - need to add \n_asyncBoundary_ (ex: `bufferWithPressure`), otherwise event loop may never reach `takeUntil`\n\n```$typescript\nlet failed = false;\n\nObservable.loop()\n  .map((n): number =\u003e {\n    // will throw here\n    if (n == 3  \u0026\u0026 !failed) {\n      failed = true;\n      throw new Error('something went wrong');\n    }\n\n    return n;\n  })\n  .bufferWithPressure(10) // this will break synchronous loop, to \"make room\" async events (sigTrigger)\n  .onErrorRestartUnlimited()\n  .takeUntil(sigTrigger)\n\n```\n\n## Documentation\n\nMore usage examples and documentation will come closer to version `1.0`\n\n\n\n## License\n\nAll code in this repository is licensed under the Apache License, Version 2.0. See [LICENCE](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostintime%2Fnode-rx-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flostintime%2Fnode-rx-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostintime%2Fnode-rx-stream/lists"}