Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more →
Top 23 Code-Generator Open-Source Projects
-
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.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
SwiftGen
The Swift code generator for your assets, storyboards, Localizable.strings, … — Get rid of all String-based APIs!
-
JavaParser
Java 1-17 Parser and Abstract Syntax Tree for Java with advanced analysis functionalities.
-
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.
-
autorest
OpenAPI (f.k.a Swagger) Specification code generator. Supports C#, PowerShell, Go, Java, Node.js, TypeScript, Python
-
xo
Command line tool to generate idiomatic Go code for SQL databases supporting PostgreSQL, MySQL, SQLite, Oracle, and Microsoft SQL Server (by xo)
-
datamodel-code-generator
Pydantic model and dataclasses.dataclass generator for easy conversion of JSON, OpenAPI, JSON Schema, and YAML data sources.
-
freezed
Code generation for immutable classes that has a simple syntax/API without compromising on the features.
-
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.
-
flutter_gen
The Flutter code generator for your assets, fonts, colors, … — Get rid of all String-based APIs.
-
python-betterproto
Clean, modern, Python 3.6+ code generator & library for Protobuf 3 and async gRPC
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
"Is there a way to get sqlc to use pointers for nullable columns instead of the sql.Null types?"
Project mention: Integrating GraphQL Codegen with Storyblok: Step-by-Step Guide | dev.to | 2024-01-15The @graphql-codegen library is a bridge between your GraphQL schema and the actual code you write. It automates the generation of boilerplate code, ensuring that your data fetching layer is always up to date with your content structure.
Project mention: Create, Push, and Present Any View Controller in 1 LOC using Metaprogramming | dev.to | 2023-06-18It is important to say that there is an elegant solution to the resource consistency problem that we haven’t adapted yet. Instead of testing raw values of UIStoryboard.Name cases, we could just generate the UIStoryboard.Name enum. Please refer to SwiftGen for the details.
Project mention: ORMs are nice but they are the wrong abstraction | news.ycombinator.com | 2024-02-01
A huge time-saver for me when generating table-driven test boilerplate in Go has been using gotests[0] to generate the template.
If you use VSCode with the Go extension it's already available there as a command "Go: Generate Unit Tests for Function/Package".
Project mention: Open-sourcing SQX, a way to build flexible database models in Go | news.ycombinator.com | 2023-09-02i like xo's approach https://github.com/xo/xo but it is as is. I would love if something similar comes along that is used by db practititoners that is actively used and supported.
We have a repo/library called fasten-sources which is made up of mostly generated code (using dave/jennifer)
Project mention: Datamodel-code-generator: Pydantic model/dataclass from OpenAPI, JSON, YAML | news.ycombinator.com | 2023-11-16
Project mention: Open-sourcing SQX, a way to build flexible database models in Go | news.ycombinator.com | 2023-09-02We are really happy using jet. It lets you write type safe SQL and can read the results into structs- including joins into slice fields.
Project mention: Bashly: Command line application to generate feature-rich bash CLI tools | news.ycombinator.com | 2024-02-20
There is the `sealed` class modifier which allows for exhaustive matching on possible types: https://dart.dev/language/class-modifiers#sealed
There's also a package called freezed which offers similar utility (you might already be familiar with this seeing as you mentioned pattern matching): https://pub.dev/packages/freezed
I recall there being a reason unions aren't generally implemented, though I'm not sure where I read it. It was to do with union types being unnecessarily complex for the compiler and the code they tend to produce, at no real benefit to the programmer or the resulting program. Go's lack of unions is essentially based around the same reasoning.
I agree! Much of this work was done as part of the overarching TACO project (https://github.com/tensor-compiler/taco), in an attempt to distribute sparse tensor computations (https://rohany.github.io/publications/sc2022-spdistal.pdf). MLIR recently (~mid 2022) began implementing the ideas from TACO into a "sparse tensor" dialect, so perhaps some of these ideas could make it into there. I'm working with MLIR these days, and if I could re-do the project now I would probably utilize and targetb the MLIR linalg infrastructure!
Code-Generator related posts
- Ask HN: Are SQL developers generally familiar with JSON, VSCode and Docker?
- Bashly: Command line application to generate feature-rich bash CLI tools
- Teaching D from Scratch: Is it a viable first language?
- OpenAI: Prompt Engineering
- C++ Show and Tell - December 2023
- Ask HN: What's the most compelling AI prompt result you've seen?
- How do you provide documentation for your REST APIs?
-
A note from our sponsor - InfluxDB
www.influxdata.com | 19 Apr 2024
Index
What are some of the best open-source Code-Generator projects? This list will help you:
Project | Stars | |
---|---|---|
1 | sqlc | 10,709 |
2 | graphql-code-generator | 10,605 |
3 | R.swift | 9,394 |
4 | GoSwagger | 9,260 |
5 | SwiftGen | 9,084 |
6 | jOOQ | 5,874 |
7 | JavaParser | 5,211 |
8 | gotests | 4,847 |
9 | autorest | 4,476 |
10 | xo | 3,559 |
11 | jennifer | 3,175 |
12 | datamodel-code-generator | 2,281 |
13 | Speedment | 2,078 |
14 | jet | 2,010 |
15 | php-generator | 2,009 |
16 | bashly | 1,918 |
17 | freezed | 1,805 |
18 | rust-embed | 1,495 |
19 | flutter_gen | 1,392 |
20 | python-betterproto | 1,369 |
21 | argbash | 1,353 |
22 | taco | 1,198 |
23 | astring | 1,133 |