leafo/lapis

A web framework for Lua and OpenResty written in MoonScript

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 4 minutes ago
Type:FrameworkCategory(s):Backend FrameworksWeb Development
Added to GitGenius on September 20th, 2026
Created on October 3rd, 2012
Open Issues & Pull Requests: 175 (+0)
GitHub issues: Enabled
Number of forks: 244
Total Stargazers: 3,343 (+0)
Total Subscribers: 101 (+0)

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 14
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 584 days
Stale 30+ days: 14
Stale 90+ days: 14

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • New Feature (2)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

Lapis is a web framework for Lua and MoonScript that runs on OpenResty or lua-http.

Lapis addresses the need for a web framework in the Lua ecosystem by providing a complete toolkit for building web applications. It leverages OpenResty, which embeds Lua in Nginx, or alternatively supports the lua-http server. The framework is written in MoonScript, a language that compiles to Lua and offers a more concise syntax, though applications can also be written directly in Lua.

Lapis suits developers building web applications where Lua's lightweight nature and OpenResty's performance characteristics are advantageous. It is particularly well-suited for projects that benefit from running within Nginx or that require the efficiency of Lua-based request handling. The framework includes built-in support for database integration with PostgreSQL and MySQL, making it practical for data-driven applications. Developers should be aware that adopting Lapis means committing to the Lua ecosystem and either learning MoonScript or writing Lua directly.

The project maintains a comprehensive test suite covering Lua implementations, PostgreSQL integration, MySQL integration, OpenResty server integration, and lua-http with cqueues. Testing infrastructure includes both traditional test commands and Docker-based test execution to ensure consistency across environments. The framework is documented with a getting started tutorial, full reference documentation, and a changelog. The project has established a community Discord channel for user communication and maintains a list of production websites built with Lapis, including notable services in the gaming and music education spaces.