KYNX
Kinetic control v4 // multi-dialect Lua decompiler
Scroll to decompileDecompiler
About / API- Nothing decompiled yet
About / API
About KYNX
KYNX (Kinetic Control v4) is a browser-based, multi-dialect Lua-family bytecode decompiler with a public HTTP API. Upload or paste compiled bytecode and get readable source back, no install needed.
Luau is the Lua-derived language used by Roblox. It adds type annotations, continue, compound assignment and its own bytecode format (versions 3 to 14). KYNX detects the bytecode version from the header and routes the chunk to the matching engine: bundled WASM for Luau v3 to v7 and an optional external backend for newer versions.
Supported languages
- Luau / Roblox bytecode
- Lua 5.1, 5.2, 5.3, 5.4, 5.5
- LuaJIT 2.0 / 2.1 (2.0 depends on the backend)
- MoonScript and Teal are catalogued: they compile to plain Lua, so upload the resulting Lua bytecode
Endpoints
| Method | Route | Request body | Response |
|---|---|---|---|
| POST | /decompile | JSON {"script":"<base64>"} or a Base64 body | Plain text source |
| GET | /health | none | JSON status of the site and the engine |
| POST | /api/decompile | JSON {"bytecodeBase64":"..."} | JSON {ok, output} |
| POST | /v4/decompile, /v1/decompile, /bytefall/decompile | same as /decompile | Plain text |
| POST | /luau/decompile | Base64 text or JSON; Luau only | Plain text |
| POST | /lua/decompile | Base64 text or JSON with optional dialect | Plain text |
| POST | /konstant/decompile | Raw bytecode bytes, text/plain | Plain text |
| POST | /x2125/decompile | JSON {"script","options"} | JSON {data} |
| POST | /api/disassemble | JSON | 501, not supported yet |
| GET | /languages | none | JSON language catalog |
POST /decompile
Send the Base64 of the bytecode file in script. Optional fields: dialect and options.
{
"script": "<base64-encoded-bytecode>",
"dialect": "luau",
"options": { "naming": { "mode": "heuristic" } }
}Success returns the decompiled source as plain text with status 200.
-- decompiled by kynx
print("hello")GET /health
Use it to check that the site and the decompiler engine are up. It returns 200 when everything works and 502 when the engine is unreachable.
{
"ok": true,
"site": "kynx-site-v4",
"maxBytes": 4194304,
"upstream": { "ok": true, "engine": "kynx-multi-backend", "lua": true, "luajit": true, "luau": true }
}Examples
cURL: JSON request.
curl -X POST https://kynx-site.pages.dev/decompile \
-H "Content-Type: application/json" \
-d "{\"script\":\"$(base64 -w0 script.luauc)\"}"cURL: Base64 body with query parameters, and the health check.
curl -X POST "https://kynx-site.pages.dev/luau/decompile?renaming=RAW" \ --data-binary "$(base64 -w0 script.luauc)" curl -X POST https://kynx-site.pages.dev/konstant/decompile \ -H "Content-Type: text/plain" --data-binary @script.luauc curl https://kynx-site.pages.dev/health
JavaScript (browser or Node 18+).
const bytes = new Uint8Array(await file.arrayBuffer());
let bin = "";
for (let i = 0; i < bytes.length; i += 0x8000) bin += String.fromCharCode(...bytes.subarray(i, i + 0x8000));
const res = await fetch("https://kynx-site.pages.dev/decompile", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ script: btoa(bin) }),
});
if (!res.ok) throw new Error(res.status + " " + await res.text());
console.log(await res.text());Roblox executor loader (compatible executors only, not plain Lua).
loadstring(game:HttpGet("https://kynx-site.pages.dev/loader.lua"))()Reference
Request headers
| Header | Value | Notes |
|---|---|---|
Content-Type | application/json | For JSON routes. Use text/plain for /konstant/decompile |
Accept | */* | Optional |
Authorization | Bearer <token> | Not needed on the public site. Only a protected upstream engine requires it |
Response headers
| Header | Value | Notes |
|---|---|---|
Content-Type | text/plain; charset=utf-8 or application/json | Depends on the route |
Access-Control-Allow-Origin | * | Browsers can call the API directly; OPTIONS preflight is answered with 204 |
Query parameters
| Parameter | Values | Notes |
|---|---|---|
dialect | lua5.1 .. lua5.5, luajit, luau | Overrides header auto-detection. A dialect in the JSON body wins over the query |
renaming | INFER | RAW | INFER guesses readable names, RAW keeps register names. Ignored when the body has options |
mode | disasm | Disassembly is not supported yet and returns 501 |
Response codes
| Code | Meaning | Notes |
|---|---|---|
| 200 | OK | Source returned |
| 400 | Bad request | Empty body, invalid JSON or invalid Base64 |
| 401 | Unauthorized | Upstream rejected the token |
| 405 | Method not allowed | Decompile routes need POST |
| 413 | Too large | Over the 4 MB limit |
| 422 | Cannot decompile | Invalid bytecode or unsupported version |
| 429 | Rate limited | Too many queued requests from one IP |
| 500 | Internal error | The engine failed |
| 501 | Not implemented | Disassembly mode |
| 502 | Upstream unreachable | The engine is down. Check /health |
Limits and notes
| Item | Value |
|---|---|
| Request / upload size | 4 MB (the engine hard limit is 8 MB) |
| Per-IP queue | 5 requests, extra ones get 429 |
| Luau bytecode versions | Bundled WASM v3 to v7; v8 to v14 need the external backend |
- Output is a reconstruction. Local names and comments are guessed, so review it before relying on it.
- Stripped bytecode has no debug info, so INFER names are heuristic.
- Request formats differ slightly between routes. Match the route you call.
- Only upload bytecode you are allowed to analyse.
Links
Alternatives
| Project | Stack |
|---|---|
| VortexDQ/decompiler | Python, offline |
| PumbaaDev/luau-decompiler | Rust, offline |
| atrexus/unluau | C# |
| xgladius/luauDec | C++ |
| KYNX | Web + API |