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 Codegen Open-Source Projects
-
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.
-
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.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
openapi-typescript-codegen
NodeJS library that generates Typescript or Javascript clients based on the OpenAPI specification
-
orval
orval is able to generate client with appropriate type-signatures (TypeScript) from any valid OpenAPI v3 or Swagger v2 specification, either in yaml or json formats. 🍺
-
vtprotobuf
A Protocol Buffers compiler that generates optimized marshaling & unmarshaling Go code for ProtoBuf APIv2
-
generator
Use your AsyncAPI definition to generate literally anything. Markdown documentation, Node.js code, HTML documentation, anything!
-
shortlink
Shortlink service (Microservice example) ⭐️ Star the repo if you like it! (by shortlink-org)
-
bootsharp
Compile C# solution into single-file ES module with auto-generated JavaScript bindings and type definitions
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Two other tools emerging in this category are SuperMaven and TabbyML, both use fast and secure LLM for code completion and recommendations.
Project mention: Borgo is a statically typed language that compiles to Go | news.ycombinator.com | 2024-04-30code generation is a mostly disjoint topic from DI. Granted, some solutions like https://github.com/google/wire use code generation, but you're exactly right about their pitfalls. If your dev environment doesn't have good support for generated code, it is a nightmare. If you can goto-definition the generated code, then it is suddenly feasible, but perhaps still a bad choice.
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: Who moved my error codes? Adding error types to your GoLang GraphQL Server | dev.to | 2023-06-25GraphQL’s spec, as it turns out, does not specify how servers should handle internal errors at all, leaving it entirely to the choice of the frameworks’ creators. Take for example our GoLang GraphQL framework of choice - gqlgen. It makes no distinction between intentional and unexpected errors: all errors are returned as-is to the client within the error message. Internal errors, which often contain sensitive information like network details and internal URIs, would leak to clients easily if not caught manually by the programmer.
Project mention: Insanity VS SpeziTemplateApplication - a user suggested alternative | libhunt.com/r/Sourcery | 2023-11-18
Project mention: TypeSpec: A New Language for API-Centric Development | news.ycombinator.com | 2024-04-29https://github.com/RicoSuter/NSwag
There is no need to be facetious solutions like these exist for many platforms and ecosystems out there.
With best regards.
Project mention: I made this AI programming assistant to generate diagrams for my code | /r/artificial | 2023-12-08Here's where you can try it out: https://useadrenaline.com
You can visualize how instructions are encoded with zydisinfo. Pass in your architecture and the hex bytes of the instructions and it’ll show all relevant info
https://github.com/zyantific/zydis/tree/master
https://www.hexacorn.com/blog/2023/09/27/zydisinfo-the-disas...
I’d also add that if you use Typescript with an OpenAPI client generator (https://github.com/ferdikoomen/openapi-typescript-codegen) it can immensely alleviate some of the biggest pain points of seperate backend and front-end. It always used to be a major pain in the ass with the amount of overhead an API change would incur - updating documentation, postman, constant communication between backend and front-end devs, etc. Now I just npm run generate, I see new API changes in my Git client and Typescript errors for code that needs updating.
Also, using a library like Tanstack Query or Rdtk Query can almost completely eliminate manual state management, and kinda makes the whole development experience feel almost like SSR.
Project mention: HonoJS: Small, simple, and ultrafast web framework for the Edges | news.ycombinator.com | 2024-04-15In cases where the client needs to stay separate, we have had a good experience with Orval[1] to generate a fully-typed @tanstack/query client from our OpenAPI spec.
[1] https://orval.dev/
Secondly, I have learned about LLVM, and I have learned about the Inkwell library on Rust (It's a New Kind of Wrapper for Exposing LLVM (Safely)). Has anyone used this library before? Is this a good practice? Is it suitable for my compiler? Can I write some optimization passes of my own using this library?
Project mention: vektra/mockery has fully released the "packages" feature! This blog explains what it is and how it works. | /r/golang | 2023-07-11
Project mention: I write HTTP services in Go after 13 years (Mat Ryer, 2024) | news.ycombinator.com | 2024-02-09https://github.com/ogen-go/ogen
Write openapi definition, it'll do routing, definition of structs, validation of JSON schemas, etc.
All I need to do is implement the service.
Validating an integer range for a querystring parameter is just too boring. And too easy to mistype when writing it manually.
Anyways, so far only been playing, so haven't found the bad parts yet.
Project mention: GitHub - Warashi/compgen: Compgen is a gqlgen plugin designed to simplify the generation of ComplexityRoot for gqlgen. | /r/golang | 2023-06-01The client support in particular is currently very awkward. For instance, there's this discussion around Hasura in the Khan/genqlient repo: https://github.com/Khan/genqlient/issues/272
The "most official" AsyncAPI generator linked from the AsyncAPI site will follow the references in the "allOf" structure to generate the subclasses of the Pet class. But it will ignore the "discriminator" logic and actually fail because it does know what to do with the "petType" attribute repeated in the derived types (e.g. StickInsect).
Project mention: tRPC – Move Fast and Break Nothing. End-to-end typesafe APIs made easy | news.ycombinator.com | 2023-08-12
More details: - https://github.com/shortlink-org/shortlink/tree/main/ops/argocd - https://github.com/shortlink-org/shortlink/tree/main/ops/gitlab
Codegen related posts
-
IBM Granite: A Family of Open Foundation Models for Code Intelligence
-
Google CodeGemma: Open Code Models Based on Gemma [pdf]
-
Show HN: Tabby back end in 20 Python lines (self-hosted AI coding assistant)
-
Exploring x86-64 Instruction Encoding
-
Show HN: Structuresmith – Generate Project Files and Templates for Consistency
-
I made this AI programming assistant to generate diagrams for my code
-
I made a programming assistant that can visualize your code with AI
-
A note from our sponsor - InfluxDB
www.influxdata.com | 10 May 2024
Index
What are some of the best open-source Codegen projects? This list will help you:
Project | Stars | |
---|---|---|
1 | tabby | 17,420 |
2 | wire | 12,368 |
3 | graphql-code-generator | 10,636 |
4 | gqlgen | 9,635 |
5 | Insanity | 7,544 |
6 | NSwag | 6,503 |
7 | rust-bindgen | 4,131 |
8 | adrenaline | 3,711 |
9 | zydis | 3,201 |
10 | openapi-typescript-codegen | 2,685 |
11 | orval | 2,297 |
12 | inkwell | 2,158 |
13 | moq | 1,771 |
14 | astring | 1,141 |
15 | ogen | 1,095 |
16 | genqlient | 985 |
17 | vtprotobuf | 819 |
18 | flapigen-rs | 756 |
19 | generator | 728 |
20 | oto | 726 |
21 | shortlink | 681 |
22 | bootsharp | 637 |
23 | yjit | 624 |
Sponsored