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
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
NGINX
Networking & VPN
The official NGINX Open Source repository.
BSD-2-Clausevs Cloudflare★ 32k
BunkerWeb
Security
🛡️ Open-source and cloud-native Web Application Firewall (WAF)
AGPL-3.0vs Cloudflare★ 11k
ModSecurity
Security
ModSecurity is an open source, cross platform web application firewall (WAF) engine for Ap
Apache-2.0vs Cloudflare★ 9.9k
SafeLine
Security
CyberServal open-source WAF is a self-hosted WAF with 20.9K GitHub stars. Block SQL inject
GPL-3.0vs Cloudflare★ 23k
Suricata
Security
Suricata is a network Intrusion Detection System, Intrusion Prevention System and Network
GPL-2.0vs Palo Alto Networks★ 6.9k
HAProxy
Networking & VPN
HAProxy Load Balancer's development branch (mirror of git.haproxy.org)
OSSvs Azure Front Door★ 7k

DataDome
F5