LuaRocks.org had a security incident in September 2026. Read the incident report.

simpleclass

Modern & lightweight Lua OOP lib, without fighting static analyzers

$ luarocks install simpleclass

Lua SimpleClass is a modern-style, purely Lua-based OOP library with concise syntax and deep compatibility with the static analysis features of lua-language-server (sumneko.lua).

* Concise DSL syntax - Like `class "Cls" : Base { ... }`
* Lightweight runtime - Less than 500 lines of core code, doing nothing superfluous
* LSP friendly - Automatically generate static type annotations, get rid of hand-written “---@class”
* Zero dependencies - Pure Lua implementation, compatible with Lua 5.1+ and LuaJIT

After installation, if you need static analysis support, please refer to the “Type Inference” section in the README.

Versions

1.0.3-115 days ago(revision: 2)3 downloads
1.0.2-116 days ago1 download
1.0.1-117 days ago1 download
1.0.0-122 days ago2 downloads

Dependencies

lua >= 5.1

Manifests