RPC Dart¶
📦 Downloaded 399 times in the last 30 days on pub.dev.
RPC Dart is a transport-independent RPC framework written entirely in Dart. It lets you write RPC services once and run them anywhere—mobile, web, desktop, or server—without coupling your business logic to a particular transport or serialization strategy.
Quick start¶
Install the package:
dart pub add rpc_dart
For Flutter projects run:
flutter pub add rpc_dart
Need optional HTTP, WebSocket, or isolate transports?
dart pub add rpc_dart_transports
Head over to the Getting started guide for a complete walkthrough.
Why RPC Dart?¶
- Transport independence – swap between InMemory, HTTP/2, WebSocket, or isolate transports without touching your application code.
- Pure Dart – works on every Dart platform with zero native dependencies.
- All RPC patterns – unary, client streaming, server streaming, and bidirectional streaming are all first-class citizens.
- Zero-copy – InMemory transport passes objects by reference for blazing-fast testing and single-process workloads.
Key resources¶
Need help?¶
- Browse the examples on GitHub
- Open an issue on GitHub