{"id":20099180,"url":"https://github.com/ryanfarber/txrx","last_synced_at":"2026-06-12T07:34:05.245Z","repository":{"id":60132518,"uuid":"541160444","full_name":"ryanfarber/txrx","owner":"ryanfarber","description":"Send and receive messages between programs","archived":false,"fork":false,"pushed_at":"2022-09-25T12:40:53.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-23T22:53:35.688Z","etag":null,"topics":["communication","console","messages","receive","send","sockets","websockets"],"latest_commit_sha":null,"homepage":"","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/ryanfarber.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}},"created_at":"2022-09-25T12:14:52.000Z","updated_at":"2022-09-25T12:42:44.000Z","dependencies_parsed_at":"2022-09-25T23:25:19.406Z","dependency_job_id":null,"html_url":"https://github.com/ryanfarber/txrx","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ryanfarber/txrx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanfarber%2Ftxrx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanfarber%2Ftxrx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanfarber%2Ftxrx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanfarber%2Ftxrx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryanfarber","download_url":"https://codeload.github.com/ryanfarber/txrx/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanfarber%2Ftxrx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34234557,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"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":["communication","console","messages","receive","send","sockets","websockets"],"created_at":"2024-11-13T17:08:40.340Z","updated_at":"2026-06-12T07:34:05.222Z","avatar_url":"https://github.com/ryanfarber.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# txrx 📤📥\nSend and receive messages between programs\n\n## What is this?\nSometimes in development you just want to send some data to a running program, and dont want to have to mess around with servers or API requests.  This is much easier!\n\n\n## Usage\nFirst, you will typically have your program/app/etc, where you will be receiving data. Let's call it app.js.\n\nYou will instantiate a `Receiver()` with a port of your choice.  it defaults to `3000`\n\n### app.js (receiver)\n```javascript\n// app.js\n\nconst {Receiver} = require(\"txrx\")\nconst receiver = new Receiver(3000) // specify port. default 3000\n\nreceiver.on(\"message\", data =\u003e {\n    console.log(data)\n})\n\nreceiver.listen()\n\n/*\n    ~ your code ~\n*/\n```\n\nNext, create another script that we will use to run your transmitter/sender. \n\n### transmitter.js\n```javascript\n// transmitter.js\n\nconst {Transmitter} = require(\"txrx\")\nconst transmitter = new Transmitter()\n\ntransmitter.start() // starts a command prompt in console\n```\n\n### Running the files\n1) Open a console window and run `app.js`\n```bash\nnode app.js\n```\n2) Open another console window and run `transmitter.js`. It will start running a command prompt.\n```bash\nnode transmitter.js\n\u003e _\n```\n3) Type a message\n```bash\n# transmitter.js running...\n\u003e hello world\n```\n4) Check back in your `app.js` console window. You should now see the message logged!\n```bash\n# app.js running...\nhello world\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanfarber%2Ftxrx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryanfarber%2Ftxrx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanfarber%2Ftxrx/lists"}