annotation-processor

Open-source projects categorized as annotation-processor
Language: + Java + Kotlin

Top 23 annotation-processor Open-Source Projects

  • MapStruct

    An annotation processor for generating type-safe bean mappers

  • Project mention: Is .NET just miles ahead or am I delusional? | news.ycombinator.com | 2024-04-13

    Currently using .NET and ASP.NET for the API of a project that I'm working on, overall it's a pretty lovely experience, especially with the JetBrains Rider as my IDE. Having worked with Java in the enterprise in the past, it feels like a more focused and sometimes more coherent experience (vs the more decentralized nature of Java), that now thankfully runs fine on Linux as well, don't even need to hope that Mono is good enough anymore.

    Entity Framework Core is great, the way how they fetch related data is straightforwards: https://learn.microsoft.com/en-us/ef/core/querying/related-d...

    I also really like the ability to use split queries, when needed: https://learn.microsoft.com/en-us/ef/core/querying/single-sp...

    You can even scaffold your entity mappings from an existing database and manage database migrations separately (which I feel is a must unless you want to pour hours upon hours into learning yet another JPA-like), it's nice when something like that exists in a given ecosystem: https://blog.jetbrains.com/dotnet/2022/01/31/entity-framewor...

    Some of the stuff in the ecosystem is also really nice, like using ActionBlocks from Dataflow for simple queues and task scheduling is very easy to get started with and pretty pleasant: https://learn.microsoft.com/en-us/dotnet/api/system.threadin...

    Honestly, most of the docs that I've come across are rather pleasant and there's plenty of code examples to be had and even LLMs have enough codebases out there to be trained on and give decent output, in addition to the regular autocomplete in the IDE.

    Even some third party stuff like CsvHelper is really well put together: https://joshclose.github.io/CsvHelper/getting-started/#insta...

    That said, I've had issues where trying to deserialize incoming JSON requests ([FromBody]) lead to the whole object being null, due to it not matching the fields 1:1 or violating some nullability constraint, however that happened without a clear error message or as much as a warning in the logs, which felt insane and wasn't very discoverable. Now I just use JObject as the parameter and deserialize at the top of the controller method.

    I've also run into some ecosystem issues where the OpenAPI codegen was a bit lacking and wouldn't actually generate code that works, but maybe that's because the spec was bad: https://openapi-generator.tech/docs/generators/csharp

    I could also not get AutoMapper (https://docs.automapper.org/en/stable/index.html) working satisfactorily, so for now I'm stuck writing mappers by hand with said autocomplete sometimes doing it for me. There were issues with the runtime being unable to register the mappers or something like that, it was a while ago. Overall it felt like the MapStruct library in Java did everything better: https://mapstruct.org/

    On the other hand, I haven't had any of the Spring Boot DI related headaches (needing @Lazy sometimes) with ASP.NET, things there seem way more straightforwards and you clearly define whether something should be a Singleton or Scoped and the rest... just gets out of your way and works.

    Sadly, there have been very hard to track down cases where I try to do a _dbContext.Add(someEntity) and then when I do a save with just the fields in that one entity changed, the performance absolutely seems to slow down to a crawl. Adding _dbContext.ChangeTracker.AutoDetectChangesEnabled = false seemed to help, but I am still not entirely sure what lead to that behavior, the temp directory on my Linux box also started filling up very rapidly, yet the logs had nothing of use, definitely seems like something I'd need to investigate properly.

    Overall, .NET and its ecosystem is pretty good in most cases. And .NET being used in gamedev is also cool, for those who care about that sort of thing, I wonder why jMonkeyEngine never really took off.

  • parceler

    :package: Android Parcelables made easy through code generation.

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

    Annotation processor to create immutable objects and builders. Feels like Guava's immutable collections but for regular value objects. JSON, Jackson, Gson, JAX-RS integrations included

  • Project mention: Unchecked Java: Say Goodbye to Checked Exceptions Forever | news.ycombinator.com | 2023-07-13

    This is every Lombok lover's favorite strawman argument I've run into.

    I've been coding in Java professionally for ~20 years. I can count with zero hands the number of times I've been burned by a getter or setter getting changed into something surprising.

    If you really need auto-generated getters/setters/builders - Immutables [1] is a library that does it using bog standard annotation processing rules that don't require hacking your build process.

    [1] https://github.com/immutables/immutables

  • Showkase

    🔦 Showkase is an annotation-processor based Android library that helps you organize, discover, search and visualize Jetpack Compose UI elements

  • Project mention: Do we have something similar to Airbnb Showkase for Swift/iOS ? | /r/swift | 2023-07-05

    Ref : https://github.com/airbnb/Showkase

  • Shortbread

    Android library that creates app shortcuts from annotations

  • Ktorfit

    HTTP client generator / KSP plugin for Kotlin Multiplatform (Android, iOS, Js, Jvm, Native) using KSP and Ktor clients inspired by Retrofit https://foso.github.io/Ktorfit

  • Project mention: Is Kotlin Multiplatform the right answer ? | /r/Kotlin | 2023-12-06

    If you like Retrofit, I'd recommend checking out Ktorfit which is similar for KMP. https://github.com/Foso/Ktorfit

  • kotshi

    An annotation processor that generates Moshi adapters from immutable Kotlin data classes.

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

    WorkOS logo
  • kotlin-compile-testing

    A library for testing Kotlin and Java annotation processors, compiler plugins and code generation

  • derive4j

    Java 8 annotation processor and framework for deriving algebraic data types constructors, pattern-matching, folds, optics and typeclasses.

  • awesome-annotation-processing

    A curated list of resources related to the Java annotation processing API (JSR 269)

  • Project mention: Monkey-patching in Java | dev.to | 2023-09-21

    The documentation could be less sparse. I found the following Awesome Java Annotation Processing. Here's a simplified class diagram to get you started:

  • Doma 2

    DAO oriented database mapping framework for Java 8+

  • pojobuilder

    A Java Code Generator for Pojo Builders

  • transfuse

    :syringe: Transfuse - A Dependency Injection and Integration framework for Google Android

  • jstachio

    Java type safe statically compiled mustache

  • Project mention: Full stack web development in a single Java file: An intro to Javalin and htmx | /r/java | 2023-07-12

    Anyway it was one of the reasons we (my company) went with Mustache and why I wrote JStachio.

  • Kripton Persistence Library

    A Java/Kotlin library for Android platform, to manage bean's persistence in SQLite, SharedPreferences, JSON, XML, Properties, Yaml, CBOR.

  • kson

    Gson TypeAdapter & Factory generator for Kotlin data classes

  • EasyAdapter

    Android Annotation Processing Library to generate your adapters only with Annotations on your model, support working with Kapt and KSP Processors

  • zerocell

    Simple, efficient Excel to POJO library for Java

  • hilt-binder

    An annotating processing library that automatically generates Dagger Hilt's `@Binds` methods.

  • avaje-http

    Controller generation for Javalin, Helidon SE.

  • Project mention: Avaje HTTP 2.0 Released | news.ycombinator.com | 2023-10-27
  • ColdStorage

    Lightweight data loading and caching library for android

  • javalin-openapi

    Annotation processor for compile-time OpenAPI & JsonSchema, with out-of-the-box support for Javalin 5.x, Swagger & ReDoc

  • elementary

    A suite of libraries that simplify creating and unit testing annotation processors. (by Pante)

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

annotation-processor related posts

Index

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

Project Stars
1 MapStruct 6,797
2 parceler 3,561
3 Immutables 3,365
4 Showkase 2,047
5 Shortbread 1,783
6 Ktorfit 1,364
7 kotshi 749
8 kotlin-compile-testing 631
9 derive4j 560
10 awesome-annotation-processing 443
11 Doma 2 413
12 pojobuilder 333
13 transfuse 219
14 jstachio 212
15 Kripton Persistence Library 119
16 kson 106
17 EasyAdapter 79
18 zerocell 78
19 hilt-binder 69
20 avaje-http 57
21 ColdStorage 46
22 javalin-openapi 40
23 elementary 36

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