# rxi/classic

Tiny class module for Lua

Repository: https://github.com/rxi/classic
Canonical: https://ross.abutalabs.com/products/classic
Language: Lua
License: MIT
License Family: permissive
Last push: 2021-12-31T14:37:20+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4571, "days_push": 1706, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1072, forks 107 (observed 2026-08-28T04:03:28.633634+00:00)

## What it is
A tiny single-file class module for Lua providing simple object-oriented programming with inheritance, mixins, and static variables. It prioritizes simplicity and performance by avoiding unnecessary abstraction.

## Use cases
- add oop classes to lua projects
- implement class inheritance in lua
- use mixins in lua
- call superclass constructors in lua
- check object types at runtime in lua
- define metamethods like __tostring on classes

## When to choose
- you want a minimal, dependency-free oop layer for lua
- you need simple inheritance and mixins without heavy frameworks
- you're writing a LÖVE or game project needing lightweight classes

## When to avoid
- you need full-featured oop with access control or interfaces
- you need metatable-heavy features like operator overloading beyond basic metamethods
- your project already uses a larger class library

## Facets
- artifact type: library
- maturity: maintenance
- function: programming-language
- domain: programming-languages, developer-tools
- platform: lua
- tags: oop, class-system, single-file, game-development

## Member repositories
- rxi/classic (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:28.633634+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:53:43.400073+00:00, confidence not recorded.
  - readme: https://github.com/rxi/classic (fetched 2026-08-28T04:03:28.633634+00:00, sha 50602a13e6cf)
- Data as of 2026-08-30T08:39:29.467469+00:00.
