Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. LÖVE
  3. lume

lume

MITLuav2.3.0

A lightweight Lua utility library providing essential functions for game development and general programming.

GitHubGitHub
1.2k stars88 forks0 contributors

What is lume?

Lume is a Lua utility library that provides a comprehensive set of functions tailored for game development and general programming tasks. It solves the problem of Lua's minimal standard library by offering ready-to-use tools for math, table manipulation, string processing, and functional programming, reducing boilerplate code. Developers can easily integrate it into their projects to handle common operations like interpolation, random selection, data serialization, and more.

Target Audience

Lua developers, particularly those working on game projects using engines like LÖVE, Defold, or custom Lua-based game engines, who need a lightweight, focused utility library. It's also suitable for general Lua scripting where enhanced table and string operations are beneficial.

Value Proposition

Developers choose Lume because it's a single-file, dependency-free library that is easy to drop into any project, offering a curated set of functions specifically useful for game development. Its functional programming features and chainable API provide a modern, expressive way to write Lua code without the overhead of larger frameworks.

Overview

Lua functions geared towards gamedev

Use Cases

Best For

  • Adding common math utilities like clamping and interpolation to a Lua game
  • Simplifying table operations such as filtering, mapping, and sorting in scripts
  • Processing and formatting strings in Lua applications
  • Implementing functional programming patterns like memoization and lambdas
  • Live-coding workflows with hot-swappable modules during game development
  • Handling color parsing and vector math in 2D game engines

Not Ideal For

  • Projects requiring deep integration with external databases or network APIs
  • Teams that prefer modular, single-purpose libraries for better dependency management
  • Applications where strict type safety or static analysis is critical
  • Large-scale codebases needing specialized, optimized libraries for physics or graphics

Pros & Cons

Pros

Minimal Installation

Installation is simply dropping lume.lua into the project and requiring it, with no dependencies, making it trivially easy to integrate.

Game Dev Utilities

Includes functions like lume.lerp for interpolation, lume.color for parsing, and lume.hotswap for live coding, directly supporting game development workflows.

Functional Enhancements

Offers lambda expressions with lume.lambda, memoization with lume.memoize, and a chainable API via lume.chain, enabling modern functional programming patterns.

Extensive Table Operations

Provides a wide range of table functions such as lume.map, lume.filter, lume.reduce, and lume.unique, which enhance Lua's native table handling significantly.

Cons

Shallow Cloning Limitation

lume.clone performs only shallow copies, which can cause issues with nested tables if deep cloning is needed, as it doesn't handle recursive structures.

Simplistic Array Detection

lume.isarray checks only for a value at index 1, which might incorrectly identify tables, leading to potential bugs in edge cases.

Limited Error Handling

Functions like lume.randomchoice raise errors on empty tables without fallback options, requiring additional wrapping code for robustness in production.

No Built-in Testing

The library lacks integrated testing utilities or assertions, forcing developers to rely on external tools for unit testing and validation.

Frequently Asked Questions

Quick Stats

Stars1,216
Forks88
Contributors0
Open Issues11
Last commit2 years ago
CreatedSince 2014

Tags

#functional-programming#lightweight#math#string-processing#game-development#utility-library#scripting#live-coding#lua#table-manipulation

Built With

L
Lua

Included in

Lua4.5kLÖVE4.3k
Auto-fetched 6 hours ago

Related Projects

awesome-love2dawesome-love2d

A curated list of amazingly awesome LÖVE libraries, resources and shiny things.

Stars4,327
Forks240
Last commit22 days ago
Journey to the Center of HawkthorneJourney to the Center of Hawkthorne

Digital Estate Planning: The Game

Stars1,147
Forks455
Last commit1 year ago
BumpBump

A collision detection library for Lua

Stars1,079
Forks85
Last commit2 years ago
Simple Tiled ImplementationSimple Tiled Implementation

Tiled library for LÖVE

Stars1,045
Forks135
Last commit2 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub