{"id":37155663,"url":"https://github.com/sashka/protoclosure","last_synced_at":"2026-01-14T18:24:18.907Z","repository":{"id":35367186,"uuid":"39630129","full_name":"sashka/protoclosure","owner":"sashka","description":"Protocol Buffer interoperability between go and JavaScript (using closure-library's goog.proto2)","archived":false,"fork":false,"pushed_at":"2015-07-24T14:09:36.000Z","size":131,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-19T23:14:05.936Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"BimberLab/DiscvrLabKeyModules","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sashka.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-24T11:48:24.000Z","updated_at":"2023-08-15T11:28:02.000Z","dependencies_parsed_at":"2022-09-26T18:21:44.208Z","dependency_job_id":null,"html_url":"https://github.com/sashka/protoclosure","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sashka/protoclosure","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sashka%2Fprotoclosure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sashka%2Fprotoclosure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sashka%2Fprotoclosure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sashka%2Fprotoclosure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sashka","download_url":"https://codeload.github.com/sashka/protoclosure/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sashka%2Fprotoclosure/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28430795,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T16:38:47.836Z","status":"ssl_error","status_checked_at":"2026-01-14T16:34:59.695Z","response_time":107,"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":"2026-01-14T18:24:18.258Z","updated_at":"2026-01-14T18:24:18.887Z","avatar_url":"https://github.com/sashka.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"protoclosure\n============\n\n[Protocol Buffer](https://code.google.com/p/protobuf/) interoperability\nbetween [Go](http://golang.org)'s\n[goprotobuf](https://code.google.com/p/goprotobuf/) and JavaScript (using\n[closure-library](https://developers.google.com/closure/library/)'s\n[goog.proto2](https://github.com/google/closure-library/tree/master/closure/goog/proto2)).\n\nJS Usage\n--------\n\nGo Usage\n--------\n\nPBLite format\n-------------\n\nExample message:\n\n```protobuf\nmessage Person {\n  optional int32 id = 1;\n  optional string name = 2;\n  optional string email = 3;\n}\n```\n\nExample encoding:\n\n```json\n[null,1,null,\"user@example.com\"]\n```\n\nExample encoding (zero-index):\n\n```json\n[1,null,\"user@example.com\"]\n```\n\nPBObject format\n---------------\n\nExample message:\n\n```protobuf\nmessage Person {\n  optional int32 id = 1;\n  optional string name = 2;\n  optional string email = 3;\n}\n```\n\nExample encoding (tag name):\n\n```json\n{\"id\":1,\"email\":\"user@example.com\"}\n```\n\nExample encoding (tag number):\n\n```json\n{\"1\":1,\"3\":\"user@example.com\"}\n```\n\nprotoclosure development\n-------------------------\n\n```\n$ # setup environment (GOPATH, etc)\n$ go get gopkg.in/samegoal/protoclosure.v0\n$ cd gopkg.in/samegoal/protoclosure.v0\n$ # modify the source\n$ go test -race\n$ make  # run vet/fmt/lint, prior to sending Pull Request\n```\n\nTo regenerate unit test protobuf files:\n\n```\nprotoc --go_out=. gopkg.in/samegoal/protoclosure.v0/test.proto\nprotoc --go_out=. gopkg.in/samegoal/protoclosure.v0/package_test.proto\n\nmv gopkg.in/samegoal/protoclosure.v0/test.pb.go gopkg.in/samegoal/protoclosure.v0/test.pb/\nmv gopkg.in/samegoal/protoclosure.v0/package_test.pb.go gopkg.in/samegoal/protoclosure.v0/package_test.pb/\n```\n\n[goprotobuf](https://code.google.com/p/goprotobuf/) limitations:\n\n  * [Import dependencies](https://code.google.com/p/goprotobuf/issues/detail?id=32)\n  * [Custom options](https://code.google.com/p/goprotobuf/issues/detail?id=34)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsashka%2Fprotoclosure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsashka%2Fprotoclosure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsashka%2Fprotoclosure/lists"}