ydasm / api.txt
-- ydasm http api

POST /api/decompile
-- optional: ?mode=dec (default) | ?mode=dasm
-- accepts: raw bytecode (.luauc), base64, hex, or {"bytecode":"..."}

-- 1. executor / luau
local res = request({
    Url = "https://ydasm.catboys.fun/api/decompile",
    Method = "POST",
    Body = crypt.base64encode(getscriptbytecode(script))
})
return res.Body

-- 2. curl
curl -s -X POST https://ydasm.catboys.fun/api/decompile --data-binary @script.luauc

-- 3. js
const res = await fetch("https://ydasm.catboys.fun/api/decompile", {
  method: "POST",
  body: bytecodeBytes
});
const src = await res.text();