{"id":24381853,"url":"https://github.com/milankinen/cljs-rx","last_synced_at":"2025-06-30T14:03:34.306Z","repository":{"id":62433662,"uuid":"112939677","full_name":"milankinen/cljs-rx","owner":"milankinen","description":"RxJS bindings for ClojureScript","archived":false,"fork":false,"pushed_at":"2017-12-10T22:43:06.000Z","size":300,"stargazers_count":4,"open_issues_count":8,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T00:06:24.724Z","etag":null,"topics":["clojure","clojurescript","frp","reactive-programming","rxjs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/milankinen.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":"2017-12-03T15:30:58.000Z","updated_at":"2022-01-24T11:28:08.000Z","dependencies_parsed_at":"2022-11-01T21:01:40.662Z","dependency_job_id":null,"html_url":"https://github.com/milankinen/cljs-rx","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milankinen%2Fcljs-rx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milankinen%2Fcljs-rx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milankinen%2Fcljs-rx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milankinen%2Fcljs-rx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/milankinen","download_url":"https://codeload.github.com/milankinen/cljs-rx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248317707,"owners_count":21083528,"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":["clojure","clojurescript","frp","reactive-programming","rxjs"],"created_at":"2025-01-19T09:13:29.475Z","updated_at":"2025-04-11T00:06:30.309Z","avatar_url":"https://github.com/milankinen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cljs-rx\n\nComplete RxJS 5 bindings for ClojureScript\n\n[![Clojars Project](http://clojars.org/milankinen/cljs-rx/latest-version.svg)](https://clojars.org/milankinen/cljs-rx)\n\n## Example usage\n\n```clj \n(ns example.app\n  (:require [cljs-rx.core :as rx]\n            [cljs-rx.ajax :as ajax]))\n\n(-\u003e (rx/interval 5000)\n    (rx/switch-map (fn [_] (ajax/request {:url \"/status\" :method \"GET\" :response-type \"json\"}))\n    (rx/map #(js-\u003eclj (:response %) :keywordize-keys true))\n    (rx/filter identity)\n    (rx/subscribe! {:next     #(js/console.log %)\n                    :error    #(js/console.error %)\n                    :complete #(js/console.log \"complete\")}))\n```\n\n## Available namespaces\n\n#### `cljs-rx.core`\n\nCore functions and factories\n\n#### `cljs-rx.ajax`\n\nObservable AJAX functions\n\n#### `cljs-rx.scheduler`\n\nRxJS schedulers  \n\n#### `cljs-rx.subject`\n\nSubjects and related functions\n\n\n## Differences to JS version\n\n* `rx/from` accepts ClojureScript sequences and `IWatchable`s (= Atoms)\n* Every object satisfying either `Fn` or `IFn` can be used with operators in \n  addition to normal JS functions, e.g. `(rx/filter obs #{:lol :bal})`  \n* Operator functions (e.g. predicates and transform functions) receive only the\n  mapped/tested values. If you need to access event indexes as well, use `:all-args`\n  meta flag, e.g.\n```clj\n(-\u003e ...\n    (rx/map (fn [x i] (+ x i)))  ; ATTENTION! i == undefined\n    ...)\n    \n(-\u003e ...\n    (rx/map ^:all-args (fn [x i] (+ x i)))  ; now works\n    ...)\n```\n\n## License\n\n* Bindings: MIT \n* RxJS: Apache 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilankinen%2Fcljs-rx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmilankinen%2Fcljs-rx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilankinen%2Fcljs-rx/lists"}