Lapis is a web application framework that provides routing, request handling, database access and templating facilities. Applications can be developed using Lua or MoonScript, with OpenResty serving as the primary execution environment. The framework also supports alternative server environments, including lua-http, allowing developers to use its application components without depending exclusively on Nginx.
With OpenResty, application code executes within Nginx worker processes, allowing network and database operations to cooperate with the server’s asynchronous event loop. Lapis provides higher-level abstractions around this environment, so developers can concentrate on request handlers, database models and presentation logic rather than managing low-level networking operations. It includes facilities for organising routes, rendering HTML, managing sessions and maintaining database schemas, making it suitable for applications that require more structure than a collection of individual request handlers.
This is free and open source software.
Key Features
- Supports applications developed in Lua and MoonScript.
- Runs with OpenResty and supports alternative environments including lua-http.
- Provides named routes, parameterised URL patterns and HTTP method-specific handlers.
- Supports request filters and reusable application components.
- Offers HTML rendering through etlua templates and an integrated HTML builder.
- Provides a Widget class for organising reusable views and layouts.
- Automatically escapes user-supplied values in supported HTML builder operations.
- Includes session management and cookie handling.
- Provides cross-site request forgery protection.
- Supports PostgreSQL, MySQL and SQLite database models.
- Offers model operations for creating, retrieving, updating and deleting records.
- Includes database schema creation and migration facilities.
- Provides utilities for request parameters, redirects, error handling and responses.
- Supports coroutine-based asynchronous operations when used with compatible backends.
- Provides logging and application development tools.
Website: github.com/leafo/lapis
Support:
Developer: Leaf Corcoran
License: MIT License
Lapis is written in MoonScript and Lua. Learn Lua with our recommended free books and free tutorials.
Related Software
| Lua Web Frameworks | |
|---|---|
| OpenResty | Turns Nginx into a Full-Fledged Scriptable Web Platform |
| Lapis | Web framework for Lua/MoonScript supporting OpenResty or http.server |
| Fullmoon | Fast and minimalistic web framework based on Redbean |
| Turbo | Framework built for LuaJIT 2 |
| Luvit | Node.JS for the Lua Inventor |
| Vanilla | OpenResty Lua MVC web framework |
| Losty | Functional-style web framework for OpenResty |
| Sailor | Lua MVC web framework |
| Orbit | MVC web framework for Lua |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.