Openresty

Open source

Web platform that bundles an enhanced Nginx core with LuaJIT and Lua libraries so developers can build scalable web apps, services and gateways.

Open-source alternative to

openresty.org
Openresty homepage screenshot
GitHub stars
14k
Last 30 days
+63(+0%)
Last commit
6 days ago
Repository age
16 years
Version
v1.27.1.2
Licence
Custom
Self-hosted
Yes

About Openresty

OpenResty is an open-source web platform from OpenResty Inc. that integrates an enhanced Nginx core with LuaJIT, a set of Lua libraries and many third-party Nginx modules, along with most of their external dependencies. It is designed to help developers build scalable web applications, web services and dynamic web gateways.

Developers script existing Nginx C modules and Lua modules in the Lua language, so server-side application logic runs inside Nginx and uses its event model for non-blocking I/O with HTTP clients and with remote backends such as MySQL, PostgreSQL, Memcached and Redis. The project says a single box can handle 10K to 1000K+ connections.

The project states that it is not an Nginx fork. Real-world uses it lists include dynamic web portals, web application firewalls, web service platforms for mobile apps, advertising, distributed storage and data analytics, and full dynamic sites. The company also offers OpenResty XRay for observability and OpenResty Edge for CDN use.

Key features

  • Enhanced Nginx core combined with LuaJIT
  • Lua scripting of Nginx C and Lua modules
  • Non-blocking I/O to MySQL, PostgreSQL, Memcached and Redis
  • Bundles Lua libraries and third-party Nginx modules
  • Handles very high connection counts on one machine

Good fit for

  • Dynamic web gateways
  • Web application firewalls
  • Web services for mobile apps
Built with
C tools
Tags
nginx
lua
luajit
web-server
api-gateway
open-source
web-platform

Openresty: questions and answers

What is Openresty used for?
Openresty is a web platform that bundles an enhanced Nginx core with LuaJIT and Lua libraries so developers can build scalable web apps, services and gateways. It is a good fit for dynamic web gateways, web application firewalls and web services for mobile apps.
Is Openresty open source?
Yes. Openresty is open source under a custom licence. Its source code is on GitHub at openresty/openresty and is written mainly in C.
Is Openresty free?
Yes. Openresty is open source, so the software itself is free to use under the terms of its own licence.
Can I self-host Openresty?
Yes. Openresty can be self-hosted on your own server or infrastructure.
What is Openresty an alternative to?
Openresty is an open-source alternative to DataDome and F5. Other open-source alternatives to DataDome include NGINX, BunkerWeb and ModSecurity.
Is Openresty actively maintained?
Yes. The most recent commit to Openresty was on 7 November 2026, and the latest release is v1.27.1.2, published on 8 October 2025. The project has 14k stars on GitHub, with 63 added in the last 30 days.

Open-source alternatives to Openresty

See all

SaaS alternatives to Openresty

See all