Skip to content

brqnko/bytekin

Repository files navigation

bytekin

License CI JitPack

A lightweight Java bytecode manipulation framework built on ASM.

Features

  • Simple API - Annotation-based bytecode transformation
  • Type-safe - No raw bytecode manipulation required
  • Flexible - Inject, invoke, redirect, and modify methods
  • Zero dependencies - Only requires ASM

Installation

Add JitPack repository to your build file:

repositories {
    maven { url 'https://jitpack.io' }
}

dependencies {
    implementation 'com.github.brqnko:bytekin:1.0-SNAPSHOT'
}

Quick Example

@Inject(
    target = @MethodTarget(
        owner = "com/example/MyClass",
        name = "myMethod",
        descriptor = "()V"
    ),
    at = @At(value = At.Position.HEAD)
)
public static void beforeMyMethod(CallbackInfo ci) {
    System.out.println("Method called!");
}

Documentation

Full Documentation | 日本語ドキュメント

License

Apache License 2.0 - See LICENSE for details.

About

bytekin is a small Java bytecode manipulation framework built in ASM

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages