{"id":17201538,"url":"https://github.com/lenguyenthanh/rxarrow","last_synced_at":"2026-03-06T07:01:56.778Z","repository":{"id":49647817,"uuid":"201806522","full_name":"lenguyenthanh/RxArrow","owner":"lenguyenthanh","description":"RxJava extensions for Arrow's Data Types","archived":false,"fork":false,"pushed_at":"2021-06-24T11:58:05.000Z","size":176,"stargazers_count":15,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-15T05:59:30.442Z","etag":null,"topics":["arrow","arrow-kt","functional-programming","kotlin","reactive-programming","rxjava","rxjava2"],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","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/lenguyenthanh.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}},"created_at":"2019-08-11T19:26:51.000Z","updated_at":"2025-10-25T07:58:45.000Z","dependencies_parsed_at":"2022-09-17T03:01:32.923Z","dependency_job_id":null,"html_url":"https://github.com/lenguyenthanh/RxArrow","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/lenguyenthanh/RxArrow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lenguyenthanh%2FRxArrow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lenguyenthanh%2FRxArrow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lenguyenthanh%2FRxArrow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lenguyenthanh%2FRxArrow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lenguyenthanh","download_url":"https://codeload.github.com/lenguyenthanh/RxArrow/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lenguyenthanh%2FRxArrow/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30164885,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T04:43:31.446Z","status":"ssl_error","status_checked_at":"2026-03-06T04:40:30.133Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["arrow","arrow-kt","functional-programming","kotlin","reactive-programming","rxjava","rxjava2"],"created_at":"2024-10-15T02:12:07.150Z","updated_at":"2026-03-06T07:01:56.747Z","avatar_url":"https://github.com/lenguyenthanh.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RxArrow [![](https://jitpack.io/v/lenguyenthanh/RxArrow.svg)](https://jitpack.io/#lenguyenthanh/RxArrow)\n\nRxArrow is a collection of RxJava extensions and typealiases [Arrow's Data Types](https://arrow-kt.io).\n\n## Table of Contents\n\n+ [Why Z](#z)\n+ [Usage](#usage)\n+ [Setup](#setup)\n+ [Compatibility](#compatibility)\n+ [Contributing](#contributing)\n+ [License](/LICENSE)\n\n\n## Why `Z` \u003ca name = \"z\"\u003e\u003c/a\u003e\n\nI use `Z` as a postfix for all typealiases because I was influenced by [ZIO](https://zio.dev).\n\n## Usage \u003ca name = \"usage\"\u003e\u003c/a\u003e\n\n### [Observable\u003cEither\u003cE, A\u003e\u003e aka ObservableZ\u003cE, A\u003e](https://github.com/lenguyenthanh/RxArrow/blob/master/src/main/kotlin/com/lenguyenthanh/rxarrow/ObservableZ.kt)\n\n`ObservableZ\u003cE, A\u003e` is a type alias for `Observable\u003cEither\u003cE, A\u003e\u003e`. It has a convenient extension functions to make life easier when working with `Observable\u003cEither\u003cE, A\u003e\u003e`.\n\n```Kotlin\n\nObservable.just(\"error\".left(), 23.right()) // Left(error), Right(24): ObservableZ\u003cString, Int\u003e\n    .mapZ { it + 2 } // Left(\"error\"), Right(25): ObservableZ\u003cString, Int\u003e\n    .mapLeft { it.reversed() } // Left(\"rorre\"), Right(25): ObservableZ\u003cString, Int\u003e\n    .mapLeft { SomethingWentWrong } // Left(SomethingWentWrong), Right(25): ObservableZ\u003cSomethingWentWrong, Int\u003e\n    .flatMapZ { Observable.just(it * it) } // Left(SomethingWentWrong), Right(625): ObservableZ\u003cSomethingWentWrong, Int\u003e\n    .flatMapSingleEither { divide(it, 0) } // Left(SomethingWentWrong), Left(DevidedByZero): ObservableZ\u003cError, Int\u003e\n    .subscribe { either -\u003e println(\"$either\") }\n```\n\n### [Single\u003cEither\u003cE, A\u003e\u003e aka SingleZ\u003cE, A\u003e](https://github.com/lenguyenthanh/RxArrow/blob/master/src/main/kotlin/com/lenguyenthanh/rxarrow/SingleZ.kt)\n\nSimilar to `ObservableZ`\n\n### [Maybe\u003cEither\u003cE, A\u003e\u003e aka MaybeZ\u003cE, A\u003e](https://github.com/lenguyenthanh/RxArrow/blob/master/src/main/kotlin/com/lenguyenthanh/rxarrow/MaybeZ.kt)\n\nSimilar to `ObservableZ`\n\n## Setup \u003ca name = \"setup\"\u003e\u003c/a\u003e\n\nYou can get `RxArrow` by using [Jitpack](https://jitpack.io/#lenguyenthanh/RxArrow/).\n\n```Gradle\n    repositories {\n        jcenter()\n        maven { url 'https://jitpack.io' }\n    }\n\n    implementation \"io.arrow-kt:arrow-core:$arrow_version\"\n    implementation \"com.github.lenguyenthanh:RxArrow:$rxarrow\"\n```\n\n## Compatibility \u003ca name = \"compatibility\"\u003e\u003c/a\u003e\n\nSupports RxJava2 and Arrow version `0.13.2`.\n\n## Contributing \u003ca name = \"contributing\"\u003e\u003c/a\u003e\n\nAny bug reports, feature requests, questions and pull requests are very welcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flenguyenthanh%2Frxarrow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flenguyenthanh%2Frxarrow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flenguyenthanh%2Frxarrow/lists"}