Codegen

Open-source projects categorized as Codegen

Top 23 Codegen Open-Source Projects

  • tabby

    Self-hosted AI coding assistant

  • Project mention: 17 Best Developer Productivity Tools to Try | dev.to | 2024-05-10

    Two other tools emerging in this category are SuperMaven and TabbyML, both use fast and secure LLM for code completion and recommendations.

  • wire

    Compile-time Dependency Injection for Go

  • Project mention: Borgo is a statically typed language that compiles to Go | news.ycombinator.com | 2024-04-30

    code 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.

  • 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.

    InfluxDB logo
  • 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: Integrating GraphQL Codegen with Storyblok: Step-by-Step Guide | dev.to | 2024-01-15

    The @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.

  • gqlgen

    go generate based graphql server library

  • Project mention: Who moved my error codes? Adding error types to your GoLang GraphQL Server | dev.to | 2023-06-25

    GraphQL’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.

  • Insanity

    Meta-programming for Swift, stop writing boilerplate code.

  • Project mention: Insanity VS SpeziTemplateApplication - a user suggested alternative | libhunt.com/r/Sourcery | 2023-11-18
  • NSwag

    The Swagger/OpenAPI toolchain for .NET, ASP.NET Core and TypeScript.

  • Project mention: TypeSpec: A New Language for API-Centric Development | news.ycombinator.com | 2024-04-29

    https://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.

  • rust-bindgen

    Automatically generates Rust FFI bindings to C (and some C++) libraries.

  • Project mention: Rust Bindgen | news.ycombinator.com | 2023-09-18
  • SaaSHub

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

    SaaSHub logo
  • adrenaline

    Instant answers to any programming question

  • Project mention: I made this AI programming assistant to generate diagrams for my code | /r/artificial | 2023-12-08

    Here's where you can try it out: https://useadrenaline.com

  • zydis

    Fast and lightweight x86/x86-64 disassembler and code generation library

  • Project mention: Exploring x86-64 Instruction Encoding | news.ycombinator.com | 2024-01-07

    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...

  • openapi-typescript-codegen

    NodeJS library that generates Typescript or Javascript clients based on the OpenAPI specification

  • Project mention: Django 5.0 Is Released | news.ycombinator.com | 2023-12-04

    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.

  • 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. 🍺

  • Project mention: HonoJS: Small, simple, and ultrafast web framework for the Edges | news.ycombinator.com | 2024-04-15

    In 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/

  • inkwell

    It's a New Kind of Wrapper for Exposing LLVM (Safely)

  • Project mention: Compiler Optimization Learning Suggestions | /r/Compilers | 2023-08-04

    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?

  • moq

    Interface mocking tool for go generate (by matryer)

  • 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
  • astring

    🌳 Tiny and fast JavaScript code generator from an ESTree-compliant AST.

  • ogen

    OpenAPI v3 code generator for go

  • Project mention: I write HTTP services in Go after 13 years (Mat Ryer, 2024) | news.ycombinator.com | 2024-02-09

    https://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.

  • genqlient

    a truly type-safe Go GraphQL client

  • Project mention: GitHub - Warashi/compgen: Compgen is a gqlgen plugin designed to simplify the generation of ComplexityRoot for gqlgen. | /r/golang | 2023-06-01

    The 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

  • vtprotobuf

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

  • flapigen-rs

    Tool for connecting programs or libraries written in Rust with other languages

  • generator

    Use your AsyncAPI definition to generate literally anything. Markdown documentation, Node.js code, HTML documentation, anything!

  • Project mention: AsyncAPI: a practical look | dev.to | 2024-05-03

    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).

  • oto

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

  • Project mention: tRPC – Move Fast and Break Nothing. End-to-end typesafe APIs made easy | news.ycombinator.com | 2023-08-12
    Project mention: Setting up ArgoCD from scratch | /r/ArgoCD | 2023-05-23

    More details: - https://github.com/shortlink-org/shortlink/tree/main/ops/argocd - https://github.com/shortlink-org/shortlink/tree/main/ops/gitlab

  • bootsharp

    Compile C# solution into single-file ES module with auto-generated JavaScript bindings and type definitions

  • yjit

    Optimizing JIT compiler built inside CRuby

  • SaaSHub

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

    SaaSHub logo
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).

Codegen related posts

  • IBM Granite: A Family of Open Foundation Models for Code Intelligence

    3 projects | news.ycombinator.com | 7 May 2024
  • Google CodeGemma: Open Code Models Based on Gemma [pdf]

    4 projects | news.ycombinator.com | 9 Apr 2024
  • Show HN: Tabby back end in 20 Python lines (self-hosted AI coding assistant)

    2 projects | news.ycombinator.com | 29 Jan 2024
  • Exploring x86-64 Instruction Encoding

    1 project | news.ycombinator.com | 7 Jan 2024
  • Show HN: Structuresmith – Generate Project Files and Templates for Consistency

    1 project | news.ycombinator.com | 10 Dec 2023
  • I made this AI programming assistant to generate diagrams for my code

    1 project | /r/artificial | 8 Dec 2023
  • I made a programming assistant that can visualize your code with AI

    1 project | /r/reactjs | 8 Dec 2023
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 10 May 2024
    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 →

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
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com