{"id":15979122,"url":"https://github.com/perry-mitchell/spout","last_synced_at":"2025-11-13T05:04:19.681Z","repository":{"id":57367916,"uuid":"148369484","full_name":"perry-mitchell/spout","owner":"perry-mitchell","description":"Data transfer using pipes, connectors, filters, splits, joins and drains","archived":false,"fork":false,"pushed_at":"2018-09-13T10:01:10.000Z","size":808,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-13T05:04:17.834Z","etag":null,"topics":["data-transfer","data-transmission","pipe","pipeline"],"latest_commit_sha":null,"homepage":null,"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/perry-mitchell.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}},"created_at":"2018-09-11T19:31:21.000Z","updated_at":"2024-02-18T16:40:33.000Z","dependencies_parsed_at":"2022-08-23T19:30:40.102Z","dependency_job_id":null,"html_url":"https://github.com/perry-mitchell/spout","commit_stats":null,"previous_names":["perry-mitchell/interconnect"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/perry-mitchell/spout","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perry-mitchell%2Fspout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perry-mitchell%2Fspout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perry-mitchell%2Fspout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perry-mitchell%2Fspout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/perry-mitchell","download_url":"https://codeload.github.com/perry-mitchell/spout/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perry-mitchell%2Fspout/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284156474,"owners_count":26956829,"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-11-13T02:00:06.582Z","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":["data-transfer","data-transmission","pipe","pipeline"],"created_at":"2024-10-07T23:41:15.949Z","updated_at":"2025-11-13T05:04:19.652Z","avatar_url":"https://github.com/perry-mitchell.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg width=\"140\" height=\"140\" src=\"https://github.com/perry-mitchell/spout/raw/master/spout.gif\"\u003e\n\u003c/p\u003e\n\n# Spout\n\u003e Data transfer across every medium\n\n## About\nSpout is a data transfer framework designed at making sending data between applications, machines and protocols easy. Spout is a JavaScript/NodeJS framework which is split into libraries targeting each platform. This is the core library that houses the fundamentals.\n\n## Installation\nRun the following to install Spout:\n\n```shell\nnpm install spout --save\n```\n\n## Usage\nThe most basic component is `pipe` - Pipes are functions that accept data and move it onwards to a _target_. Targets can be other pipes, components or simple functions. Data is transferred throughout Spout within arrays.\n\n```javascript\nconst { pipe } = require(\"spout\");\n\nconst p = pipe(console.log);\np([1, 2, 3]);\np([4, 5]);\n// Asynchronously logged: [1, 2, 3, 4, 5]\n```\n\nPipes can be connected to other pipes and components. One such component is `transform`, which is essentially a pipe with a constructor more suited for providing a **transform function**. Each _point_ of data is passed through the transformer.\n\n```javascript\nconst { pipe, transform } = require(\"spout\");\n\nconst t = transform(x =\u003e x * 2, console.log);\nt([1, 2]);\n// Asynchronously logged: [2, 4]\n\nconst p = pipe(t);\np(8); // You can pass a single data point (non-array) as well\n// Asynchronously logged: [16]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperry-mitchell%2Fspout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperry-mitchell%2Fspout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperry-mitchell%2Fspout/lists"}