swift-protobuf
brew install swift-protobuf
v1.38.0
Apache-2.0
Swift code generator and runtime library for Protocol Buffers serialization.
Why you might care
Swift developers building systems that need protobuf serialization can use this official Apple project to generate type-safe Swift code from .proto files and serialize/deserialize messages. Provides both the `protoc` plugin for code generation and the runtime library required by generated code, ensuring compatibility with the broader protobuf ecosystem.
2.9k
30-day installs · #811
8.4k
90-day · #883
31.9k
365-day · #861
4.9k
★ GitHub stars · updated 2d ago
Runtime dependencies
Links
- https://github.com/apple/swift-protobuf
- GitHub: apple/swift-protobuf
- Brew formula source: Formula/s/swift-protobuf.rb
Blurb generated by claude-haiku-4-5 on today.
Raw metadata
{
"aliases": [],
"alternatives": [
"protobuf",
"gRPC"
],
"build_dependencies": [],
"categories": [
"compiler",
"library",
"binding"
],
"caveats": null,
"conflicts_with": [],
"dependencies": [
"protobuf"
],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Plugin and runtime library for using protobuf with Swift",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:41:07+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "swift-protobuf",
"github_default_branch": "main",
"github_last_commit_at": "2026-06-18T17:17:03Z",
"github_readme_excerpt": "\u003cimg src=\"https://swift.org/assets/images/swift.svg\" alt=\"Swift logo\" height=\"70\" \u003e\n\n# Swift Protobuf\n\n**Welcome to Swift Protobuf!**\n\n[Apple\u0027s Swift programming language](https://swift.org/) is a perfect\ncomplement to [Google\u0027s Protocol Buffer](https://protobuf.dev/)\n(\"protobuf\") serialization technology.\nThey both emphasize high performance and programmer safety.\n\nThis project provides both the command-line program that adds Swift\ncode generation to Google\u0027s `protoc` and the runtime library that is\nnecessary for using the generated code.\nAfter using the protoc plugin to generate Swift code from your .proto\nfiles, you will need to add this library to your project.\n\n[](https://github.com/apple/swift-protobuf/actions/workflows/build.yml)\n[](https://github.com/apple/swift-protobuf/actions/workflows/check_upstream_protos.yml)\n[](https://github.com/apple/swift-protobuf/actions/workflows/head_conformance.yml)\n\n# Features of SwiftProtobuf\n\nSwiftProtobuf offers many advantages over alternative serialization\nsystems:\n\n* Safety: The protobuf code-generation system avoids the\n errors that are common with hand-built serialization code.\n* Correctness: SwiftProtobuf passes both its own extensive\n test suite and Google\u0027s full conformance test for protobuf\n correctness.\n* Schema-driven: Defining your data structures in a separate\n `.proto` schema file clearly documents your communications\n conventions.\n* Idiomatic: SwiftProtobuf takes full advantage of the Swift language.\n In particular, all generated types provide full Swift copy-on-write\n value semantics.\n* Efficient binary serialization: The `.seria",
"github_repo": "apple/swift-protobuf",
"github_stars": 4938,
"github_topics": [],
"homepage": "https://github.com/apple/swift-protobuf",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 2877,
"installs_365d": 31933,
"installs_90d": 8396,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "Apache-2.0",
"llm_generated_at": "2026-06-20T23:47:12+00:00",
"llm_model": "claude-haiku-4-5",
"name": "swift-protobuf",
"oldnames": [],
"one_liner": "Swift code generator and runtime library for Protocol Buffers serialization.",
"optional_dependencies": [],
"rank_30d": 811,
"rank_365d": 861,
"rank_90d": 883,
"raw_hash": "8628568526df4952",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/s/swift-protobuf.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [
{
"swift": "build"
}
],
"version_head": "HEAD",
"version_stable": "1.38.0",
"versioned_formulae": [],
"why_use_this": "Swift developers building systems that need protobuf serialization can use this official Apple project to generate type-safe Swift code from .proto files and serialize/deserialize messages. Provides both the `protoc` plugin for code generation and the runtime library required by generated code, ensuring compatibility with the broader protobuf ecosystem."
}