{"repo":"williamw520/zigjr","free":true,"listed":false,"github":"https://github.com/williamw520/zigjr","clone":"git clone https://github.com/williamw520/zigjr.git","description":"A Lightweight Zig Library for JSON-RPC 2.0","language":"Zig","stars":50,"topics":["json-rpc","mcp","protocol","zig"],"license":null,"category":"mcp-servers","readme_excerpt":"ZigJR - JSON-RPC 2.0 Library for Zig (Note: ZigJR 2.0 is under development. It will introduce some breaking changes. The main changes are for adding session based handling support and multi-thread support.) ZigJR is a lightweight Zig library providing a full implementation of the JSON-RPC 2.0 protocol, with message streaming on top, and a smart function dispatcher that turns native Zig functions into RPC handlers. It aims to make building JSON-RPC applications in Zig simple and straightforward. This small library is packed with the following features: Parsing and composing JSON-RPC 2.0 messages. Support for Request, Response, Notification, and Error JSON-RPC 2.0 messages. Support for batch requests and batch responses in JSON-RPC 2.0. Message streaming via delimiter based streams ( \\n , etc.). Message streaming via Content-Length header-based streams. RPC pipeline to process the full request-to-response lifecycle. Native Zig functions as message handlers with automatic type mapping. Flexible logging mechanism for inspecting the JSON-RPC messages. Content Quick Usage Installation Usage Dispatcher RpcDispatcher Custom Dispatcher Invocation and Cleanup Handler Function Extended Handlers Universal Message Handling Transport Project Build Examples License References Quick Usage The following example shows a JSON-RPC server registering native Zig functions as RPC handlers in a dispatcher's registry and using it to handle JSON-RPC messages in a stream from stdin to stdout . The hand","default_branch":null,"files":null,"tree":[],"storefront":"/r/williamw520","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/williamw520/zigjr/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}