{
 "kind": "tool",
 "slug": "protobuf",
 "path": "tools/protobuf/",
 "name": "Protocol Buffers",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Forms, validation and schemas",
   "tools/forms-validation/"
  ]
 ],
 "lead": "Serialization format and code generator for structured data.",
 "chips": [
  {
   "label": "Forms, validation and schemas",
   "path": "tools/forms-validation/"
  },
  {
   "label": "PYPI"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "pip install protobuf"
 },
 "links": [
  {
   "label": "Website",
   "href": "https://developers.google.com/protocol-buffers/"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "3-Clause BSD License",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from PyPI license field.",
   "src": "https://developers.google.com/protocol-buffers/"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Not checked yet",
   "status": "unknown",
   "sub": null,
   "note": "",
   "src": "https://developers.google.com/protocol-buffers/"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "44 projects",
   "status": "info",
   "sub": "#9 of 63 in its category",
   "note": "Dependency in 44 public GitHub projects set up for AI coding agents that we scanned (0.7%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Protocol Buffers does",
   "parts": [
    {
     "t": "prose",
     "text": "Serialization format and code generator for structured data."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Protocol Buffers popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "77",
       "of": "/ 100",
       "l": "Gid Score, #155 overall"
      },
      {
       "n": "189M",
       "l": "downloads a week, pypi"
      },
      {
       "n": "44",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How Protocol Buffers is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "Protocol Buffers is a dependency in 44 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (2.7% of the 1,623 Python ones), #9 of 63 in forms, validation and schemas.",
      "Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 1,136; those are left out of every share on this page.",
      "The most used alternative in our scan is Pydantic (538 projects).",
      "Projects that use it most often also use Requests (90.9%), PyYAML (77.3%), urllib3 (72.7%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "29 projects, 0.9%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "25 projects, 0.8%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "19 projects, 0.8%",
       "v": "Cursor",
       "path": "agents/cursor/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 90.9% of its projects",
       "v": "Requests",
       "path": "tools/requests-py/"
      },
      {
       "l": "In 77.3% of its projects",
       "v": "PyYAML",
       "path": "tools/pyyaml/"
      },
      {
       "l": "In 72.7% of its projects",
       "v": "urllib3",
       "path": "tools/urllib3/"
      },
      {
       "l": "In 70.5% of its projects",
       "v": "charset-normalizer",
       "path": "tools/charset-normalizer/"
      },
      {
       "l": "In 65.9% of its projects",
       "v": "websockets",
       "path": "tools/websockets/"
      },
      {
       "l": "In 65.9% of its projects",
       "v": "Click",
       "path": "tools/click-py/"
      },
      {
       "l": "In 65.9% of its projects",
       "v": "Pydantic",
       "path": "tools/pydantic/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about Protocol Buffers",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "More in Forms, validation and schemas",
       "path": "tools/forms-validation/",
       "items": [
        {
         "text": "Zod",
         "path": "tools/zod/"
        },
        {
         "text": "React Hook Form",
         "path": "tools/react-hook-form/"
        },
        {
         "text": "React Hook Form Resolvers",
         "path": "tools/hookform/"
        },
        {
         "text": "Ajv",
         "path": "tools/ajv/"
        },
        {
         "text": "ajv-formats",
         "path": "tools/ajv-formats/"
        },
        {
         "text": "zod-to-json-schema",
         "path": "tools/zod-to-json-schema/"
        },
        {
         "text": "email-validator",
         "path": "tools/email-validator/"
        },
        {
         "text": "drizzle-zod",
         "path": "tools/drizzle-zod/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Protocol Buffers",
       "me": true,
       "facts": [
        "3-Clause BSD License",
        "Gid 77",
        "189M/wk"
       ]
      },
      {
       "name": "Pydantic",
       "why": "Data validation and parsing library using Python type hints.",
       "path": "tools/pydantic/",
       "facts": [
        "MIT",
        "Gid 86",
        "292M/wk"
       ]
      },
      {
       "name": "jsonschema",
       "why": "Python implementation of JSON Schema validation for structured data.",
       "path": "tools/jsonschema/",
       "facts": [
        "MIT",
        "Gid 75",
        "164M/wk"
       ]
      },
      {
       "name": "ormsgpack",
       "why": "Fast MessagePack serialization with dataclass and datetime support.",
       "path": "tools/ormsgpack/",
       "facts": [
        "Apache-2.0 OR MIT",
        "Gid 55",
        "14.5M/wk"
       ]
      },
      {
       "name": "msgspec",
       "why": "Fast serialization and validation for JSON, MessagePack, YAML, TOML with schemas.",
       "path": "tools/msgspec/",
       "facts": [
        "BSD-3-Clause",
        "Gid 58",
        "9.8M/wk"
       ]
      }
     ],
     "more": "Compare Protocol Buffers with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "pip install protobuf"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for Protocol Buffers yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "pypi protobuf"
  ],
  [
   "Category",
   "Forms, validation and schemas"
  ],
  [
   "License",
   "3-Clause BSD License"
  ],
  [
   "Gid Score",
   "77.2"
  ],
  [
   "Rank in category",
   "#9 of 63"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": null
}