Development Tools

Lapis – web framework for Lua/MoonScript supporting OpenResty or http.server

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
OpenRestyTurns Nginx into a Full-Fledged Scriptable Web Platform
LapisWeb framework for Lua/MoonScript supporting OpenResty or http.server
FullmoonFast and minimalistic web framework based on Redbean
TurboFramework built for LuaJIT 2
LuvitNode.JS for the Lua Inventor
VanillaOpenResty Lua MVC web framework
SailorLua MVC web framework
OrbitMVC web framework for Lua

Read our verdict in the software roundup.


Best Free and Open Source Software 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.
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments