Lapis is a framework for building web applications using MoonScript or Lua that runs inside of a customized version of Nginx called OpenResty.
Lua is run directly inside of the Nginx worker, giving you the smallest barrier between the webserver and your code. OpenResty executes your Lua/MoonScript with LuaJIT, so it’s blazing fast. Have a look at Web Framework Benchmarks just to see how OpenResty stacks up against other platforms.
Nginx’s event loop is used for all asynchronous actions, including HTTP requests and database queries. With the power of Lua coroutines code is written synchronously but runs asynchronously, without all that callback spaghetti seen in other asynchronous platforms. It’s fast, easy to read, and easy to write.
Perform HTTP requests and other asynchronous operations freely without being concerned about blocking your application and killing your throughput.
This is free and open source software.
Key Features
- Production ready.
- URL routing.
- HTML Templating.
- CSRF Protection.
- Session support.
- PostgreSQL/MySQL backed models.
- Schema generation.
- Migrations.
- Templates – write templates either in etlua or in pure Lua/MoonScript. The template builder syntax works well in MoonScript and lets your organize your templates as classes, allowing you to use inheritance to mix and match methods as you see fit.
- Collection of useful functions needed when developing a website.
Website: leafo.net/lapis
Support: Reference Manual, GitHub Code Repository
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 |
| Sailor | Lua MVC web framework |
| Orbit | MVC web framework for Lua |
Read our verdict in the software roundup.
Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more. Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form. |

