@Nikky I started to work on a project called kRPC (similar to gRPC, but fully kotlin) that would scan kotlin interfaces and @Serializable data classes (instead of protobuf messages and services definitions) and generate multipaltform implementations of those interfaces using HTTP RPC calls behind the scene. Unfortunately I stopped working on that given that it's quite difficult to generate anything from common Kotlin code. AFAIK the only way to generate code is to either use java annotation processing (but then it requires your project to be a Kotlin/JVM project) or create a compiler plugin which is not a trivial task and for which the API is not documented or stable. I'm secretly hoping that JB will release something that could help us do that kind of metaprogramming soon 🙂