lutok
« Back to VersTracker
Description:
Lightweight C++ API for Lua
Type: Formula  |  Tracked Since: Dec 27, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: lua c-plus-plus scripting embedding api-wrapper header-only
Install: brew install lutok
About:
Lutok provides a lightweight, header-only C++ wrapper for the Lua C API, simplifying the integration of Lua scripting into C++ applications. It offers a clean, object-oriented interface that manages Lua state and stack operations, reducing boilerplate code and potential errors. Its primary value is enabling safe and efficient embedding of Lua within C++ projects with minimal overhead.
Key Features:
  • Header-only library for easy integration
  • RAII-style management of Lua state and stack
  • Thin, type-safe C++ wrapper around the Lua C API
  • Minimal runtime and dependencies
  • Simplifies exposing C++ functions to Lua
Use Cases:
  • Embedding Lua as a scripting language in C++ games or applications
  • Creating configuration or extension systems in C++ software using Lua scripts
  • Prototyping or modifying application logic without recompiling the core C++ program
Alternatives:
  • sol2 – More feature-rich, modern C++ binding library with heavier compile-time overhead
  • luabind – Older, more complex binding framework with Boost dependencies
Version History
Detected Version Rev Change Commit
Dec 27, 2025 11:11pm 0 META f35a7539
Jan 5, 2025 6:43pm 0 VERSION_BUMP 276bd6e0
Jan 5, 2025 10:09am 0 VERSION_BUMP a06b92ad
Jan 2, 2025 10:59am 0 VERSION_BUMP 503b1f55
Nov 24, 2024 10:15am 2 VERSION_BUMP 919d7309