Search packages, repositories and app categories

Package detailsv6.1.0

protobuf

Runtime library for protocol buffers support. Use with package:protoc_plugin to generate Dart code for your '.proto' files.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
3.1M
Likes
256
Pub points
150

Install package

flutter pub add protobuf

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The protobuf package provides runtime support for Protocol Buffers in Dart, enabling efficient serialization and deserialization of structured data. It works alongside the protoc_plugin to generate Dart classes from .proto definition files, ensuring type-safe and performant data exchange across platforms. Ideal for applications requiring high-performance data communication, such as APIs, microservices, or real-time systems. The library is compatible with all major platforms including Android, iOS, Web, macOS, Windows, and Linux.

Use cases

  • API data serialization
  • Cross-platform data exchange
  • Real-time communication systems
  • Microservices backend integration
  • Efficient binary data storage

Key features

  • Type-safe code generation
  • High performance serialization
  • Cross-platform compatibility
  • Support for .proto file definitions
  • Minimal runtime overhead

Suitable for

  • Developers building scalable APIs
  • Teams using Protocol Buffers in their workflows
  • Applications needing compact data formats
  • Multi-platform mobile and web apps
  • High-throughput data processing systems

Considerations

  • Requires setup with protoc_plugin
  • Needs .proto files for code generation
  • Limited to Protocol Buffers format
  • Manual update after schema changes
  • Learning curve for Protocol Buffers syntax

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Protobuf support for Dart

Protocol Buffers (protobuf) are Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data.

This repository is home to packages related to protobuf support for Dart.

Package Description Published Version
protobuf Runtime library for protocol buffers support. pub package
protoc_plugin A protobuf protoc compiler plugin used to generate Dart code. pub package
benchmarks Benchmarks for various protobuf functions.

Publishing automation

For information about our publishing automation and release process, see https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.

Categories

Dependencies

Dependency list 3 items

Source repository

Projects using this package