{"id":28566839,"url":"https://github.com/jklepatch/observable-lite","last_synced_at":"2025-10-13T07:15:03.168Z","repository":{"id":93274255,"uuid":"191030086","full_name":"jklepatch/observable-lite","owner":"jklepatch","description":"A super simple implementation of the Observable pattern. Inspired by RxJS.","archived":false,"fork":false,"pushed_at":"2019-06-09T17:28:40.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-10T15:50:24.397Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/jklepatch.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-06-09T16:32:43.000Z","updated_at":"2019-06-09T17:28:41.000Z","dependencies_parsed_at":"2023-03-06T20:15:26.816Z","dependency_job_id":null,"html_url":"https://github.com/jklepatch/observable-lite","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jklepatch/observable-lite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jklepatch%2Fobservable-lite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jklepatch%2Fobservable-lite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jklepatch%2Fobservable-lite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jklepatch%2Fobservable-lite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jklepatch","download_url":"https://codeload.github.com/jklepatch/observable-lite/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jklepatch%2Fobservable-lite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279014113,"owners_count":26085461,"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-10-13T02:00:06.723Z","response_time":61,"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-06-10T15:39:16.075Z","updated_at":"2025-10-13T07:15:03.155Z","avatar_url":"https://github.com/jklepatch.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Observable lite\n\nSuper simple implementation of Observable in Nodejs. Inspired by RxJS.\n\n## Getting started\n\nAdd this to your `package.json`:\n\n```\n...\n\"dependencies\": {\n  observable-lite\": \"git+https://github.com/jklepatch/observable-lite.git\",\n  ...\n},\n...\n```\n\nThen run `npm install`\n\n## Example\n\n```\nconst Observable = require('observable-lite');\n\nconst observable = new Observable(subscriber =\u003e {\n  subscriber.next(1);\n  subscriber.next(2);\n  subscriber.next(3);\n  setTimeout(() =\u003e {\n    subscriber.next(4);\n    subscriber.complete();\n  }, 2000);\n});\n\nconst subscription = observable.subscribe({\n  next(val) { console.log(val) },\n  complete() { console.log() }  \n});\n\nsetTimeout(() =\u003e subscription.unsubscribe(), 1000);\n\n/**\n * Will print:\n * 1\n * 2\n * 3\n */\n```\n\nMore examples in `examples` folder.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjklepatch%2Fobservable-lite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjklepatch%2Fobservable-lite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjklepatch%2Fobservable-lite/lists"}