Java Code Generation

Open-source Java projects categorized as Code Generation

Top 23 Java Code Generation Projects

Code Generation
  1. JavaParser

    Java 1-25 Parser and Abstract Syntax Tree for Java with advanced analysis functionalities.

    Project mention: Onboarding Your AI Pair Programmer: From Spec-Driven Development to Kiro Powers | dev.to | 2026-07-11

    We (Kiro and me) developed this approach while contributing to JavaParser, a 6,000+ star open source project with strict architectural standards. After receiving maintainer feedback on our first PR that highlighted 8 code quality issues (not bugs — the code worked, but it bypassed project abstractions), we realized: the AI needed to be onboarded properly.

  2. SaaSHub

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

    SaaSHub logo
  3. parceler

    :package: Android Parcelables made easy through code generation.

  4. Spoon

    Spoon is a metaprogramming library to analyze and transform Java source code. :spoon: is made with :heart:, :beers: and :sparkles:. It parses source files to build a well-designed AST with powerful analysis and transformation API.

    Project mention: Code generation for algorithms in Java | dev.to | 2026-02-24

    Spoon is a heavier and more powerful framework that helps read, modify, and create Java code. It's powerful enough that we built our Java static analyzer on it. It may be an overkill for our task, but it's worth mentioning.

  5. Shortbread

    Android library that creates app shortcuts from annotations

  6. ActiveJ

    ActiveJ is an alternative Java platform built from the ground up. ActiveJ redefines core, web and high-load programming in Java, providing simplicity, maximum performance and scalability

  7. colfer

    binary serialization format

  8. android-contentprovider-generator

    A tool to generate Android ContentProviders.

  9. pojobuilder

    A Java Code Generator for Pojo Builders

  10. ContentProviderCodeGenerator

    A code generator to create Android ContentProvider

  11. ParcelablePlease

    Annotation Processor for generating Parcelable code

  12. RoboCoP

    Pure Java code generation tool for generating a fully functional ContentProvider for Android.

  13. Telosys

    Telosys Command Line Interface - Code Generator for any language with any framework

  14. zserio

    zero sugar, zero fat, zero serialization overhead

  15. magic-bean

    A very basic library which will generate getters and setters.

  16. avaje-http

    Controller generation for Javalin, Jex, and Helidon SE

  17. Maker

    Cojen/Maker is a lightweight, full-featured, low-level dynamic Java class generator designed for ease of use.

  18. sugarhaskell

    Library-based Language Extensibility

  19. excalibase-graphql

    The Excalibase API engine: GraphQL and REST generated from your database schema, each GraphQL request compiled to one SQL query, with per-role permissions.

    Project mention: I'm building an open-source platform for your database, API, auth and apps | dev.to | 2026-10-17

    The engine is open source under Apache 2.0: github.com/excalibase/excalibase-graphql

  20. fling

    A fluent API generator (by OriRoth)

  21. 1. AutoProxy

    Annotation Processing Library. Generates proxy class on top of interface/abstract class, that allows to intercept calls. Also known as a design pattern: proxy, delegate, interceptor.

  22. jSQL-Gen

    Java SQL (JDBC) code generator with GUI. 0% boilerplate + compile-safe SQL + powerful API.

  23. MicrostarterCli

    A Simple tool that generates Micronaut Components

  24. JavaForger

    Generate java source code based on existing classes using templates

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

Java Code Generation discussion

Log in or Post with

Java Code Generation related posts

  • “Real Developers Test in Production.” But Should They?

    4 projects | dev.to | 22 Oct 2026
  • MapStruct vs Immuto: Where the Records Gap Actually Is

    1 project | dev.to | 5 Jul 2026
  • OpenAPI generators break generic API responses

    1 project | news.ycombinator.com | 30 Mar 2026
  • Code generation for algorithms in Java

    2 projects | dev.to | 24 Feb 2026
  • 🚀 Spring Boot + OpenAPI Generator: Type-Safe Generic API Clients Without Boilerplate

    1 project | dev.to | 22 Sep 2025
  • Propify: Type-Safe Configuration and Internationalization for Java Applications

    3 projects | dev.to | 23 Jun 2025
  • AspectJ VS Metalama - a user suggested alternative

    2 projects | 7 Dec 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 11 Nov 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

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

# Project Stars
1 JavaParser 6,175
2 parceler 3,524
3 Spoon 1,963
4 Shortbread 1,758
5 ActiveJ 998
6 colfer 760
7 android-contentprovider-generator 614
8 pojobuilder 335
9 ContentProviderCodeGenerator 290
10 ParcelablePlease 261
11 RoboCoP 247
12 Telosys 192
13 zserio 153
14 magic-bean 102
15 avaje-http 99
16 Maker 73
17 sugarhaskell 40
18 excalibase-graphql 33
19 fling 27
20 1. AutoProxy 22
21 jSQL-Gen 21
22 MicrostarterCli 16
23 JavaForger 13

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