{"id":23049948,"url":"https://github.com/x52dev/protobug","last_synced_at":"2026-05-10T00:20:50.860Z","repository":{"id":242444600,"uuid":"809514773","full_name":"x52dev/protobug","owner":"x52dev","description":"Protobuf Debugging Suite","archived":false,"fork":false,"pushed_at":"2026-03-26T00:45:34.000Z","size":412,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-26T21:51:48.214Z","etag":null,"topics":[],"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/x52dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["robjtede"]}},"created_at":"2024-06-02T22:36:54.000Z","updated_at":"2026-03-26T00:44:52.000Z","dependencies_parsed_at":"2024-12-01T05:28:16.577Z","dependency_job_id":"e6753c2c-f1e6-4936-b0d3-6fe5bcf4ebda","html_url":"https://github.com/x52dev/protobug","commit_stats":null,"previous_names":["x52dev/protobug"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/x52dev/protobug","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x52dev%2Fprotobug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x52dev%2Fprotobug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x52dev%2Fprotobug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x52dev%2Fprotobug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/x52dev","download_url":"https://codeload.github.com/x52dev/protobug/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x52dev%2Fprotobug/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31307196,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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-12-15T23:18:18.920Z","updated_at":"2026-05-10T00:20:50.829Z","avatar_url":"https://github.com/x52dev.png","language":"Rust","funding_links":["https://github.com/sponsors/robjtede"],"categories":[],"sub_categories":[],"readme":"# `protobug`\n\n\u003e Protobuf Debugging Suite\n\n[![asciicast](https://asciinema.org/a/2Xesc9SvbYwvIDri.svg)](https://asciinema.org/a/2Xesc9SvbYwvIDri)\n\n`protobug` is a schema-aware CLI for inspecting and rewriting protobuf payloads. It can decode binary, hex, and base64 payloads, project them into canonical JSON, apply `jaq` filters to that JSON, and re-encode the result back into protobuf bytes.\n\n## Current Feature Set\n\n- Inspect protobuf payloads with a schema-aware TUI.\n- Print protobuf payloads as canonical JSON, raw binary, hex, or base64.\n- Edit messages by applying `jaq` filters to their JSON representation.\n- Rewrite files in place while preserving their original encoding.\n- Work with line-delimited hex/base64 files as multiple independent messages.\n- Navigate multiple messages in the inspector one at a time.\n\n## Commands\n\n### `inspect`\n\n`inspect` is the interactive path. It loads a protobuf payload with a schema and either opens the TUI or prints the decoded message in another format.\n\nSupported input formats:\n\n- `auto`\n- `binary`\n- `hex`\n- `base64`\n\nSupported print formats:\n\n- `json`\n- `binary`\n- `hex`\n- `base64`\n\n### `edit`\n\n`edit` is the non-interactive transformation path. It loads a message, converts it to JSON, optionally runs a `jaq` filter, and emits the result in the requested format or writes it back in place.\n\nSupported input formats:\n\n- `auto`\n- `json`\n- `binary`\n- `hex`\n- `base64`\n\nSupported output formats:\n\n- `json`\n- `binary`\n- `hex`\n- `base64`\n\n## Examples\n\nPrint a protobuf payload as canonical JSON:\n\n```bash\nprotobug inspect \\\n  --schema protogen/proto/system-event.proto \\\n  --message SystemEvent \\\n  --file event.bin \\\n  --input-format binary \\\n  --print-format json\n```\n\nOpen the interactive inspector:\n\n```bash\nprotobug inspect \\\n  --schema protogen/proto/system-event.proto \\\n  --message SystemEvent \\\n  --file event.hex \\\n  --input-format hex\n```\n\nInspect a line-delimited base64 file as multiple messages:\n\n```bash\nprotobug inspect \\\n  --schema protogen/proto/system-event.proto \\\n  --message SystemEvent \\\n  --file events.b64 \\\n  --input-format base64 \\\n  --multiple\n```\n\nConvert JSON back into protobuf bytes:\n\n```bash\nprotobug edit \\\n  --schema protogen/proto/system-event.proto \\\n  --message SystemEvent \\\n  --file event.json \\\n  --input-format json \\\n  --print-format binary \u003e event.bin\n```\n\nApply a `jaq` filter and print the edited message as JSON:\n\n```bash\nprotobug edit \\\n  --schema protogen/proto/system-event.proto \\\n  --message SystemEvent \\\n  --file event.bin \\\n  --input-format binary \\\n  --filter '.click |= (.x as $x | .y as $y | .x = $y | .y = $x)' \\\n  --print-format json\n```\n\nRewrite a protobuf file in place:\n\n```bash\nprotobug edit \\\n  --schema protogen/proto/system-event.proto \\\n  --message SystemEvent \\\n  --file event.hex \\\n  --input-format hex \\\n  --filter '.reason = \"updated\"' \\\n  --in-place\n```\n\nRewrite each message in a line-delimited base64 file independently:\n\n```bash\nprotobug edit \\\n  --schema protogen/proto/system-event.proto \\\n  --message SystemEvent \\\n  --file events.b64 \\\n  --input-format base64 \\\n  --multiple \\\n  --filter '.click.x += 10' \\\n  --in-place\n```\n\nUse the bundled `just` helpers during development:\n\n```bash\njust proto-json protogen/proto/system-event.proto event.bin SystemEvent binary\njust proto-jq protogen/proto/system-event.proto event.bin '.click.x += 10' SystemEvent binary\njust proto-jq-rewrite protogen/proto/system-event.proto event.hex '.reason = \"updated\"' SystemEvent hex\n```\n\n## TUI Notes\n\nIn the inspector:\n\n- `Ctrl-S` saves configured outputs.\n- `Ctrl-X` toggles the hex pane.\n- `Ctrl-A` toggles the ASCII pane.\n- `[` and `]` adjust bytes-per-row.\n- `Ctrl-J` and `Ctrl-K` move between messages in multi-message mode.\n- `Ctrl-G` opens the message picker.\n\nIn the message picker:\n\n- `Enter` jumps to a specific message number.\n- `Ctrl-B` jumps to the first message.\n- `Ctrl-E` jumps to the last message.\n- `Esc` cancels.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx52dev%2Fprotobug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fx52dev%2Fprotobug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx52dev%2Fprotobug/lists"}