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
LostyFunctional-style web framework for OpenResty
SailorLua MVC web framework
OrbitMVC web framework for Lua

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our carefully curated directory of recommended free and open source software, covering every major software category.

The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more.

Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted