LuaRNLUA OBFUSCATOR
API DocsGet an API key
SERVER PROCESSING
v1.4.0
✳ A CLEANER LUA WORKFLOW

Your Lua.
Ready to inspect.

A responsive Lua workspace with protected server-side processing, per-build payload transformation, integrity checks, and optional Anti-Tamper checks.

✓ Lua-only uploads ✓ Downloadable output ✓ No account required

THE WORKSPACE

Process a Lua script

Upload a Lua file for protected server-side obfuscation, with optional Anti-Tamper checks.

Starting your LuaRN loader…

Source file

Choose the Lua source you want to protect.

01 / INPUT
Drop your .lua file here

or

ONLY .LUA FILESMAX 1 MB
i

Only .lua uploads are accepted. The file is previewed in your browser, then sent over HTTPS for in-memory server processing. Lua source is not stored.

Automatic anti-dump hardening is always enabled: each build gets a different chained payload transform plus a corruption/tampering integrity check. This complicates simple static extraction but cannot stop a dumper that captures code after runtime reconstruction.

Compatibility mode is the default. The bundled rAT Anti-Tamper module is highly runtime-specific and may deliberately halt on unsupported APIs. Enable only when you know your target runtime supports its checks.

Upload a Lua file to send it securely to LuaRN for processing.

Output preview

Your output uses per-build chained payload transformation and an integrity guard, plus optional runtime Anti-Tamper checks.

02 / OUTPUT
No output generated yet

Upload a .lua file for protected server-side processing and preview the downloadable result.

OUTPUT CANVAS

Always test generated files in a safe environment before use.

Starting your LuaRN loader

LuaRN processes source inside its private server engine. Anti-Tamper checks are added server-side when enabled; unsupported target runtimes may halt, so test generated output carefully.

01
Upload

Select a .lua source file for HTTPS server processing.

02
Pack

Compress the source and embed it in your loader.

03
Export

Preview, copy, or download the .lua result.

DEVELOPER ACCESS

LuaRN API & SDK

Integrate LuaRN into any HTTPS website with a self-service public key. No administrator token is needed to create or manage your own integration. The official branded widget is hosted by LuaRN and uses per-key quotas and origin checks.

API v1.4.0

1. Create your own API key

Anyone can create a key for their own HTTPS website without an administrator token. The portal gives you a public API key, a private key-management token, and a ready-to-paste official embed snippet. Your management token controls only your own key.

Get an API key ↗

Public customers can manage their own quota or revoke their own key. The private ADMIN_TOKEN remains reserved for LuaRN site administration and analytics.

2. Add the LuaRN SDK

Load the hosted SDK, then use your key that was registered for the exact HTTPS origin of the current website.

<div id="luarn-api-widget"></div>
<script src="https://luarn.pages.dev/api-sdk.js?v=140" defer data-luarn-widget data-luarn-brand="LuaRN Obfuscator" data-luarn-target="#luarn-api-widget" data-luarn-api-key="lrn_pub_YOUR_KEY"></script>

Server-side processing — engine stays private

const result = await LuaRNAPI.obfuscateRemote(luaSource, {
  apiKey: "lrn_pub_YOUR_KEY",
  filename: "script.lua",
  includeAntiTamper: true
});
LuaRNAPI.download(result);

Lua source is sent to LuaRN over HTTPS for in-memory processing. The server engine and templates are bundled privately and are not shipped to client websites. Create a separate origin-bound key for each website that uses LuaRN.

3. API reference

Endpoints and operating model.

LuaRNAPI.obfuscateRemote(source, options)Sends Lua over HTTPS to the private server engine. Requires a valid public API key registered for the website origin.
data-luarn-widget + data-luarn-api-keyCreates a copy-paste widget automatically; no inline JavaScript is required.
GET /v1/health · POST /v1/authorizePublic health endpoint and origin-bound authorization. Public keys are not admin secrets.
POST /v1/keys · GET/PATCH/DELETE /v1/keysSelf-service key creation and owner-token management. Global analytics remain admin-only.
dailyLimit / expiresAtEach key can have its own daily quota and optional expiration. Expired keys are denied and automatically revoked by the scheduled cleanup.

Traffic analytics are retained for 30 days and store request metadata, not Lua source or raw IP addresses. Public keys are visible in website code by design; they are restricted by origin and quota, not treated as secret credentials. Non-browser clients can forge Origin headers, so quotas and server-side monitoring still matter. The server engine and private templates are bundled into the Worker rather than served as assets.

✓Done