Open-source projects categorized as Code-Generator | Edit details

Top 23 Code-Generator Open-Source Projects

  • GitHub repo R.swift

    Strong typed, autocompleted resources like images, fonts and segues in Swift projects

    Project mention: Did you also know? In Xcode you can use the refactoring tool to wrap a literal string into a call to NSLocalizedString! Even better, you can assign a keyboard shortcut to make it even more efficient 🤓 | reddit.com/r/swift | 2020-12-23

    Same was posted on the /r/iOSProgramming post for this, but I'm definitely not going back to using the raw NSLocalizedString call or extensions after I started using R.swift. Type safety and auto complete for all your assets is a real win in my book.

  • GitHub repo SwiftGen

    The Swift code generator for your assets, storyboards, Localizable.strings, … — Get rid of all String-based APIs!

    Project mention: Bamboo Agent On Apple Silicon M1 Any Success Yet | reddit.com/r/atlassian | 2021-02-04
  • GitHub repo graphql-code-generator

    A tool for generating code based on a GraphQL schema and GraphQL operations (query/mutation/subscription), with flexible support for custom plugins.

    Project mention: Here's how to take a GraphQL schema and get typed queries & results out of the box | reddit.com/r/graphql | 2021-05-04

    Very cool. I've been using http://graphql-code-generator.com/ and I think it's the same sort of thing? I love tools like this.

  • GitHub repo GoSwagger

    Swagger 2.0 implementation for go

    Project mention: Code Generation | reddit.com/r/golang | 2021-04-10

    https://goswagger.io/ (makes swagger compatible API's from definitions or code)

  • GitHub repo jOOQ

    jOOQ is the best way to write SQL in Java

    Project mention: Windyquery: A non-blocking Python PostgreSQL query builder | news.ycombinator.com | 2021-05-10

    > Given that most query builders allow arbitrary parameters (such as table and column names), you can't actually ensure the query is correct at compile time, regardless of the type of language.

    JOOQ [0] does a great job of providing a type-safe query builder that can guarantee correct queries at compile-time. It indeed also supplies arbitrary strings for names and sql components which will break that guarantee, but apart from that you can extract your databases' schema into typed classes and use those to run your queries.

    I really like it, but it is definately not a replacement for an ORM.

    [0] https://github.com/jOOQ/jOOQ

  • GitHub repo JavaParser

    Java 1-15 Parser and Abstract Syntax Tree for Java, including preview features to Java 13

    Project mention: Bulk Refactoring of Java Code | reddit.com/r/java | 2021-01-11

    Depending on the type of refactorings needed, you may be able to use something like Java parser to read the code, refractor it, and write it out again.

  • GitHub repo autorest

    OpenAPI (f.k.a Swagger) Specification code generator. Supports C#, PowerShell, Go, Java, Node.js, TypeScript, Python, Ruby

    Project mention: Any way to generate Typescript code from API in Mac/OSX or Linux like NSwag Studio? | reddit.com/r/dotnet | 2021-03-21

    You can try autorest. I haven't used NSwag but I believe the two are similar. Also it looks like Nswag has a command line tool that you could use.

  • GitHub repo gotests

    Automatically generate Go test boilerplate from your source code.

    Project mention: ¿Como estructurar tu aplicación en Go? | dev.to | 2021-05-09
  • GitHub repo sqlc

    Generate type safe Go from SQL

    Project mention: Fighting boilerplate with code generation | dev.to | 2021-04-10
  • GitHub repo xo

    Command line tool to generate idiomatic Go code for SQL databases supporting PostgreSQL, MySQL, SQLite, Oracle, and Microsoft SQL Server (by xo)

    Project mention: Fighting boilerplate with code generation | dev.to | 2021-04-10
  • GitHub repo jennifer

    Jennifer is a code generator for Go

  • GitHub repo Speedment

    Speedment is a Stream ORM Java Toolkit and Runtime

  • GitHub repo Iconic

    :art: Auto-generated icon font library for iOS, watchOS and tvOS

  • GitHub repo graphql-zeus

    GraphQL client and GraphQL code generator with GraphQL autocomplete library generation ⚡⚡⚡ for browser,nodejs and react native

    Project mention: Question: Any tools for generating strongly-typed query and mutation builders? | reddit.com/r/graphql | 2021-04-16

    There's graphql zeus that has a type safe query builder. I haven't used it yet, but it looks promising

  • GitHub repo FreeBuilder

    Automatic generation of the Builder pattern for Java

  • GitHub repo freezed

    Code generation for immutable classes that has a simple syntax/API without compromising on the features.

    Project mention: How to deserialize a union type from JSON | reddit.com/r/dartlang | 2021-05-04

    I tried to follow the JSON section on the freezed pub dev page. I do not understand it though. It uses a Map which doesn't fit in here (I think), as the value I want to deserialize is either an array or a string.

  • GitHub repo flutter_gen

    The Flutter code generator for your assets, fonts, colors, … — Get rid of all String-based APIs.

    Project mention: FlutterGen: Good-bye Typos! | dev.to | 2020-12-08

    If you have any questions regarding this package, in this link you can browse the documentation and you can also check its source code in its repo from GitHub.

  • GitHub repo colfer

    binary serialization format

  • GitHub repo rust-embed

    Rust Macro which loads files into the rust binary at compile time during release and loads the file from the fs during dev.

    Project mention: Introduction to gRPC in Rust | dev.to | 2021-05-03

    Images of planets are included in the application binary at compile time using rust_embed crate (at the development time they are loaded from a file system).

  • GitHub repo sbt-buildinfo

    I know this because build.sbt knows this.

  • GitHub repo datamodel-code-generator

    Pydantic model generator for easy conversion of JSON, OpenAPI, JSON Schema, and YAML data sources.

    Project mention: What's the best libraries to build a REST API with Openapi compatibility | reddit.com/r/flask | 2021-05-17

    To save you some work, if you have already an OpenAPI specification at hand, you can use datamodel-code-generator to generate your Pydantic models from the spec.

  • GitHub repo SmartCode

    SmartCode = IDataSource -> IBuildTask -> IOutput => Build Everything!!!

  • GitHub repo jet

    Type safe SQL builder with code generation and automatic query result data mapping (by go-jet)

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). The latest post mention was on 2021-05-17.


What are some of the best open-source Code-Generator projects? This list will help you:

Project Stars
1 R.swift 8,026
2 SwiftGen 7,070
3 graphql-code-generator 6,852
4 GoSwagger 6,390
5 jOOQ 4,374
6 JavaParser 3,671
7 autorest 3,380
8 gotests 3,196
9 sqlc 3,108
10 xo 2,761
11 jennifer 2,014
12 Speedment 1,931
13 Iconic 1,556
14 graphql-zeus 1,107
15 FreeBuilder 775
16 freezed 727
17 flutter_gen 616
18 colfer 603
19 rust-embed 595
20 sbt-buildinfo 484
21 datamodel-code-generator 471
22 SmartCode 470
23 jet 398
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives