{"id":16889925,"url":"https://github.com/t-mullen/multihack-wire","last_synced_at":"2025-03-20T07:37:15.707Z","repository":{"id":137583702,"uuid":"87924234","full_name":"t-mullen/multihack-wire","owner":"t-mullen","description":"The streaming wire protocol for Multihack","archived":false,"fork":false,"pushed_at":"2017-04-29T05:27:06.000Z","size":51,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-25T08:48:17.135Z","etag":null,"topics":["binary","protocol","realtime","stream"],"latest_commit_sha":null,"homepage":null,"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/t-mullen.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":"2017-04-11T11:03:37.000Z","updated_at":"2017-12-04T02:16:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"967965a7-cc73-4735-bd0f-f27c58e5921f","html_url":"https://github.com/t-mullen/multihack-wire","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t-mullen%2Fmultihack-wire","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t-mullen%2Fmultihack-wire/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t-mullen%2Fmultihack-wire/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t-mullen%2Fmultihack-wire/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/t-mullen","download_url":"https://codeload.github.com/t-mullen/multihack-wire/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244572049,"owners_count":20474353,"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":["binary","protocol","realtime","stream"],"created_at":"2024-10-13T16:59:49.312Z","updated_at":"2025-03-20T07:37:15.688Z","avatar_url":"https://github.com/t-mullen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# multihack-wire\n\n![Travis CI](https://travis-ci.org/RationalCoding/multihack-wire.svg?branch=master)\n[![Standard - JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)\n\nMultihack's custom streaming wire protocol.\n\nDesigned for sending many large files in random chunk sizes, but also lots of tiny edits.\n\nNeeds to be paired with something like `stream-throttle` or it will overload a connection.\n\n## protocol\n\n### `request project`\n\n```\n\u003c00000000\u003e\u003cfilepath length\u003e\u003cfilepath\u003e\u003cfile length\u003e\u003cfile content\u003e`\n    8b           32b           xb         32b          xb\n```\n\n### `provide file`\n\n```\n\u003c10000000\u003e\u003cfilepath length\u003e\u003cfilepath\u003e\u003cfile length\u003e\u003cfile content\u003e`\n    8b          32b            xb        32b           xb\n```\n\n### `change file`\n\n```\n\u003c01000000\u003e\u003cfilepath length\u003e\u003cfilepath\u003e\u003cpayload length\u003e\u003cjson payload\u003e`\n    8b         32b            xb           32b            xb\n```\n\n### `delete file`\n\n```\n\u003c11000000\u003e\u003cfilepath length\u003e\u003cfilepath\u003e`\n    8b          32b           xb\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft-mullen%2Fmultihack-wire","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ft-mullen%2Fmultihack-wire","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft-mullen%2Fmultihack-wire/lists"}