tygo
« Back to VersTracker
Description:
Generate Typescript types from Golang source code
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: typescript golang code-generation typesafety developer-tools
Install: brew install tygo
About:
Tygo is a command-line tool that parses Golang structs and generates corresponding TypeScript type definitions. It enables type-safe communication between Go backends and TypeScript frontends by automatically creating maintainable type files. This eliminates manual synchronization of data structures and reduces runtime errors in full-stack applications.
Key Features:
  • Automatic TypeScript type generation from Go structs
  • Support for nested structs and complex types
  • Configurable output formatting and naming conventions
  • Zero runtime dependencies for generated code
Use Cases:
  • Synchronizing API response types between Go backend and TypeScript frontend
  • Generating type definitions for shared data models in monorepos
  • Maintaining type safety in full-stack applications
Alternatives:
  • quicktype – Multi-language generator that supports more languages but is less specialized for Go-to-TypeScript workflows
  • go2ts – Similar purpose but with different configuration options and output styles
Version History
Detected Version Rev Change Commit
Sep 12, 2025 12:32am 0 VERSION_BUMP 9a949ae2
Nov 8, 2024 11:20pm 0 VERSION_BUMP 81ee6cdf
Sep 28, 2024 1:01pm 0 VERSION_BUMP 9aed19fb