{"id":50526479,"url":"https://github.com/kevinschweikert/proto","last_synced_at":"2026-06-03T08:04:55.674Z","repository":{"id":361264702,"uuid":"1252811107","full_name":"kevinschweikert/proto","owner":"kevinschweikert","description":"Render network packet field diagrams as ASCII art, Unicode art, or Mermaid.js.","archived":false,"fork":false,"pushed_at":"2026-05-29T20:54:49.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-29T22:12:13.559Z","etag":null,"topics":["cli","protocol","rust","rust-lang"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/kevinschweikert.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-28T22:31:28.000Z","updated_at":"2026-05-29T20:56:19.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/kevinschweikert/proto","commit_stats":null,"previous_names":["kevinschweikert/proto"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/kevinschweikert/proto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinschweikert%2Fproto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinschweikert%2Fproto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinschweikert%2Fproto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinschweikert%2Fproto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevinschweikert","download_url":"https://codeload.github.com/kevinschweikert/proto/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinschweikert%2Fproto/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33854146,"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-03T02:00:06.370Z","response_time":59,"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":["cli","protocol","rust","rust-lang"],"created_at":"2026-06-03T08:04:55.611Z","updated_at":"2026-06-03T08:04:55.664Z","avatar_url":"https://github.com/kevinschweikert.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# proto\n\n[![CI](https://github.com/kevinschweikert/proto/actions/workflows/ci.yml/badge.svg)](https://github.com/kevinschweikert/proto/actions/workflows/ci.yml)\n\nRender network packet field diagrams as ASCII art, Unicode art, or Mermaid.js.\n\n\u003c!-- BEGIN CLI: udp --unicode --clean --\u003e\n\u003c!-- AUTO-GENERATED: run `cargo -p xtask` --\u003e\n\n```bash\nproto udp --unicode --clean\n```\n\nOutput:\n\n```\n0                   1                   2                   3  \n 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1\n╭───────────────────────────────┬───────────────────────────────╮\n│          Source Port          │       Destination Port        │\n├───────────────────────────────┼───────────────────────────────┤\n│            Length             │           Checksum            │\n├───────────────────────────────┴───────────────────────────────┤\n┊                             Data                              ┊\n╰───────────────────────────────────────────────────────────────╯\n```\n\n\u003c!-- END CLI --\u003e\n\n## Installation\n\n```bash\ncargo install --git https://github.com/kevinschweikert/proto.git\n```\n\n## Synopsis\n\n\u003c!-- BEGIN CLI: --help --\u003e\n\u003c!-- AUTO-GENERATED: run `cargo -p xtask` --\u003e\n\n```bash\nproto --help\n```\n\nOutput:\n\n```\nUsage: proto [OPTIONS] [DEFINITION]\n\nArguments:\n  [DEFINITION]  Protocol name or inline definition\n\nOptions:\n  -u, --unicode                      Output in unicode style\n  -m, --mermaid                      Output a mermaid.js spec\n  -c, --clean                        remove crosses for each bit in a field for cleaner rendering\n  -b, --bits-per-row \u003cBITS_PER_ROW\u003e  number of bits per row [default: 32]\n  -n, --no-ruler                     omit the bit number header\n  -l, --list                         list available protocols\n  -f, --from-kaitai \u003cFROM_KAITAI\u003e    path to a kaitai spec file\n  -h, --help                         Print help\n```\n\n\u003c!-- END CLI --\u003e\n\n## Packet Definitions\n\nA packet definition is a comma-separated list of `label:bits` pairs:\n\n```\n\"SourcePort:16,DestPort:16,Length:16,Checksum:16,Data:*\"\n```\n\n## Examples\n\n**ASCII:**\n\n\u003c!-- BEGIN CLI: \"SourcePort:16,DestPort:16,Length:16,Checksum:16,Chunk:64,Data:*\" --\u003e\n\u003c!-- AUTO-GENERATED: run `cargo -p xtask` --\u003e\n\n```bash\nproto \"SourcePort:16,DestPort:16,Length:16,Checksum:16,Chunk:64,Data:*\"\n```\n\nOutput:\n\n```\n0                   1                   2                   3  \n 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1\n+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\n|          SourcePort           |           DestPort            |\n+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\n|            Length             |           Checksum            |\n+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\n|                             Chunk                             |\n+                                                               +\n|                                                               |\n+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\n:                             Data                              :\n+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\n```\n\n\u003c!-- END CLI --\u003e\n\n**Unicode:**\n\n\u003c!-- BEGIN CLI: --unicode \"SourcePort:16,DestPort:16,Length:16,Checksum:16,Chunk:64,Data:*\" --\u003e\n\u003c!-- AUTO-GENERATED: run `cargo -p xtask` --\u003e\n\n```bash\nproto --unicode \"SourcePort:16,DestPort:16,Length:16,Checksum:16,Chunk:64,Data:*\"\n```\n\nOutput:\n\n```\n0                   1                   2                   3  \n 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1\n╭─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─╮\n│          SourcePort           │           DestPort            │\n├─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┤\n│            Length             │           Checksum            │\n├─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┤\n│                             Chunk                             │\n├                                                               ┤\n│                                                               │\n├─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┤\n┊                             Data                              ┊\n╰─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─╯\n```\n\n\u003c!-- END CLI --\u003e\n\n**Mermaid.js:**\n\n\u003c!-- BEGIN CLI: --mermaid \"SourcePort:16,DestPort:16,Length:16,Checksum:16,Data:*\" --\u003e\n\u003c!-- AUTO-GENERATED: run `cargo -p xtask` --\u003e\n\n```bash\nproto --mermaid \"SourcePort:16,DestPort:16,Length:16,Checksum:16,Data:*\"\n```\n\nOutput:\n\n```\npacket\n+16: \"SourcePort\"\n+16: \"DestPort\"\n+16: \"Length\"\n+16: \"Checksum\"\n+32: \"Data\"\n```\n\n\u003c!-- END CLI --\u003e\n\n**Built-in shortcuts:**\n\n\u003c!-- BEGIN CLI: --list --\u003e\n\u003c!-- AUTO-GENERATED: run `cargo -p xtask` --\u003e\n\n```bash\nproto --list\n```\n\nOutput:\n\n```\nAvailable Protocols:\n\nLayer 4 (Network):\n  ip    Internet Protocol Version 4\n\nLayer 4 (Transport):\n  udp    User Datagram Protocol\n  tcp    Transmission Control Protocol\n```\n\n\u003c!-- END CLI --\u003e\n\nUse like this:\n\n```bash\nproto tcp\n```\n\n## Kaitai\n\n\u003e [!NOTE]\n\u003e Only a minimal subset of the spec will be parsed and supported\n\nA [Kaitai Struct](https://kaitai.io/) specification can be loaded and visualized via:\n\n```bash\nproto --from-kaitai [PATH TO FILE]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinschweikert%2Fproto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevinschweikert%2Fproto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinschweikert%2Fproto/lists"}