{"id":15722421,"url":"https://github.com/defold/extension-prometheus","last_synced_at":"2025-10-20T04:31:40.950Z","repository":{"id":142142986,"uuid":"481121681","full_name":"defold/extension-prometheus","owner":"defold","description":"Lua obfuscation using Prometheus","archived":false,"fork":false,"pushed_at":"2024-12-29T17:16:26.000Z","size":257,"stargazers_count":22,"open_issues_count":2,"forks_count":14,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-01-30T15:25:04.212Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","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/defold.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":"2022-04-13T07:48:17.000Z","updated_at":"2025-01-19T05:28:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"cdb5012d-b47c-4d7b-9941-65a460615c0a","html_url":"https://github.com/defold/extension-prometheus","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defold%2Fextension-prometheus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defold%2Fextension-prometheus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defold%2Fextension-prometheus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defold%2Fextension-prometheus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/defold","download_url":"https://codeload.github.com/defold/extension-prometheus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237267973,"owners_count":19282320,"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":[],"created_at":"2024-10-03T22:07:33.540Z","updated_at":"2025-10-20T04:31:40.490Z","avatar_url":"https://github.com/defold.png","language":"Java","funding_links":[],"categories":["Libraries"],"sub_categories":["Programming Language"],"readme":"# extension-prometheus\nLua obfuscation using [Prometheus](https://github.com/levno-710/Prometheus). This extension hooks into the [Lua builder plugin system in bob](https://github.com/defold/defold/blob/dev/com.dynamo.cr/com.dynamo.cr.bob/src/com/dynamo/bob/pipeline/LuaBuilder.java#L243-L252).\n\n## Installation\nTo use this library in your Defold project you need to [make a fork of this repository](https://github.com/defold/extension-prometheus/fork) and then add the repository archive URL to your `game.project` dependencies. Example (replace `%YOUR_ORG%` with your GitHub user or organisation):\n\nhttps://github.com/%YOUR_ORG%/extension-prometheus/archive/master.zip\n\n## Prometheus config\nThe extension will look for a [Prometheus configuration](https://levno-710.gitbook.io/prometheus/getting-started/writing-a-custom-config-file) file named `prometheus.lua` in the project root.\n\nPrometheus can be completely disabled by setting the `prometheus.disabled` **game.project** option:\n\n```\n[prometheus]\ndisabled = 1\n```\n\n## Example\n\n```lua\nlocal test = require(\"main.test\")\n\nfunction init(self)\n print(\"hello\")\n test.greet(\"Bob\")\nend\n```\n\n```lua\nreturn(function(...)local W={\"LGVa\";\"1OD91aRxhfwx\";\"dc2A1cU=\",\"ho04hfL=\"}local function a(E)return W[E+50784]end for E,a in ipairs({{1,4},{1;3},{4,4}})do while a[1]\u003ca[2]do W[a[1]],W[a[2]],a[1],a[2]=W[a[2]],W[a[1]],a[1]+1,a[2]-1 end end do local E=type local a=W local Y=string.sub local x=table.insert local f=string.len local j={[\"7\"]=1;h=25,C=56,K=17,L=16;[\"+\"]=47,v=7,a=34;[\"0\"]=9;q=51;[\"8\"]=40,d=26,H=50;[\"3\"]=3;r=4,w=13,Y=63,M=30,W=36,R=57,U=60,[\"6\"]=31;x=52;Q=14,S=45,f=23;b=24,e=8;Z=29;z=46;i=43;t=12,F=2;g=28;E=20,[\"9\"]=41,G=38;n=62,j=49;N=54;[\"/\"]=33;p=59;X=0,P=53,[\"2\"]=21,O=22;y=11;c=6,I=58;o=55,A=44;[\"1\"]=27,k=10;J=18;D=5;[\"5\"]=32;V=61,[\"4\"]=37;s=35,m=48,B=39,T=15,l=19,u=42}local D=table.concat local F=math.floor local o=string.char for W=1,#a,1 do local R=a[W]if E(R)==\"string\"then local E=f(R)local g={}local P=1 local l=0 local M=0 while P\u003c=E do local W=Y(R,P,P)local a=j[W]if a then l=l+a*64^(3-M)M=M+1 if M==4 then M=0 local E=F(l/65536)local W=F((l%65536)/256)local a=l%256 x(g,o(E,W,a))l=0 end elseif W==\"=\"then x(g,o(F(l/65536)))if P\u003e=E or Y(R,P+1,P+1)~=\"=\"then x(g,o(F((l%65536)/256)))end break end P=P+1 end a[W]=D(g)end end end local E=require(a(-50783))function init(W)print(a(-50782))E[a(-50781)](a(-50780))end end)(...)\n```\n\n## Prometheus source code\nPrometheus source code is packaged into `pluginPrometheusSource.jar` and unpacked using `getResourceAsStream()` to a temporary folder while bob is running.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefold%2Fextension-prometheus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdefold%2Fextension-prometheus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefold%2Fextension-prometheus/lists"}