# Install typeshare with Homebrew, Nix

Synchronize type definitions between Rust and other languages for seamless FFI. Version 1.13.4 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:typeshare
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install typeshare
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#typeshare
```

  Evidence: nixpkgs package indexes: pkgs/by-name/ty/typeshare/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:typeshare
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/typeshare>
- **Version:** 1.13.4
- **Source summary:** Synchronize type definitions between Rust and other languages for seamless FFI
- **Homepage:** <https://github.com/1Password/typeshare>
- **Repository:** <https://github.com/1Password/typeshare>
- **Upstream docs:** <https://1password.github.io/typeshare>
- **License:** Apache-2.0 OR MIT
- **Source archive:** <https://github.com/1Password/typeshare/archive/refs/tags/v1.13.4.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- typeshare (cli)
- typeshare (alias)

## Build dependencies

- rust

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.13.4
- Local data: ok
- Upstream repository: https://github.com/1Password/typeshare
- Upstream latest detected: v1.13.4 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

Typeshare is a Rust-based developer tool from 1Password for generating matching type definitions in other languages from Rust source types. In package-manager catalogs it occupies the code-generation and FFI niche: a small command-line utility installed as `typeshare` for teams that want Rust-owned schemas to drive Swift, Kotlin, Scala, TypeScript, Go, or Python bindings.

### Project history

The public GitHub repository was created in September 2022 under the 1Password organization. Its README describes the project as a way to remove the manual work of keeping FFI-facing Rust types synchronized with equivalent forms in other languages, using serde-oriented Rust definitions and a `#[typeshare]` annotation model.

By the 1.x series the project was organized as several Rust crates, including `typeshare`, `typeshare-core`, `typeshare-annotation`, and `typeshare-cli`. The README points users to a dedicated Typeshare book and documents command-line generation into Kotlin, Swift, Scala, and TypeScript files, with Go and Python marked as experimental in the official README.

### Adoption history

Official public adoption evidence is mostly packaging and registry based rather than a broad ecosystem narrative. The input package facts list Homebrew and Nix packaging, while the upstream README advertises crates.io crates and the `cargo install typeshare-cli` path.

The project remained active after its initial publication: GitHub release metadata shows 2024 and 2025 1.x releases, including v1.13.4 published in December 2025.

### How it is used

A typical use is to mark Rust structs and enums with `#[typeshare]`, then run `typeshare ./my_rust_project --lang=typescript --output-file=...` or an equivalent target-language command. The generated files become the foreign-language side of a Rust-centered serialization or FFI boundary.

### Why package nerds care

Typeshare matters to package nerds because it turns a cross-language type-sync problem into an installable CLI workflow. It is especially relevant in Rust-heavy shops where package recipes, CI jobs, and generated artifacts need to keep mobile, web, and backend type definitions aligned without maintaining separate schema sources.

### Timeline

- 2022: Public GitHub repository created under 1Password.
- 2024: v1.11.0 and v1.12.0 releases published.
- 2025: v1.13.4 published on GitHub releases.

### Related projects

- The README positions Typeshare around Rust, serde, and FFI/code-generation workflows rather than as a general serialization framework. It is related in practice to Rust procedural-macro crates and schema/codegen tools used to share types across language boundaries.

### Sources

- <https://1password.github.io/typeshare>
- <https://api.github.com/repos/1Password/typeshare>
- <https://api.github.com/repos/1Password/typeshare/releases>
- <https://github.com/1Password/typeshare#readme>
- source_facts.package-manager


## Security Notes

broad file, network, media, or database tool signal.

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** typeshare
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Nix - typeshare: normalized package name match | nixpkgs package indexes: pkgs/by-name/ty/typeshare/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [rust](https://www.automicvault.com/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [quicktype](https://www.automicvault.com/pkg/brew/quicktype/) - Shares av.db curated category or tags: cli, code-generation, developer-tools, types.
- [autogen](https://www.automicvault.com/pkg/brew/autogen/) - Shares av.db curated category or tags: cli, code-generation, developer-tools.
- [cbindgen](https://www.automicvault.com/pkg/brew/cbindgen/) - Shares av.db curated category or tags: cli, code-generation, developer-tools, ffi, rust.
- [configen](https://www.automicvault.com/pkg/brew/configen/) - Shares av.db curated category or tags: cli, code-generation, developer-tools.
- [counterfeiter](https://www.automicvault.com/pkg/brew/counterfeiter/) - Shares av.db curated category or tags: cli, code-generation, developer-tools.
- [cproto](https://www.automicvault.com/pkg/brew/cproto/) - Shares av.db curated category or tags: cli, code-generation, developer-tools.
- [crcany](https://www.automicvault.com/pkg/brew/crcany/) - Shares av.db curated category or tags: cli, code-generation, developer-tools.
- [create-api](https://www.automicvault.com/pkg/brew/create-api/) - Shares av.db curated category or tags: cli, code-generation, developer-tools.
- [json2ts](https://www.automicvault.com/pkg/brew/json2ts/) - Local package facts share a topical domain. Shared terms: cli, code, code-generation, definitions, developer.

## Combined YAML source

View the package source record on GitHub. [combined/typeshare.yml](https://github.com/automic-vault/db/blob/main/combined/typeshare.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
