SuperCode IDE
Lua 5.4 IDE Hub/Built-In Modules (cjson, lsqlite3, lfs)
4.9 ★ ZERO LUAROCKS · CJSON · LSQLITE3 · LFS · CRYPTO · SOCKET.HTTP

11+ Built-In Offline Lua Modules Ready via require().

Standard Lua ships intentionally minimal, and compiling C rocks on a phone is notoriously painful. SuperCode pre-bundles cjson, lsqlite3, lfs, crypto, regex, base64, socket.http, and inspect straight into its offline Lua 5.4.7 runtime.

11+
Built-In Modules
cjson
& dkjson Pretty
SQLite3
lsqlite3 :named
0Rocks
Zero C Build
01 BATTERIES-INCLUDED LUA EXTENSION MODULES WORKBENCH
cjson + lsqlite3 · lfs + crypto HMAC/UUID · socket.http + regex
lua-batteries-studio/json_sqlite.lua — Built-In cjson & lsqlite3
Interactive Console Output
Ready
cjson + lsqlite3 · Offline
UTF-8 LF Ln 10, Col 1
02 CORE CAPABILITIES

Real-World Lua Scripting Beyond the Bare Standard Library

Build REST clients, local SQLite save-file editors, directory batch tools, and OpenResty/Redis-style JSON scripts without touching a C compiler.

02.1

cjson & dkjson Serialization Out of the Box

Parse and emit JSON payloads instantaneously offline using require('cjson') or require('dkjson') — complete with cjson.encode_pretty() for human-readable config files and API debugging.

cjson.encode · encode_pretty · cjson.decode
02.2

Embedded lsqlite3 / sqlite3 Database Engine

Open :memory: or persistent workspace .db files via require('lsqlite3') or require('sqlite3'). Supports prepared statements, :named parameter bindings, db:nrows() iterators, and ACID transactions.

lsqlite3 · Persistent .db Sync · Shared With SQL IDE
02.3

LuaFileSystem (lfs) Directory & File Automation

Automate batch renames and asset audits across your project folder using require('lfs') — including lfs.dir(), lfs.mkdir(), lfs.currentdir(), and lfs.attributes() size/timestamp checks.

lfs.dir · lfs.mkdir · lfs.attributes
02.4

crypto, sha2, md5 & base64 Security Suite

Sign webhook payloads, verify file checksums, and mint unique IDs offline with SHA-256, SHA-512, MD5, keyed HMAC digests, crypto.uuid(), and RFC-compliant Base64 encoding/decoding.

SHA-256/512 · HMAC · crypto.uuid() · base64
02.5

socket.http, Full regex & Table inspect

Test live REST APIs via require('socket.http'), run full PCRE/POSIX regular expressions when Lua patterns aren't enough via require('regex'), and dump nested tables cleanly with require('inspect').

socket.http · Full regex · inspect(table)
02.6

Cloud Lua Routing for lpeg & luv C-Rocks

Working with PEG parsers in lpeg or libuv async loops in luv? SuperCode automatically bundles your project modules to its cloud Lua runtime and maps tracebacks 1:1 to your editor.

Cloud lpeg & luv · Multi-File Auto-Bundle
Built for Phones, Foldables & Tablets · Lightweight 45 MB Lua 5.4 IDE Hub
03 STEP-BY-STEP WORKFLOW

How to Build Data-Driven Lua Tools on Android

Combine JSON, SQLite, filesystem automation, and SQL inspection in one cohesive workspace.

STEP 01 require('cjson')

Import Any of the 11+ Built-In Modules Directly

Write standard require('cjson'), require('lsqlite3'), require('lfs'), or require('crypto') at the top of your .lua file — zero installation steps.

STEP 02 Toolbar -> Run ▶

Read & Write Real JSON and SQLite Files Offline

Execute your script in milliseconds; any .db, .json, or .log files written on disk sync straight into your Explorer project tree.

STEP 03 SQL Studio -> Open .db

Cross-Inspect lsqlite3 Databases Visually

Tap the generated .db file in Explorer to browse schemas and run analytical queries in SuperCode's 9-mode SQL Studio.

STEP 04 require('lpeg')

Burst Specialized C-Rocks Seamlessly When Needed

If a script imports external C rocks like lpeg or luv, run online with automatic multi-file module bundling.

Pre-Bundled Offline Extensions · Zero gcc/luarocks Failures · Shared Workspace Sync App Guide
04 CAPABILITY MATRIX

SuperCode Built-In Lua Modules vs. Stock Lua & Mobile Ports

SuperCode IDE for Android ships native Lua 5.4.7 with over eleven pre-integrated extension modules ready offline via require() — including cjson, dkjson, lsqlite3, lfs (LuaFileSystem), crypto, sha2, md5, base64, regex, socket.http, and inspect — eliminating mobile luarocks compilation.

ANDROID LUA EXTENSION MODULE AVAILABILITY MATRIX
Extension Module require() Name SuperCode Offline Status Stock Lua CLI Java LuaJ Apps
Fast JSON + Pretty Print cjson / dkjson Built-In Offline Requires luarocks gcc Missing
Embedded SQLite 3 lsqlite3 / sqlite3 Built-In Offline (:named + .db) Requires C headers Missing
Filesystem & Directories lfs Built-In Offline (dir/mkdir/attr) Requires luarocks Missing
Hashing, HMAC & UUID crypto / sha2 / md5 / base64 Built-In Offline External C library Missing
HTTP, Regex & Debug socket.http / regex / inspect Built-In (+ Cloud lpeg/luv) Manual build Missing
Built for Phones, Foldables & Tablets · Lightweight 45 MB Google Play
05 QUESTIONS & ANSWERS

Frequently Asked Questions

Common questions about using cjson, lsqlite3, LuaFileSystem, and luarocks modules on Android.

Do I need to install luarocks or a C compiler to use `cjson`, `lsqlite3`, or `lfs`?
No. All 11+ core extension aliases (`cjson`, `dkjson`, `lsqlite3`, `sqlite3`, `lfs`, `crypto`, `sha2`, `md5`, `base64`, `regex`, `socket.http`, and `inspect`) are pre-integrated directly into SuperCode and work immediately via `require()`.
Can `lsqlite3` share the same `.db` file with Python, PHP, or SuperCode's SQL IDE?
Yes! A `.db` database created by `lsqlite3` in your project folder is a standard SQLite 3 binary file that can be queried directly in SuperCode's SQL Studio, Python `sqlite3`, PHP `PDO`, or Java JDBC.
Does `cjson` support formatted pretty-printing for config files?
Yes. In addition to standard `cjson.encode()` and `cjson.decode()`, SuperCode provides `cjson.encode_pretty()` so you can inspect or save cleanly indented JSON offline.
What happens if my script requires `lpeg` or `luv`?
When connected to the internet, SuperCode detects specialized native C-rock imports like `lpeg` or `luv` and routes your multi-file project to its Cloud Lua environment automatically.
06 LUA 5.4, GAME LOGIC & BUILT-IN MODULES GUIDES

Complete Lua 5.4.7 IDE Documentation Suite

Navigate between the main Offline Lua 5.4 IDE hub and all 5 specialized Lua scripting guides.

LUA-HUB Lua 5.4.7 · 11+ Mods · Pillar Hub

Offline Lua 5.4.7 Studio Overview

Main overview of SuperCode's native ~400µs Lua 5.4.7 engine, 11+ built-in offline modules, multi-file require(), and . vs : AST completion.

lua-ide Open Guide →
LUA-01 Entity OOP · Coroutines · ~400µs

Game Scripting, Metatables & Coroutines

Prototype RPG state machines, coroutines, and metatable OOP classes offline for Luau/Roblox, Love2D, and embedded game engines.

lua-game-scripting-metatables-oop Open Guide →
LUA-02 cjson · lsqlite3 · lfs · crypto

11+ Built-In Modules (cjson, lsqlite3, lfs)

Require cjson, lsqlite3, lfs (LuaFileSystem), crypto/sha2, regex, base64, socket.http, and inspect out of the box with zero luarocks setup.

lua-builtin-modules-cjson-sqlite Viewing Guide
LUA-03 64-Bit & | << // · <const>/<close>

Lua 5.4 Bitwise, <close> & Multi-File

Use true Lua 5.4 64-bit bitwise operators, integer floor division //, <const>/<close> variables, utf8, and multi-folder require() packages.

lua-54-bitwise-close-multifile Open Guide →
LUA-04 8 Lua Scripts · . vs : AST · PDF

Learn Lua Offline on Android

Master Lua tables, closures, and pattern matching offline with 8 runnable templates, . vs : AST autocomplete, Lua formatter, and PDF export.

learn-lua-offline-android Open Guide →
LUA-05 crypto · regex · socket.http · lfs

Crypto, Regex, HTTP & File Automation

Automate Android tasks in microseconds with native Lua 5.4.7 backed by BoringSSL crypto/sha2, ICU Unicode regex, OkHttp socket.http (1MB OOM guard), lfs filesystem ops, and 1-tap formatting.

lua-android-crypto-regex-http-automation Open Guide →
6 Interconnected Lua 5.4.7 Guides · Built-In cjson, lfs, lsqlite3, crypto & socket Lua 5.4 IDE Hub