{"id":13566963,"url":"https://github.com/incetarik/fp-ts-stream","last_synced_at":"2025-08-01T06:02:28.377Z","repository":{"id":62222575,"uuid":"554892503","full_name":"incetarik/fp-ts-stream","owner":"incetarik","description":"Providing Transducers/Streams based on fp-ts library.","archived":false,"fork":false,"pushed_at":"2023-06-03T21:41:24.000Z","size":398,"stargazers_count":30,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T16:40:29.149Z","etag":null,"topics":["fp-ts","functional-programming","generators","streaming"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/incetarik.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2022-10-20T15:21:59.000Z","updated_at":"2024-06-03T13:01:35.000Z","dependencies_parsed_at":"2024-01-01T10:09:53.837Z","dependency_job_id":"8d755f16-7c10-417b-9f0b-ae43f789b03b","html_url":"https://github.com/incetarik/fp-ts-stream","commit_stats":{"total_commits":239,"total_committers":1,"mean_commits":239.0,"dds":0.0,"last_synced_commit":"cfecf572fbf61d128169da7c0318ee36663273a0"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/incetarik%2Ffp-ts-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/incetarik%2Ffp-ts-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/incetarik%2Ffp-ts-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/incetarik%2Ffp-ts-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/incetarik","download_url":"https://codeload.github.com/incetarik/fp-ts-stream/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248918082,"owners_count":21183114,"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":["fp-ts","functional-programming","generators","streaming"],"created_at":"2024-08-01T13:02:20.382Z","updated_at":"2025-04-14T16:41:03.247Z","avatar_url":"https://github.com/incetarik.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# Streams for `fp-ts` \n\nThis library provides `Stream` and `AsyncStream` type classes which uses\n`Generator` and `AsyncGenerator` internally, therefore enabling the developers\nto have _transducers_, that are executed as much as they are used. See the\nfollowing example:\n\n```ts\nimport { range, filter, map, take, toArray } from 'fp-ts-stream/Stream'\nimport { pipe } from 'fp-ts/lib/function'\n\n// The following will only run/execute the `range` iterator only 4 times.\n//\n// No array will be allocated, until `toArray` and the rest of the iteration\n// will be skipped/not completed.\npipe(\n  range(0, 10000),            // iterates 4 times\n  filter(it =\u003e it % 2 == 1),  // iterates 2 times\n  map(it =\u003e it * 3),          // ...\n  take(2),                    // ...\n  toArray,                    // executed once\n  console.log\n)\n\n```\n\nThe `Stream` is implementing all the functions that an array would normally\nhave, therefore the instances of it admit implementations such as `Traversable`,\n`Chain` and etc.\n\n---\n# Support\nTo support the project, you can send donations to following addresses:\n\n```md\n- Bitcoin     : bc1qtut2ss8udkr68p6k6axd0na6nhvngm5dqlyhtn\n- Bitcoin Cash: qzmmv43ztae0tfsjx8zf4wwnq3uk6k7zzgcfr9jruk\n- Ether       : 0xf542BED91d0218D9c195286e660da2275EF8eC84\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fincetarik%2Ffp-ts-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fincetarik%2Ffp-ts-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fincetarik%2Ffp-ts-stream/lists"}