🎃 DarkfuscatorDOCS
API REFERENCE

Darkfuscator API

HTTP contract for a future server-side Luau compiler/obfuscator. The static website does not claim to be a complete Luau compiler.

POST /v1/protect

Accepts Luau source and returns a protected source artifact.

POST /v1/protect
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

{
  "source": "print('hello')",
  "preset": "safe"
}

Response

{
  "ok": true,
  "request_id": "req_...",
  "preset": "safe",
  "protected_source": "-- Darkfuscator ...\n..."
}

GET /v1/health

{"ok":true,"service":"darkfuscator-api","version":"v1"}

Compatibility

For maximum compatibility, the server implementation should parse Luau before applying identifier renaming, control-flow transformations, or virtualization. A plain text replacement is not a substitute for a Luau parser/compiler.

Security: never place a production API key in browser JavaScript. Use your server or Cloudflare Worker as the authenticated API client.