{"id":37106288,"url":"https://github.com/libyarp/yarp","last_synced_at":"2026-01-14T12:48:32.701Z","repository":{"id":57695470,"uuid":"485415122","full_name":"libyarp/yarp","owner":"libyarp","description":"YARP implementation for Go","archived":false,"fork":false,"pushed_at":"2023-08-30T13:59:33.000Z","size":27,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-03T00:08:38.678Z","etag":null,"topics":["golang","rpc","rpc-library"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/libyarp.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":"2022-04-25T14:53:49.000Z","updated_at":"2022-05-09T13:00:10.000Z","dependencies_parsed_at":"2022-09-06T10:41:22.997Z","dependency_job_id":null,"html_url":"https://github.com/libyarp/yarp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/libyarp/yarp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libyarp%2Fyarp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libyarp%2Fyarp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libyarp%2Fyarp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libyarp%2Fyarp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/libyarp","download_url":"https://codeload.github.com/libyarp/yarp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libyarp%2Fyarp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28420814,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"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":["golang","rpc","rpc-library"],"created_at":"2026-01-14T12:48:31.873Z","updated_at":"2026-01-14T12:48:32.690Z","avatar_url":"https://github.com/libyarp.png","language":"Go","readme":"# yarp\n\nYARP (Yet Another RPC Protocol) is a simple serialization format and RPC\nprotocol. YARP is:\n\n- Lighter than JSON\n- Lighter than HTTP\n- Heavier than Protocol Buffers/gRPC, Cap'n'Proto, and MessagePack\n\nAnd it does not intend to replace any of the former.\nYARP does not use sticky connections, making it load-balancer-friendly, and\nprovides cleaner autogenerated code.\n\n## Why should I use YARP?\n\nYou shouldn't. YARP is a proof of concept and currently considered quite\nunstable; This may change over time, as it begins being used on real projects,\nbut it still does not provide features found in Protobufs/gRPC.\nYou are, however, welcome to use it as you deem fit. Feel free to open an issue\nin case you stumble in an odd behaviour.\n\n## How do I use YARP?\n\nYARP is composed of three distinct parts:\n\n1. Message and Service Definitions\n2. Autogenerated code\n3. Services implementation\n\nYARP's IDL is quite similar to Protobuf's, making it familiar out-of-box. First,\ndefine messages and services:\n\n```\npackage io.libyarp;\n\nmessage RandomBytesRequest {\n    desired_length int8 = 0; # Fields indexes begin at zero.\n}\n\nmessage RandomBytesResponse {\n    @repeated data uint8 = 0;\n}\n\nservice RandomBytesService {\n    generate_random_bytes(RandomBytesRequest) -\u003e RandomBytesResponse;\n}\n```\n\nThen, provide the definition to [`yarpc`](https://github.com/libyarp/yarpc):\n\n```\n$ yarpc random_bytes_service.yarp --lang go --package rbs --out rbs.yarp.go\n```\n\nFinally, implement the service:\n\n```go\npackage rbs\n\nimport \"context\"\nimport \"math/rand\"\nimport \"github.com/libyarp/yarp\"\n\ntype RandomBytesImplementation struct{}\n\nfunc (r RandomBytesImplementation) GenerateRandomBytes(ctx context.Context, headers yarp.Header, req *RandomBytesRequest) (*RandomBytesResponse, yarp.Header, error) {\n\tdata := make([]byte, req.DesiredLength)\n\tif _, err := rand.Read(data); err != nil {\n\t    return nil, nil, err\t\n    }\n    return \u0026RandomBytesResponse{Data: data}, nil, nil\t\n}\n\nfunc main() {\n\ts := yarp.NewServer(\"127.0.0.1:9027\")\n\tsrv := RandomBytesImplementation{}\n\tRegisterMessages()\n\tRegisterRandomBytesService(s, \u0026srv)\n\terr := s.Start()\n\tif err != nil {\n\t\t// ...\n\t}\n}\n```\n\n## Protocol Documentation\nTBW\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibyarp%2Fyarp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flibyarp%2Fyarp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibyarp%2Fyarp/lists"}