grpc 0.6.8+1

  • Installing
  • Versions
  • 90

The Dart implementation of gRPC: A high performance, open source, general RPC framework that puts mobile and HTTP/2 first.

Build Status pub package


See the Dart gRPC Quickstart.


This package is currently in beta: It is available for general usage, and is considered feature complete.

If you experience issues, or if you have feature requests, please open an issue.


This library requires Dart SDK version 2.0 or later.

It currently supports the the Flutter and VM/Server platforms. The potential addition of gRPC-Web is tracked in issue 43.


  • Removes stray files that where published by accident in version 0.6.8.


  • Calling terminate() or shutdown() on a channel doesn't throw error if the channel is not yet open.


  • Support package:test 1.5.


  • Support package:http >=0.11.3+17 <0.13.0.
  • Update package:googleapis_auth to ^0.2.5+3.


  • Interceptors are now async.


  • Update dependencies to be compatible with Dart 2.


  • Make fields of StatusCode const rather than final.


  • Allow for non-ascii header values.


  • More fixes to update to Dart 2 core library APIs.


  • Updated implementation to use new Dart 2 APIs using dart2_fix.


  • Dart SDK upper constraint raised to declare compatability with Dart 2.0 stable.


  • Breaking change: The package now exclusively supports Dart 2.
  • Fixed tests to pass in Dart 2.
  • Added support for Interceptors (issue #79); thanks to @mogol for contributing!


  • Fixes for supporting Dart 2.


  • Moved TLS credentials for server into a separate class.
  • Added support for specifying the address for the server, and support for serving on an ephemeral port.


  • Split out TLS credentials to a separate class.


  • Added authentication metadata providers, optimized for use with Google Cloud.
  • Added service URI to metadata provider API, needed for Json Web Token generation.
  • Added authenticated cloud-to-prod interoperability tests.
  • Refactored connection logic to throw initial connection errors early.


  • Updated generated code in examples using latest protoc compiler plugin.
  • Dart 2.0 fixes.
  • Changed license to Apache 2.0.


  • Implemented support for per-RPC metadata providers. This can be used for authentication providers which may need to obtain or refresh a token before the RPC is sent.


The API is shaping up, but may still change as more advanced features are implemented.


  • Initial version.

This package is in a very early and experimental state. We do not recommend using it for anything but experiments.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  grpc: ^0.6.8+1

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:grpc/grpc.dart';
Version Uploaded Documentation Archive
0.6.8+1 Dec 13, 2018 Go to the documentation of grpc 0.6.8+1 Download grpc 0.6.8+1 archive
0.6.8 Nov 12, 2018 Go to the documentation of grpc 0.6.8 Download grpc 0.6.8 archive
0.6.6 Oct 24, 2018 Go to the documentation of grpc 0.6.6 Download grpc 0.6.6 archive
0.6.5 Sep 18, 2018 Go to the documentation of grpc 0.6.5 Download grpc 0.6.5 archive
0.6.4 Sep 7, 2018 Go to the documentation of grpc 0.6.4 Download grpc 0.6.4 archive
0.6.1 Jul 19, 2018 Go to the documentation of grpc 0.6.1 Download grpc 0.6.1 archive
0.6.0+1 Jul 13, 2018 Go to the documentation of grpc 0.6.0+1 Download grpc 0.6.0+1 archive
0.6.0 Jul 12, 2018 Go to the documentation of grpc 0.6.0 Download grpc 0.6.0 archive
0.5.0 Jul 10, 2018 Go to the documentation of grpc 0.5.0 Download grpc 0.5.0 archive
0.4.1 Apr 5, 2018 Go to the documentation of grpc 0.4.1 Download grpc 0.4.1 archive

All 17 versions...

Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Dec 13, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.7


Detected platforms: Flutter, other

Primary library: package:grpc/grpc.dart with components: io.

Health suggestions

Fix lib/src/client/options.dart. (-1 points)

Analysis of lib/src/client/options.dart reported 2 hints:

line 28 col 7: The top level variable '_minConnectTimeout' isn't used.

line 85 col 25: 'alpnSupported' is deprecated and shouldn't be used.

Fix lib/src/shared/security.dart. (-0.50 points)

Analysis of lib/src/shared/security.dart reported 1 hint:

line 23 col 21: 'alpnSupported' is deprecated and shouldn't be used.

Maintenance suggestions

The description is too short. (-20 points)

Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

Maintain an example.

None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use grpc.dart. Packages with multiple examples should use example/


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
async >=1.13.3 <3.0.0 2.0.8
googleapis_auth ^0.2.5+3 0.2.6
http >=0.11.3+17 <0.13.0 0.12.0
http2 ^0.1.7 0.1.9
meta ^1.0.5 1.1.6
Transitive dependencies
charcode 1.1.2
collection 1.14.11
convert 2.0.2
crypto 2.0.6
http_parser 3.1.3
path 1.6.2
source_span 1.4.1
string_scanner 1.0.4
typed_data 1.1.6
Dev dependencies
mockito ^3.0.0
test ^1.5.0