{"id":15750348,"url":"https://github.com/nwtgck/go-piping-duplex","last_synced_at":"2025-03-13T14:32:51.231Z","repository":{"id":37526859,"uuid":"254779897","full_name":"nwtgck/go-piping-duplex","owner":"nwtgck","description":"Duplex communication over Piping Server","archived":false,"fork":false,"pushed_at":"2022-12-13T18:25:46.000Z","size":37,"stargazers_count":3,"open_issues_count":5,"forks_count":2,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2025-02-26T20:11:57.660Z","etag":null,"topics":["bidirectional-communication","cli","data-transfer","duplex-communication","golang","piping-server"],"latest_commit_sha":null,"homepage":"","language":"Go","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/nwtgck.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":"2020-04-11T02:47:09.000Z","updated_at":"2023-08-21T07:29:58.000Z","dependencies_parsed_at":"2023-01-28T14:01:15.673Z","dependency_job_id":null,"html_url":"https://github.com/nwtgck/go-piping-duplex","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwtgck%2Fgo-piping-duplex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwtgck%2Fgo-piping-duplex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwtgck%2Fgo-piping-duplex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwtgck%2Fgo-piping-duplex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nwtgck","download_url":"https://codeload.github.com/nwtgck/go-piping-duplex/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243422844,"owners_count":20288533,"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":["bidirectional-communication","cli","data-transfer","duplex-communication","golang","piping-server"],"created_at":"2024-10-04T06:40:25.439Z","updated_at":"2025-03-13T14:32:46.216Z","avatar_url":"https://github.com/nwtgck.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# piping-duplex\n[![CI](https://github.com/nwtgck/go-piping-duplex/actions/workflows/ci.yml/badge.svg)](https://github.com/nwtgck/go-piping-duplex/actions/workflows/ci.yml) \n\nDuplex communication over [Piping Server](https://github.com/nwtgck/piping-server)\n\n## Installation\n\nGet executable binaries from [GitHub Releases](https://github.com/nwtgck/go-piping-duplex/releases)\n\n## Usage\n\nPerson A and B can communicate as follows.\n\nPerson A\n```bash\npiping-duplex aaa bbb\n```\n\nPerson B\n```bash\npiping-duplex bbb aaa\n```\n\n### Example 1\n\n```console\n$ echo hello | piping-duplex aaa bbb\n1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n```\n\nPerson B\n```console\n$ seq 10 | piping-duplex bbb aaa | base64\naGVsbG8K\n```\n\nNOTE: `aGVsbG8K` is base64-encoded \"hello\\n\".\n\n### Grammar\n\n```bash\npiping-duplex \u003cupload path\u003e \u003cdownload path\u003e\n```\n\n### Example SSH\n\nHere is an example to use SSH over HTTPS via Piping Server.\n\nIn server host, type as follows.\n```bash\nsocat 'EXEC:piping-duplex aaa bbb' TCP:127.0.0.1:22\n```\n\nIn client host, type as follows.\n```bash\nsocat TCP-LISTEN:31376 'EXEC:piping-duplex bbb aaa'\n````\n\nIn another terminal in client host, type as follows.\n\n```bash\nssh -p 31376 localhost\n```\n\n## End-to-end encryption\n\nYou can use passphrase-based end-to-end encryption with `--symmetric` or `-c` option.\n\n```bash\npiping-duplex -c aaa bbb\n```\n\n## Specify Piping Server\n\nYou can specify Piping Server with `--server` or `-s` option.\n\n```\npiping-duplex -s https://piping.glitch.me aaa bbb\n```\n\nOR\n\nspecify with `$PIPING_SERVER` environment variable as follows.\n\n```bash\nexport PIPING_SERVER=https://piping.glitch.me\n```\n\n## Help\n\n```\nDuplex communication over Piping Server\n\nUsage:\n  piping-duplex [flags]\n\nFlags:\n  -h, --help            help for piping-duplex\n  -s, --server string   Piping Server URL (default \"https://ppng.io\")\n  -c, --symmetric       use symmetric passphrase protection\n  -v, --version         show version\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnwtgck%2Fgo-piping-duplex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnwtgck%2Fgo-piping-duplex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnwtgck%2Fgo-piping-duplex/lists"}