{"id":18495093,"url":"https://github.com/atd-schubert/stream-redux","last_synced_at":"2026-05-02T02:34:55.217Z","repository":{"id":57372053,"uuid":"111457022","full_name":"atd-schubert/stream-redux","owner":"atd-schubert","description":"Handle Redux like a node stream","archived":false,"fork":false,"pushed_at":"2017-11-20T23:03:40.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-11T20:35:23.709Z","etag":null,"topics":["node-steam","redux","stream","typescript","typescript-library"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/atd-schubert.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-11-20T20:02:33.000Z","updated_at":"2017-11-20T22:52:58.000Z","dependencies_parsed_at":"2022-09-09T16:40:14.463Z","dependency_job_id":null,"html_url":"https://github.com/atd-schubert/stream-redux","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/atd-schubert/stream-redux","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atd-schubert%2Fstream-redux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atd-schubert%2Fstream-redux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atd-schubert%2Fstream-redux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atd-schubert%2Fstream-redux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atd-schubert","download_url":"https://codeload.github.com/atd-schubert/stream-redux/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atd-schubert%2Fstream-redux/sbom","scorecard":{"id":214332,"data":{"date":"2025-08-11","repo":{"name":"github.com/atd-schubert/stream-redux","commit":"394f09dd2cc4176e3f357bb1f3dd87c6d50de48d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":2,"reason":"Found 1/5 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: ISC License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 8 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"50 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-rq8g-5pc5-wrhr","Warn: Project is vulnerable to: GHSA-h6ch-v84p-w6p9","Warn: Project is vulnerable to: GHSA-qrmc-fj45-qfc2","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-q42p-pg8m-cqh6","Warn: Project is vulnerable to: GHSA-w457-6q6x-cgp9","Warn: Project is vulnerable to: GHSA-62gr-4qp9-h98f","Warn: Project is vulnerable to: GHSA-f52g-6jhx-586p","Warn: Project is vulnerable to: GHSA-2cf5-4w76-r9qv","Warn: Project is vulnerable to: GHSA-3cqr-58rm-57f8","Warn: Project is vulnerable to: GHSA-g9r4-xpmj-mj65","Warn: Project is vulnerable to: GHSA-q2c6-c6pm-g3gh","Warn: Project is vulnerable to: GHSA-765h-qjxv-5f44","Warn: Project is vulnerable to: GHSA-f2jv-r9rf-7988","Warn: Project is vulnerable to: GHSA-44pw-h2cw-w3vq","Warn: Project is vulnerable to: GHSA-vfrc-7r7c-w9mx","Warn: Project is vulnerable to: GHSA-7wwv-vh3v-89cq","Warn: Project is vulnerable to: GHSA-jp4x-w63m-7wgm","Warn: Project is vulnerable to: GHSA-c429-5p7v-vgjp","Warn: Project is vulnerable to: GHSA-2pr6-76vf-7546","Warn: Project is vulnerable to: GHSA-8j8c-7jfh-h6hx","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-fvqr-27wr-82fm","Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574","Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-7px7-7xjx-hxm8","Warn: Project is vulnerable to: GHSA-x5pg-88wf-qq4p","Warn: Project is vulnerable to: GHSA-p9wx-2529-fp83","Warn: Project is vulnerable to: GHSA-5v2h-r2cx-5xgj","Warn: Project is vulnerable to: GHSA-rrrm-qjm4-v8hf","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-g6ww-v8xp-vmwg","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-4rq4-32rv-6wp6","Warn: Project is vulnerable to: GHSA-64g7-mvw6-v9qj","Warn: Project is vulnerable to: GHSA-2m39-62fm-q8r3","Warn: Project is vulnerable to: GHSA-mf6x-7mm4-x2g7","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T01:22:58.679Z","repository_id":57372053,"created_at":"2025-08-17T01:22:58.679Z","updated_at":"2025-08-17T01:22:58.679Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32521108,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T01:12:54.858Z","status":"online","status_checked_at":"2026-05-02T02:00:05.923Z","response_time":132,"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":["node-steam","redux","stream","typescript","typescript-library"],"created_at":"2024-11-06T13:23:22.712Z","updated_at":"2026-05-02T02:34:55.201Z","avatar_url":"https://github.com/atd-schubert.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stream-redux\n\n# YAGA - leaflet-ng2\n\n[![Build Status](https://travis-ci.org/atd-schubert/stream-redux.svg?branch=master)](https://travis-ci.org/atd-schubert/stream-redux)\n[![Coverage Status](https://coveralls.io/repos/github/atd-schubert/stream-redux/badge.svg?branch=master)](https://coveralls.io/github/atd-schubert/stream-redux?branch=master)\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fatd-schubert%2Fstream-redux.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fatd-schubert%2Fstream-redux?ref=badge_shield)\n\nHandle Redux like node streams, or Redux itself...\n\n*It implements both interfaces: `Store` of Redux and `Duplex` of node streams.*\n\n## How to use\n\nFirst you have to install this library from npm:\n\n```bash\nnpm install --save stream-redux\n```\n\nThis module works like the default Redux module, or like a stream. You should do something like that:\n\n\n```js\nconst StreamRedux = require(\"stream-redux\").StreamRedux;\nconst stream = new StreamRedux(anyReducer, anyOptionalEnhancer);\n```\n\n*Note: this module is written in TypeScript, you can use it with types, like this:*\n\n```typescript\nimport { Action, StreamRedux } from \"stream-redux\";\nconst stream = new StreamRedux\u003cnumber, Action\u003e(counter);\nfunction counter(state: number = 0, action: Action) {\n  // ...\n}\n```\n\n### Use it as the default Redux module\n\nYou just have to instantiate the store with `const stream = new StreamRedux(counter)`. After that you can use it like a\nnormal Redux store.\n\n*Note: Take a look at [the official documentation](https://docs.reduxframework.com/) for further information*\n\n### Use it as stream\n\nYou can use the method `.write` like `.dispatch`, but without getting the action as returned value.\n\nYou will get the initial state and each state after dispatching an action from the readable stream.\n\nAfter calling the `.end()` method you will not be able to use either `.write` nor `.dispatch` anymore, like it is\ntypical for streams!\n\n*Note: Take a look at [the official documentation](https://nodejs.org/api/stream.html#stream_class_stream_duplex) for\nfurther information...*\n\n***Attention: node streams will buffer chunks, or in this case each state. This will maybe overload your RAM. If you\ndon't want to use it as readable stream flush it or consider using the default Redux library!***\n\n### Use it mixed\n\nYou can mix both worlds like you prefer:\n\n```js\nimport { expect } from \"chai\"; // not needed, just for this example....\nimport { StreamRedux } from \"stream-redux\";\n\nconst results = [0, 1, 2, 3, 2];\nconst stream = new StreamRedux(counter);\n\nstream.on(\"data\", (state) =\u003e {\n    expect(state).to.equal(results.shift());\n})\n\nstream.on(\"end\", () =\u003e {\n    expect(results.length).to.equal(0);\n});\n\nstream.write({type: \"INCREMENT\"});\nstream.dispatch({type: \"INCREMENT\"});\nexpect(stream.getState()).to.equal(2);\nstream.write({type: \"INCREMENT\"});\nexpect(stream.getState()).to.equal(3);\nstream.write({type: \"DECREMENT\"});\nexpect(stream.getState()).to.equal(1);\n\nfunction counter(state = 0, action) {\n  switch (action.type) {\n  case 'INCREMENT':\n    return state + 1;\n  case 'DECREMENT':\n    return state - 1;\n  default:\n    return state;\n  }\n}\n```\n\n## Scripts Tasks\n\nScripts registered in package.json:\n\n* `transpile`: Transpile TypeScript Code to JavaScript\n* `lint`: Use the linter for TypeScript Code\n* `test`: Run software- and coverage-tests in node.\n* `doc`: Build the API documentation.\n\n## License\n\nThis library is released under the [ISC License](LICENSE).\n\n\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fatd-schubert%2Fstream-redux.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fatd-schubert%2Fstream-redux?ref=badge_large)\n\n## Links\n\n* [GitHub](https://github.com/atd-schubert/stream-redux)\n* [NPM](https://www.npmjs.com/package/stream-redux)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatd-schubert%2Fstream-redux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatd-schubert%2Fstream-redux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatd-schubert%2Fstream-redux/lists"}