avaje-inject
openapi-generator
avaje-inject | openapi-generator | |
---|---|---|
19 | 257 | |
276 | 24,676 | |
1.1% | 1.2% | |
9.4 | 9.9 | |
8 days ago | 7 days ago | |
Java | Java | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
avaje-inject
- Apt-based dependency injection for server-side developers
-
Avaje Inject - Microservice Focused DI via Annotation Processing
Avaje Inject has quickly become one of my favorite libraries. Inject is basically like Dagger if Dagger was focused on server side instead of Android. It's a tiny lib (~76kb) that uses the power of annotation processing to generate DI classes. Recently I've been using it for AWS lambdas and it works pretty great.
-
I wrote a simple, compile-time dependency injection framework
https://avaje.io/inject/ - Implements JSR-330 and JSR-250
-
Dependency injection frameworks
Have you tried out Avaje inject? It's currently my favorite DI lib.
-
Java OSS with best code quality you’ve ever seen?
Been building a web service with avaje inject and avaje http lately. It has a very spring-like feel for a DI lib, (Lifecycles, Test annotations) but the libs are tiny and totally reflection free through codegen.
-
Favorite hidden gem library?
Avaje is pretty cool, it's a compact DI library based on APT. https://github.com/avaje/avaje-inject
-
Why is Spring so slow in TechEmpower benchmark?
Like avaje inject ? DI as source code generation done at build time?
-
Dirk: a new light-weight system for dependency injection
Just to say, I also created a DI library called avaje-inject - https://avaje.io/inject/ ... which uses Java annotation processing to do DI as mostly source code generation. So the runtime dependency is ~ 67Kb. It also supports AOP aspects via source code gen which I think is kind of cool - you can have your own aspects like `@Retry` etc and it's actually done using source code generation.
-
Java SQL code generator. SQL and OOP united finally.
I am a bit fan of using annotation processing (source code generation) to simplify things - DI https://avaje.io/inject/ , JSON binding (https://github.com/avaje/avaje-jsonb) and rest servers and clients (https://avaje.io/http).
-
What is your experience with GraalVM Native?
Dagger2 and avaje-inject are other options (DI as source code generation via annotation processing). https://avaje.io/inject/
openapi-generator
-
Always Up-to-Date API Docs Are Real (And No, It’s Not AI)
Generate TypeScript clients automatically
-
Type safe web stack with Rust and TypeScript
> Ideally I'd like to be able to write types in typescript, and write python types, then verify that the types are compatible (not identical)
Have a look at https://fastapi.tiangolo.com/
FastAPI allows you to define your types in Python using Pydantic for stronger type guarantees. FastAPI also generates an OpenAPI.json file for your backend and then you can feed this OpenAPI.json document into https://github.com/OpenAPITools/openapi-generator to generate a typescript library that contains all the types. Then you don't need to verify your types, because the typescript types will be directly generated from your Python types. The generated typescript library also contains methods for each of your REST endpoints, so that you don't have to think about network requests.
-
How and Why to Use Patches
Patches are also useful if we're making manual modifications to any codebase that is being auto-generated, i.e. if we're using openapi-generator off of an OpenAPI spec to create clients and scaffolded server codebases. We would want to maintain the patch as a way to ensure that subsequent re-generations of the code don't wipe out any manual changes we have to make in-between.
-
How To Introduce a New API Quickly Using Micronaut
The beta version was able to generate the expected Quote model object, but I ran into issues trying to generate an interface or abstract class that my controllers could extend. So I decided to create an issue in the openapi-generator library (link for those who are interested in the details) and pivot toward another approach.
-
Revolutionize Your API Development: Unleash the True Power of OpenAPI Generator!
Step 1: Locate the Right Template For Spring-based projects, navigate to: JavaSpring/ Key templates to modify: model.mustache → Handles imports pojo.mustache → Defines annotation
-
Programming in D: Tutorial and Reference
It would be great if D supported something like OpenAPI generator https://github.com/OpenAPITools/openapi-generator
Maybe it exists and I am just ignorant but it doesn't seem to be in the list of supported languages.
-
API-First Development in Scala
various openapi-generator plugins
-
Generate JAVA code from OpenAPI specification
OpenAPI Generator Gradle Plugin
-
Show HN: FastOpenAPI – automated docs for many Python frameworks
I'm also really happy with spec first. We're using openapi-generator[1] to generate types from a yaml schema (inverting the more standard approach of generating the yaml) in our Typescript (mostly Nest.js) backends, and export those types as packages for use in our frontends.
[1] https://github.com/OpenAPITools/openapi-generator
-
openapi-generator VS lapidary-render - a user suggested alternative
2 projects | 16 Mar 2025
What are some alternatives?
JayWire - JayWire Dependency Injection
NSwag - The Swagger/OpenAPI toolchain for .NET, ASP.NET Core and TypeScript.
znai - Build functional, maintainable, beautiful User Guides with markdown and Znai plugins. Instant pages navigation. Local search. Multiple integrations to work with Python, Java, C++, OpenAPI, etc. Transform "getting started" sections into slideshow for your workshops. Manage multiple documentations with self-deployed znai hub.
kiota - OpenAPI based HTTP Client code generator
moditect - Tooling for the Java Module System
swagger-petstore - swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.