{"id":13760809,"url":"https://github.com/Revxrsal/Tuna-Bytes","last_synced_at":"2025-05-10T11:31:56.516Z","repository":{"id":40577651,"uuid":"386029854","full_name":"Revxrsal/Tuna-Bytes","owner":"Revxrsal","description":"An all-purpose mixins framework for Java bytecode manipulation at runtime, targeted at those with minimal understanding of the bytecode structure.","archived":false,"fork":false,"pushed_at":"2022-04-26T02:48:58.000Z","size":95,"stargazers_count":24,"open_issues_count":1,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-11T01:25:23.917Z","etag":null,"topics":["bytecode","bytecode-manipulation","classloader","java","mixins"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Revxrsal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-14T17:55:03.000Z","updated_at":"2024-10-30T16:08:06.000Z","dependencies_parsed_at":"2022-08-09T23:40:30.648Z","dependency_job_id":null,"html_url":"https://github.com/Revxrsal/Tuna-Bytes","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Revxrsal%2FTuna-Bytes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Revxrsal%2FTuna-Bytes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Revxrsal%2FTuna-Bytes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Revxrsal%2FTuna-Bytes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Revxrsal","download_url":"https://codeload.github.com/Revxrsal/Tuna-Bytes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224957834,"owners_count":17398493,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bytecode","bytecode-manipulation","classloader","java","mixins"],"created_at":"2024-08-03T13:01:22.581Z","updated_at":"2024-11-16T18:31:33.849Z","avatar_url":"https://github.com/Revxrsal.png","language":"Java","funding_links":[],"categories":["Java"],"sub_categories":[],"readme":"[![](https://jitpack.io/v/ReflxctionDev/Tuna-Bytes.svg)](https://jitpack.io/#ReflxctionDev/Tuna-Bytes)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\n# Tuna Bytes\n![A tuna byte :)](https://i.imgur.com/15VLkMI.jpg)\nTuna-bytes is an all-purpose powerful class and bytecode manipulation mixins for Java, which is intended at those with minimal understanding of the Java bytecode structure.\n\n## Features\n- Full support for the notorious Java 9+ versions, as well as Java 8.\n- Does not require access to the source code of classes, and works well even on third-party resources.\n- Does not require any knowledge of the Java bytecode.\n- Requires zero overhead to get started. Just add Tuna-Bytes as a dependency and as an annotation processor, and Tuna-Bytes will handle the rest.\n- Does not require any additional Java execution arguments, like what Java agents do.\n\n## Index\nCheck the [wiki](https://github.com/ReflxctionDev/Tuna-Bytes/wiki) for a full overview on the library.\n1. [Maven setup](https://github.com/ReflxctionDev/Tuna-Bytes/wiki/Maven-Setup)\n2. [Gradle setup](https://github.com/ReflxctionDev/Tuna-Bytes/wiki/Gradle-Setup)\n3. [Getting started](https://github.com/ReflxctionDev/Tuna-Bytes/wiki/Getting-started)\n4. [**Example**: Overwrite a method](https://github.com/ReflxctionDev/Tuna-Bytes/wiki/Overwrite)\n5. [**Example**: Inject into a method](https://github.com/ReflxctionDev/Tuna-Bytes/wiki/Injecting)\n6. [**Example**: Create accessors for inaccessible fields and methods](https://github.com/ReflxctionDev/Tuna-Bytes/wiki/Accessors)\n7. [**Example**: Mirroring a field or a method](https://github.com/ReflxctionDev/Tuna-Bytes/wiki/Mirroring)\n\n# Drawbacks\nJust like any other bytecode manipulation library, **manipulating a class after is has been loaded is not possible** without things like instrumentation, agents or such. Tuna-bytes assumes that any class it is about to modify has not been loaded, and will otherwise throw an exception. To suppress `Class XX has already been loaded` exceptions, use `MixinsBootstrap.init(true)`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRevxrsal%2FTuna-Bytes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRevxrsal%2FTuna-Bytes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRevxrsal%2FTuna-Bytes/lists"}