{"id":21989150,"url":"https://github.com/repcomm/stdiotuntap","last_synced_at":"2026-04-30T18:32:34.424Z","repository":{"id":130854307,"uuid":"456064419","full_name":"RepComm/stdiotuntap","owner":"RepComm","description":"tun/tap service controllable over standard input/output because the lord knows im not touching node-gyp with a 39+1/2' poll","archived":false,"fork":false,"pushed_at":"2022-02-10T03:14:17.000Z","size":182,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T03:15:42.141Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","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/RepComm.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-06T05:29:00.000Z","updated_at":"2022-02-06T05:46:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"fcbc2bb8-6507-4071-a244-f977f218d87a","html_url":"https://github.com/RepComm/stdiotuntap","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RepComm/stdiotuntap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RepComm%2Fstdiotuntap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RepComm%2Fstdiotuntap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RepComm%2Fstdiotuntap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RepComm%2Fstdiotuntap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RepComm","download_url":"https://codeload.github.com/RepComm/stdiotuntap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RepComm%2Fstdiotuntap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32473804,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-29T19:28:03.703Z","updated_at":"2026-04-30T18:32:34.409Z","avatar_url":"https://github.com/RepComm.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# stdiotuntap\n\nConfigure tun / tap devices using nothing but json over stdio!\n\n## libs\n- [libtuntap](https://github.com/LaKabane/libtuntap) as tun/tap driver\n- [tiny-json](https://github.com/rafagafe/tiny-json) as a json parser\n- [jsonwrite.c](./blob/master/src/jsonwrite.c) as (in-house 😎) json stringify\n- [b64.c](https://github.com/littlstar/b64.c) as base64 encoder for packets in json\n\n## State\nOperational!\n\nCan now both send and receive IP traffic thru tunnel to standard input/output over JSON/base64 strings. See [protocol.d.ts](./protocol.d.ts) for typescript definitions of JSON format and some example JSON messages to talk to this software over terminal\n\nMinimum viable product is here and ready for testing!\n\nImplemented so far:\n- json commands input / response output thru stdio\n- json stringify lib impl\n- tun device create, up, down, destroy commands\n- origin and destination IP packets decoded\n\n## TODO\n- json commands:\n  - device subscribe/unsubscribe (all on by default currently)\n- fix device pool non-refreshable behaviour\n- rewrite b64.c to not be so weird\n\n## what\ntf is this?\n\nThis program allows creation and usage of tun (and later on, tap) devices using a standard input output aka terminal connection.\n\nWhat is tun/tap you ask?\nEssentially a fake router connected to the machine running the tun/tap service, but all the traffic is forwarded to the software running tun/tap fake network device.\n\nA tun/tap device will show up in `ifconfig`/`ipconfig`/`ip a` commands like one of your other network devices, but is not a physical device with a real MAC address.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frepcomm%2Fstdiotuntap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frepcomm%2Fstdiotuntap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frepcomm%2Fstdiotuntap/lists"}