{"id":50755361,"url":"https://github.com/tituscarl/protopeek","last_synced_at":"2026-06-11T04:30:25.090Z","repository":{"id":360347587,"uuid":"1247287152","full_name":"tituscarl/protopeek","owner":"tituscarl","description":"A Chrome DevTools extension that decodes gRPC-Web request and response payloads inline.","archived":false,"fork":false,"pushed_at":"2026-05-26T02:21:17.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-26T04:17:09.964Z","etag":null,"topics":["chrome-extension","connect","debugging","devtools","grpc","grpc-web","protobuf"],"latest_commit_sha":null,"homepage":"","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/tituscarl.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-23T05:48:45.000Z","updated_at":"2026-05-26T02:21:20.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/tituscarl/protopeek","commit_stats":null,"previous_names":["tituscarl/protopeek"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/tituscarl/protopeek","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tituscarl%2Fprotopeek","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tituscarl%2Fprotopeek/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tituscarl%2Fprotopeek/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tituscarl%2Fprotopeek/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tituscarl","download_url":"https://codeload.github.com/tituscarl/protopeek/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tituscarl%2Fprotopeek/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34183109,"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-11T02:00:06.485Z","response_time":57,"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":["chrome-extension","connect","debugging","devtools","grpc","grpc-web","protobuf"],"created_at":"2026-06-11T04:30:23.690Z","updated_at":"2026-06-11T04:30:25.084Z","avatar_url":"https://github.com/tituscarl.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Protopeek\n\nA Chrome DevTools extension that decodes gRPC-Web request and response payloads inline. Works on any gRPC-Web transport.\n\nAdds a **Protopeek** tab to DevTools that shows every captured call with:\n- Decoded request and response frames, one entry per streamed message.\n- Schema-less protobuf wire-format decoding by default (field numbers, inferred types, nested-message detection).\n- Optional schema-aware decoding when you load a `FileDescriptorSet` — replaces `#N` with field names, decodes enums, and uses the declared `.proto` type for varints / fixed / message fields.\n- Collapsible frames and nested messages, with state that persists across re-renders.\n- Search box that filters the call list and highlights matches inline.\n- Trailer block with `grpc-status` / `grpc-message`.\n\n## Install\n\n```bash\ngit clone git@github.com:tituscarl/protopeek.git\n```\n\nThen in Chrome:\n1. `chrome://extensions`\n2. Toggle **Developer mode** (top-right).\n3. **Load unpacked** → select the cloned `protopeek` folder.\n4. Open DevTools on any page that talks gRPC-Web → click the **Protopeek** tab.\n\nUpdates: `git pull`, then click the reload icon on the extension card at `chrome://extensions`.\n\n## Loading a schema (for field names)\n\nWithout a schema you only see field numbers (`#1`, `#2`, …). To get field names, enum names, and proper type decoding, load a `FileDescriptorSet`.\n\nGenerate one once from your `.proto` sources:\n\n```bash\n# Recommended — buf handles the imports for google.protobuf.* automatically\ncd /path/to/your/proto/repo\nbuf build -o schema.binpb\n\n# Or with protoc — must use --include_imports for well-known types\nprotoc --descriptor_set_out=schema.binpb \\\n  --include_imports \\\n  -I . \\\n  $(find . -name '*.proto')\n```\n\nIn the DevTools panel:\n1. Click **load schema** in the sidebar.\n2. Pick the generated `.binpb` file.\n3. The status line shows `\u003cN\u003e msgs · \u003cM\u003e RPCs · loaded`.\n\nThe schema persists in `chrome.storage.local` across DevTools sessions. Click **forget** to clear it. Regenerate the file whenever your `.proto` definitions change and re-load.\n\n## How it works\n\n- Listens on `chrome.devtools.network.onRequestFinished`, filters for `application/grpc-web*` content types.\n- Reads request bytes from `request.postData.text` (Chrome serves binary POST bodies as a Latin-1 string).\n- Reads response bytes via `request.getContent` (base64-encoded for binary).\n- Parses gRPC-Web frames (5-byte header: 1 flag + 4-byte BE length; flag `0x80` marks the trailer).\n- Decodes protobuf wire format inline — varints, fixed32/64, length-delimited. Length-delimited fields try a strict nested-message decode first; if that doesn't consume the whole slice, falls back to printable string, then hex.\n- When a `FileDescriptorSet` is loaded, looks up the input/output message type by request path `/\u003cpackage\u003e.\u003cService\u003e/\u003cMethod\u003e` and walks the message definition to replace field numbers with names, decode enums, and pick the correct interpretation for varint / fixed types (e.g. `sint32` zigzag, `double` vs `uint64`).\n\n## Limitations\n\n- Calls fired **before** the Protopeek panel is opened in DevTools are missed.\n- Streaming RPCs: only frames present when the request finishes are shown; long-running streams may appear truncated until the connection closes.\n- `getContent` exposes the full response body only after the response is complete. There's no per-frame live streaming.\n- Schema-less varint values are ambiguous between signed / unsigned / zigzag — both interpretations are shown.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftituscarl%2Fprotopeek","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftituscarl%2Fprotopeek","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftituscarl%2Fprotopeek/lists"}