{"id":13626637,"url":"https://github.com/marler8997/netpunch","last_synced_at":"2025-06-22T00:02:42.618Z","repository":{"id":137715317,"uuid":"247766699","full_name":"marler8997/netpunch","owner":"marler8997","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-06T14:34:45.000Z","size":245,"stargazers_count":18,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T03:13:12.531Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Zig","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/marler8997.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,"zenodo":null}},"created_at":"2020-03-16T16:39:20.000Z","updated_at":"2025-01-23T13:19:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"6217c6b8-4794-432f-8682-707f75db2408","html_url":"https://github.com/marler8997/netpunch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marler8997/netpunch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marler8997%2Fnetpunch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marler8997%2Fnetpunch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marler8997%2Fnetpunch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marler8997%2Fnetpunch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marler8997","download_url":"https://codeload.github.com/marler8997/netpunch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marler8997%2Fnetpunch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261212275,"owners_count":23125576,"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":[],"created_at":"2024-08-01T21:02:25.368Z","updated_at":"2025-06-22T00:02:37.496Z","avatar_url":"https://github.com/marler8997.png","language":"Zig","funding_links":[],"categories":["Zig","Network","Network \u0026 Web"],"sub_categories":["Network"],"readme":"\n# TODO\n\nI need to fix timestamp semantics after `std.time.milliTimestamp` was changed to a signed type.  I need to fix `zig test timing.zig`.\n\n# Punch Protocol\n\nConnection is initiated with a handshake. 8 bytes for the punch protocol magic value `0x8ec04ff4a00e8694`, then 1-byte indicating which role the endpoint is taking.  `0` for the initiator role which will be opening tunnels, and `1` for the forwarder role which will accept OpenTunnel messages and forward the tunnel data to another endpoint.\n\n\u003e TODO: support authentication? Allow an authenticate command which requires a sequence of bytes to be sent from the other endpoint.\n\n### Common Messages\n\n| Message     | ID| Length           | Data    |\n|-------------|---|------------------|---------|\n| Heartbeat   | 0 |                  |         |\n| CloseTunnel | 1 |                  |         |\n| Data        | 2 | Length (8 bytes) | Data... |\n\n### InitiatorOnly Messages\n\n| Message     | ID| Length           | Data    |\n|-------------|---|------------------|---------|\n| OpenTunnel  |128|                  |         |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarler8997%2Fnetpunch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarler8997%2Fnetpunch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarler8997%2Fnetpunch/lists"}