{"id":16608413,"url":"https://github.com/curve/lime","last_synced_at":"2026-03-06T20:02:16.447Z","repository":{"id":37043773,"uuid":"406885621","full_name":"Curve/lime","owner":"Curve","description":"🍋 A cross-platform modding library","archived":false,"fork":false,"pushed_at":"2024-07-31T15:20:16.000Z","size":916,"stargazers_count":17,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-25T04:55:41.056Z","etag":null,"topics":["cpp","cpp-library","cpp20","cpp20-library","cross-platform","detours","game-hacking","hooking","hooking-library","memory-hacking","modding","modding-framework","modding-library"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Curve.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-15T18:34:43.000Z","updated_at":"2025-10-11T12:27:31.000Z","dependencies_parsed_at":"2023-12-03T12:31:02.105Z","dependency_job_id":"93977eec-afcd-4fb4-977f-bb1e9f3e4b27","html_url":"https://github.com/Curve/lime","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/Curve/lime","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Curve%2Flime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Curve%2Flime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Curve%2Flime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Curve%2Flime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Curve","download_url":"https://codeload.github.com/Curve/lime/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Curve%2Flime/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30195541,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"ssl_error","status_checked_at":"2026-03-06T18:57:34.882Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cpp","cpp-library","cpp20","cpp20-library","cross-platform","detours","game-hacking","hooking","hooking-library","memory-hacking","modding","modding-framework","modding-library"],"created_at":"2024-10-12T01:26:07.109Z","updated_at":"2026-03-06T20:02:16.428Z","avatar_url":"https://github.com/Curve.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/lime.svg\" width=\"400\"\u003e\n\u003c/p\u003e\n\n## 👋 Introduction\nLime is a *cross-platform* library that is focused on game modding and tries to provide you with useful features for your journey.\n\n## 🗒️ Features\n- Detours\n  - x86/x86-64\n  - Lambda support\n  - (Cross-Platform) Calling Convention support _(for lambdas!)_\n- Instruction\n  - Get next / prev instruction\n  - Get immediates, displacement, size, mnemonic\n  - Calculate absolute target _(follow relative instructions...)_\n- Memory Pages\n  - Allocate pages\n    - Anywhere\n    - Exactly at specified address\n    - In ±2GB range of specified address\n  - Read / Write / Restore protection\n- Module\n  - Iterate Loaded Modules\n  - Iterate Symbols\n  - Load Modules\n- Address\n  - Read / Write Data\n- Signature Scanner\n  - Supports Traditional \u0026 IDA Signatures\n- Cross-Platform Entrypoint\n- _[MinGW]_ Proxy-DLL Generation\n\n\u003e [!NOTE]  \n\u003e Lime follows `RAII` so you won't have to care about manually cleaning anything up (i.e. when allocating a page).\n\n## ⚙️ Configuration\n\n### Static Entrypoint\n```cmake\nset(lime_static_entrypoint ON)\n```\n\n\u003e Default is: `OFF`\n\nUse a platform-independent method for the entrypoint implementation.  \nYou do not need to enable this to make use of the cross-platform entrypoint!\n\n### VirtualAlloc2\n```cmake\nset(lime_no_alloc2 ON)\n```\n\n\u003e Default is: `OFF`\n\nCan be used to disable the usage of `VirtualAlloc2`.  \n\n~~This should be used for compatibility with wine as it currently does not support the `LowestStartingAddress` requirement.~~  \nShould work since wine 8.11 🎉\n\n# 📦 Installation\n\n* Using [CPM](https://github.com/cpm-cmake/CPM.cmake)\n  ```cmake\n  CPMFindPackage(\n    NAME           lime\n    VERSION        5.0\n    GIT_REPOSITORY \"https://github.com/Curve/lime\"\n  )\n  ```\n\n* Using FetchContent\n  ```cmake\n  include(FetchContent)\n\n  FetchContent_Declare(lime GIT_REPOSITORY \"https://github.com/Curve/lime\" GIT_TAG v5.0)\n  FetchContent_MakeAvailable(lime)\n\n  target_link_libraries(\u003ctarget\u003e cr::lime)\n  ```\n\n## 📖 Examples\n\nhttps://github.com/Curve/lime/blob/7de073bd4736900193f6af5c543a3cf62e6f1a73/tests/hook.test.cpp#L46-L52\nhttps://github.com/Curve/lime/blob/9ee66d3cc9e8976d5d8a40856d7ee5a09d32c415/tests/hook.test.cpp#L44-L52\n\n\u003e For more examples see [tests](tests/)\n\n## 🌐 Who's using Lime\n\n\u003cdiv align=\"center\"\u003e\n\u003cbr/\u003e\n\n\u003cimg src=\"https://raw.githubusercontent.com/simplytest/profuis-patch/master/data/logo.svg\" width=\"80\" /\u003e\n\n[profuis-patch](https://github.com/simplytest/profuis-patch)\n\n\u003c/div\u003e\n\n\u003e [Extend the list!](https://github.com/Curve/lime/issues/new)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurve%2Flime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcurve%2Flime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurve%2Flime/lists"}