{"id":20239111,"url":"https://github.com/kevinmichaelchen/buf-vanguard-rest","last_synced_at":"2026-04-17T18:02:11.419Z","repository":{"id":217005423,"uuid":"742888203","full_name":"kevinmichaelchen/buf-vanguard-rest","owner":"kevinmichaelchen","description":"GraphQL, REST, gRPC, and Connect — all powered from the same underlying Protobuf API — thanks to Buf and Tailcall","archived":false,"fork":false,"pushed_at":"2024-01-13T19:04:36.000Z","size":29,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-30T14:42:02.057Z","etag":null,"topics":["bufbuild","connectrpc","graphql","protobuf","protocol-buffers","rest","tailcall"],"latest_commit_sha":null,"homepage":"","language":"Go","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/kevinmichaelchen.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}},"created_at":"2024-01-13T17:08:15.000Z","updated_at":"2025-11-15T16:50:41.000Z","dependencies_parsed_at":"2024-01-14T04:49:57.792Z","dependency_job_id":"4334ecd4-013f-46b7-bd15-fdc3d5e4464a","html_url":"https://github.com/kevinmichaelchen/buf-vanguard-rest","commit_stats":null,"previous_names":["kevinmichaelchen/buf-vanguard-rest"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kevinmichaelchen/buf-vanguard-rest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinmichaelchen%2Fbuf-vanguard-rest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinmichaelchen%2Fbuf-vanguard-rest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinmichaelchen%2Fbuf-vanguard-rest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinmichaelchen%2Fbuf-vanguard-rest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevinmichaelchen","download_url":"https://codeload.github.com/kevinmichaelchen/buf-vanguard-rest/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinmichaelchen%2Fbuf-vanguard-rest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31939788,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T17:29:20.459Z","status":"ssl_error","status_checked_at":"2026-04-17T17:28:47.801Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["bufbuild","connectrpc","graphql","protobuf","protocol-buffers","rest","tailcall"],"created_at":"2024-11-14T08:37:33.045Z","updated_at":"2026-04-17T18:02:11.396Z","avatar_url":"https://github.com/kevinmichaelchen.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# buf-vanguard-rest\n\nA demo showing how one [Buf][buf] API can offer GraphQL, REST, gRPC, and\n[Connect][connect] protocols, using a combination of [Vanguard][vanguard] and [Tailcall][tailcall].\n\nInspired by this [example][vanguard-example].\n\n[buf]: https://buf.build/\n[connect]: https://connectrpc.com/\n[tailcall]: https://tailcall.run/\n[vanguard]: https://github.com/connectrpc/vanguard-go\n[vanguard-example]:\n  https://github.com/connectrpc/vanguard-go/blob/main/internal/examples/pets/internal/proto/io/swagger/petstore/v2/pets.proto\n\n## Getting Started\n\n### Run the server\n\nRun the server on port 8080 with:\n\n```shell\ngo run main.go\n```\n\n### Make a REST request\n\n```shell\n$ http localhost:8080/foos/1\n\nHTTP/1.1 200 OK\nAccept-Encoding: gzip\nContent-Encoding: gzip\nContent-Length: 55\nContent-Type: application/json\nDate: Sat, 13 Jan 2024 18:28:44 GMT\n\n{\n    \"foo\": {\n        \"id\": \"1\",\n        \"name\": \"Bar\"\n    }\n}\n\n```\n\n### Make a Connect request\n\n```shell\ncurl -v http://localhost:8080/bvr.v1beta1.FooService/CreateFoo \\\n  -H \"Content-Type: application/json\" \\\n  --data-binary @- \u003c\u003cEOF\n  {\n    \"name\": \"BAR\"\n  }\nEOF\n```\n\nor\n\n```shell\npkgx http http://localhost:8080/bvr.v1beta1.FooService/CreateFoo name=\"BAR\"\n```\n\n### Make a GraphQL request\n\nThanks to [Tailcall][tailcall], we've able to generate a GraphQL API from our\nVanguard HTTP APIs. (See [**`tailcall.graphql`**][tailcall-graphql]).\n\n[tailcall-graphql]: ./tailcall.graphql\n\nOnce you've started the Tailcall server with:\n\n```shell\npkgx tailcall start ./tailcall.graphql\n```\n\nYou can visit the [GraphQL Playground][playground] and run the following query:\n\n```graphql\n{\n  foo(input: { id: \"1\" }) {\n    foo {\n      id\n      name\n    }\n  }\n}\n```\n\n[playground]: http://127.0.0.1:8000/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinmichaelchen%2Fbuf-vanguard-rest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevinmichaelchen%2Fbuf-vanguard-rest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinmichaelchen%2Fbuf-vanguard-rest/lists"}