Go Codegen

Open-source Go projects categorized as Codegen

Top 23 Go Codegen Projects

  1. gqlgen

    go generate based graphql server library

    Project mention: Go generate based GraphQL server library | news.ycombinator.com | 2025-11-21
  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. moq

    Interface mocking tool for go generate (by matryer)

  4. ogen

    OpenAPI v3 code generator for go

  5. genqlient

    a truly type-safe Go GraphQL client

    Project mention: GraphQL vs REST: 18 Claims Fact-Checked with Primary Sources (2026) | dev.to | 2026-04-17

    GraphQL Codegen (by The Guild) and tools like genqlient produce compile-time validated, fully typed client code. GraphQL.org's blog documents that operation-based codegen produces types specific to each query, which can be more precise than endpoint-level types because you get types matching exactly the fields you requested.

  6. vtprotobuf

    A Protocol Buffers compiler that generates optimized marshaling & unmarshaling Go code for ProtoBuf APIv2

  7. tygo

    Generate Typescript types from Golang source code

    Project mention: Goscript: Transpile Go to human-readable TypeScript | news.ycombinator.com | 2026-01-11
  8. oto

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

  9. uzi

    CLI for running large numbers of coding agents in parallel with git worktrees

  10. interfaces

    Code generation tools for Go. (by rjeczalik)

  11. ingest

    Parse files (e.g. code repos) and websites to clipboard or a file for ingestions by AI / LLMs

  12. kyaml2go

    K8s Go client code generator from Kubernetes resource yamls

  13. mus-go

    MUS format serializer for Go

    Project mention: MUS Serialization Format | dev.to | 2026-04-01

    mus: The core Go implementation.

  14. kessoku

    Next-generation google/wire with parallel dependency injection for Go

    Project mention: Show HN: Kessoku – Next-generation DI for Go with parallel provider execution | news.ycombinator.com | 2025-07-27
  15. options-gen

    Codegen for functional options in go projects

  16. sqlgen

    A tool to generate bun, gorm, sql, sqlx and xorm sql code. (by kesonan)

  17. gut

    Convert Golang structs to Typescript interfaces (by tompston)

  18. gomarvin

    Generate Go REST servers & http clients

  19. revgen

    Speed up go:generate by auto detecting code changes

  20. structuresmith

    Validate, Diff, Render - A powerful tool designed to automate the generation of project files using customizable templates.

  21. sqlc-gen-fsharp

    Sqlc plugin to generate F# code from SQL

  22. projectforge

    Project Forge helps you build applications with Go

  23. go-respec

    Generate OpenAPI 3 specifications for any Go web project via static analysis, with zero magic comments.

    Project mention: Show HN: Go-respec – Generate OpenAPI specs from Go code, no annotations needed | news.ycombinator.com | 2025-07-24
  24. cddlc

    WIP: Parser and Code Generator for the Concise Data Definition Language (CDDL - RFC 8610)

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Go Codegen discussion

Log in or Post with

Go Codegen related posts

  • Go generate based GraphQL server library

    1 project | news.ycombinator.com | 21 Nov 2025
  • Golang with google wire

    2 projects | dev.to | 13 Jun 2025
  • Show HN: Protobuf-go-lite: reflection-free protobuf for Go with JSON support

    3 projects | news.ycombinator.com | 8 Nov 2024
  • Navigating System Communication: A Comprehensive Overview

    4 projects | dev.to | 1 Aug 2024
  • GraphQL Types

    1 project | dev.to | 3 Jul 2024
  • @Autowired magic in SpringBoot

    1 project | dev.to | 16 Jun 2024
  • Show HN: Structuresmith – Generate Project Files and Templates for Consistency

    1 project | news.ycombinator.com | 10 Dec 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 17 Jun 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

What are some of the best open-source Codegen projects in Go? This list will help you:

# Project Stars
1 gqlgen 10,726
2 moq 2,201
3 ogen 2,085
4 genqlient 1,311
5 vtprotobuf 1,101
6 tygo 891
7 oto 879
8 uzi 579
9 interfaces 431
10 ingest 374
11 kyaml2go 283
12 mus-go 142
13 kessoku 135
14 options-gen 107
15 sqlgen 85
16 gut 75
17 gomarvin 58
18 revgen 43
19 structuresmith 36
20 sqlc-gen-fsharp 20
21 projectforge 18
22 go-respec 11
23 cddlc 11

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

Did you know that Go is
the 4th most popular programming language
based on number of references?