# 1Password/typeshare

Typeshare is the ultimate tool for synchronizing your type definitions between Rust and other languages for seamless FFI.

Repository: https://github.com/1Password/typeshare
Canonical: https://ross.abutalabs.com/products/typeshare
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: cli, ffi, rust, serde
Last push: 2026-08-23T00:19:01+00:00

## Health v2 (maintenance only)
Score: 81/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 48, longevity 100
- inputs: {"age_days": 1439, "days_push": 11, "days_rel": 265, "gap_med": 36.0, "n_releases_24m": 7}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2984, forks 133 (observed 2026-08-28T04:07:33.945999+00:00)

## What it is
Typeshare is a CLI tool and Rust library that parses Rust type definitions annotated with serde attributes and generates equivalent type definitions in other languages like TypeScript, Swift, and Kotlin. It keeps types in sync across FFI boundaries, eliminating manual duplication.

## Use cases
- generate TypeScript types from Rust structs
- keep Rust and Swift type definitions in sync for iOS apps
- share data models across FFI boundary
- avoid manually duplicating serde types in other languages
- generate Kotlin data classes from Rust types

## When to choose
- you have a Rust core with mobile or web frontends consuming its types over FFI
- you use serde and want automatic cross-language type generation
- you want a maintained, widely-used tool from 1Password

## When to avoid
- your project doesn't involve Rust
- you need types shared between non-Rust languages only
- you need runtime serialization, not just type definitions

## Facets
- artifact type: cli-tool
- maturity: active
- function: serialization, developer-tools, cli
- domain: developer-tools, programming-languages, cross-platform
- platform: rust, cli, cross-platform
- tags: ffi, type-sharing, serde, code-generation, rust

## Member repositories
- 1Password/typeshare (main) score 81

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:33.945999+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-30T07:31:26.762237+00:00, confidence not recorded.
  - readme: https://github.com/1Password/typeshare (fetched 2026-08-28T04:07:33.945999+00:00, sha 061c0b05d654)
  - registry_crates: https://crates.io/api/v1/crates/typeshare (fetched 2026-08-29T09:46:26.458416+00:00, sha 439e14b76603)
- Data as of 2026-08-30T08:39:29.467469+00:00.
