{"id":23146838,"url":"https://github.com/bowmans-dev/protobuf_vs_json","last_synced_at":"2025-07-25T16:39:52.007Z","repository":{"id":175529630,"uuid":"578037875","full_name":"bowmans-dev/protobuf_vs_json","owner":"bowmans-dev","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-06T23:46:52.000Z","size":309,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"library","last_synced_at":"2025-02-09T23:14:25.959Z","etag":null,"topics":[],"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/bowmans-dev.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":"2022-12-14T05:22:13.000Z","updated_at":"2022-12-17T01:33:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"65dd8cd2-a7bb-4e29-bb22-d46f485ba819","html_url":"https://github.com/bowmans-dev/protobuf_vs_json","commit_stats":null,"previous_names":["bowmans-dev/protobuf_vs_json"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bowmans-dev%2Fprotobuf_vs_json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bowmans-dev%2Fprotobuf_vs_json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bowmans-dev%2Fprotobuf_vs_json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bowmans-dev%2Fprotobuf_vs_json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bowmans-dev","download_url":"https://codeload.github.com/bowmans-dev/protobuf_vs_json/tar.gz/refs/heads/library","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247183443,"owners_count":20897594,"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-12-17T16:38:54.936Z","updated_at":"2025-04-04T13:24:58.137Z","avatar_url":"https://github.com/bowmans-dev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Protocol Buffers Crash Course https://www.youtube.com/watch?v=46O73On0gyI\nHussein Nasser [ https://github.com/hnasr ]\n\n### Protocol Buffers (Protobuf) is a method of serializing structured data, \n### - useful for storing it on disk or sending over the wire. \n\n### **Benefits of ProtoBuf**\n##### Schema \n##### Binary compact size\n##### Language neutral \n\n### **Cons**\n##### Have to have structured data (barrier to entry)\n##### More involved processed for small applications.\n##### Have to make sure to update compiled boilerplate code (bugs, security vulnerability, etc.)\n##### hard to use with JSON based application (Javascript/browser)\n\n### To run (using npm):\n\n### use either:\n```\nnpm start\n```\n#### or \n```\nnode demoJson\n```\n- will create a JSON file\n\n### To test protocol buffer implementation:\n```\nnpm install google-protobuf\n```\n \n### ProtoC compiler download **[select the latest compiler for your operating system]**\n- https://github.com/protocolbuffers/pr...\n\n### Optional:\n### vscode-proto3 (Protobuf 3 support if your running in Visual Studio Code)\n\n### Pre-fix following terminal command with location of your protoc download:\n```\n/protoc-3.19.1-osx-x86_64/bin/protoc --js_out=import_style=commonjs,binary:. employees.proto\n```\n\n### To run protocol buffer implementation:\n```\nnode demoProtobuf\n```\n- will create a binary file\n\n### run `ls -lh` in your directory - compare file sizes\n\n### Resources \n\n### protocol buffer javascript doc \nhttps://github.com/protocolbuffers/pr...\n\n### Source Code\nhttps://github.com/hnasr/javascript_p...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbowmans-dev%2Fprotobuf_vs_json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbowmans-dev%2Fprotobuf_vs_json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbowmans-dev%2Fprotobuf_vs_json/lists"}