Generate types for TS

This page summarizes the projects mentioned and recommended in the original post on /r/golang

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • typescriptify-golang-structs

    A Golang struct to TypeScript class/interface converter

  • I've used https://github.com/tkrajina/typescriptify-golang-structs and it's worked for me so far, relatively simple so you can be up in minutes.

  • tygo

    Generate Typescript types from Golang source code

  • I use https://github.com/gzuidhof/tygo for generating my TS types directly from go structs.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • htmx

    </> htmx - high power tools for HTML

  • However, I recently moved off the svelte stack onto something a bit more novel: HTMX and Hyperscript. It has been absolutely life changing, through and through. By using both, everything I do is in Go, and some very easy to understand Hyperscript. No more node, no more NPM madness, etc. I'm working 10x faster, and writing almost everything in Go -- you don't need types between languages if all you use is one language.

  • Wails

    Create beautiful applications using Go

  • The wails project does this when. You can check it out here https://github.com/wailsapp/wails/blob/master/v2/internal/typescriptify/typescriptify.go for inspection.

  • goa

    🌟 Goa: Elevate Go API development! 🚀 Streamlined design, automatic code generation, and seamless HTTP/gRPC support. ✨

  • oto

    Go driven rpc code generation tool for right now. (by pacedotdev)

  • You should check out https://github.com/pacedotdev/oto.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts