# json_rpc_2

> JSON-RPC 2.0 clients, servers and peers in Dart

Source: https://talira.ai/catalog/json-rpc-2-kpkh17bj
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [frameworks / rpc](https://talira.ai/categories/frameworks/rpc), [languages / dart](https://talira.ai/categories/languages/dart)
- Licence: BSD-3-Clause[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Supports: [JSON-RPC](https://talira.ai/standards/json-rpc.md)[^2]
- Backed by: [Google](https://talira.ai/orgs/google.md)
- Funding: public company (NASDAQ:GOOGL)[^3]

json_rpc_2 is a Dart package from the Dart team that implements the JSON-RPC 2.0 specification. A Server registers methods that clients call, with a Parameters object that validates arguments and rejects invalid requests; a Client sends requests and notifications and handles the responses; and a Peer is both at once, routing each message from the other end for two-way communication. It works over any stream channel of strings, such as a WebSocket. Part of the dart-lang/tools monorepo, published on pub.dev by tools.dart.dev under the BSD 3-Clause licence.

## Links

- GitHub: https://github.com/dart-lang/tools
- Docs: https://pub.dev/documentation/json_rpc_2/latest/

## Problems it solves

- call methods on a JSON-RPC 2.0 server from a Dart app
- expose Dart functions over JSON-RPC to other programs
- two-way JSON-RPC over a WebSocket in Dart

## Features

- JSON-RPC 2.0 server with methods registered by name
- Parameters object that validates arguments and rejects invalid requests
- client for requests and notifications
- Peer class that is both client and server for two-way communication
- runs over any StreamChannel, such as a WebSocket

## Trust

Overall: 0.63 out of 1.
Signals: maintenance 1.00, adoption 0.42, momentum 0.17, community 0.99, backing 0.55, extensibility 0.00.

- last commit 3 days ago
- 200 commits in the last 90 days
- latest release api_summary-v1.3.1 3 days ago
- 123 GitHub stars
- 302 contributors
- backed by Google
- funding: public company (NASDAQ:GOOGL)

## Sources

[^1]: https://github.com/dart-lang/tools/blob/main/pkgs/json_rpc_2/LICENSE (checked 27 Nov 2026)
[^2]: https://pub.dev/packages/json_rpc_2 (checked 27 Nov 2026)
[^3]: https://www.sec.gov/files/company_tickers_exchange.json (checked 20 Nov 2026)
