# square/wire

gRPC and protocol buffers for Android, Kotlin, Swift and Java.

Repository: https://github.com/square/wire
Canonical: https://ross.abutalabs.com/products/square-wire
Homepage: https://square.github.io/wire/
Language: Kotlin
License: Apache-2.0
License Family: permissive
Last push: 2026-08-25T08:31:40+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 4760, "days_push": 8, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4428, forks 629 (observed 2026-08-28T04:08:48.962692+00:00)

## What it is
Wire is Square's protocol buffer (protobuf) library with gRPC support for Kotlin, Java, Swift, and Android. It generates lightweight, idiomatic code from .proto schemas for serializing structured data and making RPC calls.

## Use cases
- generate Kotlin data classes from protobuf schemas
- use gRPC on Android
- serialize messages to compact binary format
- share proto schemas across Java and Swift codebases
- evolve API schemas with backwards compatibility
- avoid heavyweight protobuf runtime on mobile

## When to choose
- you build Android or JVM apps that talk to protobuf/gRPC services
- you want lightweight generated code instead of Google's protobuf-java
- you need Kotlin-first protobuf support including coroutines
- you share schemas across Kotlin, Java, and Swift clients

## When to avoid
- you need protobuf in languages Wire does not target
- you want a general-purpose serialization format like JSON for dynamic data
- your team is already standardized on Google's protobuf toolchain

## Facets
- artifact type: library
- maturity: active
- function: serialization, rpc
- domain: developer-tools, mobile-development, apis
- platform: jvm, cross-platform
- tags: protocol-buffers, grpc, kotlin-multiplatform, schema-driven, square, code-generation, android, swift, mobile

## Member repositories
- square/wire (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:48.962692+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:20:55.657080+00:00, confidence not recorded.
  - readme: https://github.com/square/wire (fetched 2026-08-28T04:08:48.962692+00:00, sha f398a3856708)
  - homepage: https://square.github.io/wire/ (fetched 2026-08-29T09:08:16.894706+00:00, sha e8c124cb262e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
