OpenResty Alternative: Same Lua Module, Better Everything Else
Get the same lua-nginx-module that powers OpenResty, plus 115+ lua-resty libraries, latest NGINX stable and mainline, and 100+ additional dynamic modules. All through your package manager.
TL;DR — Why Switch from OpenResty?
OpenResty is primarily the lua-nginx-module bundled with NGINX and a set of Lua libraries.
GetPageSpeed offers the exact same lua-nginx-module, over 115 lua-resty libraries as proper system packages,
and the latest NGINX stable + mainline builds — updated within hours of upstream releases.
Plus 100+ additional NGINX modules like Brotli, ModSecurity, PageSpeed, and GeoIP2.
No compiling from source. Just dnf install nginx-module-lua.
Your existing Lua code works unchanged — it is the same module underneath. You gain dynamic module loading, proper dependency management, security updates per-library, and support across 10+ Linux distributions including ARM64.
Feature-by-Feature: OpenResty vs GetPageSpeed
Everything OpenResty does, plus everything it does not
| Feature | OpenResty | GetPageSpeed NGINX |
|---|---|---|
| Core NGINX Platform | ||
| lua-nginx-module Same module — originated from the OpenResty project | ||
| NGINX Version Freshness Stable + mainline branches | Lags months behind | Hours after release |
| Dynamic Module Loading Load/unload modules at runtime without recompiling | ||
| HTTP/3 (QUIC) Support Via NGINX QUIC packages | ||
| HTTP/2 Full HPACK Encoding NGINX-MOD includes HPACK patch | ||
| Brotli Compression 15-25% better than gzip | ||
| ModSecurity WAF Industry-standard web application firewall | ||
| Google PageSpeed Automatic frontend optimization | ||
| Lua Ecosystem | ||
| lua-resty Libraries | ~70 bundled | 115+ as packages |
| Library Installation | Compile or opm | dnf install / apt-get |
| Dependency Management Dependencies resolved by package manager | Manual | Automatic (RPM/DEB) |
| Security Updates Targeted patching without rebuilding | Rebuild everything | dnf update per-library |
| LuaJIT Both use LuaJIT 2.1 for near-native speed | ||
| Packaging & Operations | ||
| Installation Method | Compile from source | dnf install / apt-get |
| Native RPM/DEB Packages Built natively for each distro | Limited (own fork) | |
| Distro Coverage RHEL, AlmaLinux, Rocky, Fedora, Amazon Linux, SLES, Debian, Ubuntu | Limited | 10+ distro families |
| Architecture Support Native ARM64 builds | x86_64 | x86_64 + aarch64 |
| Module Isolation | All-or-nothing bundle | Install only what you need |
| Upgrade Path | Replace entire build | Standard package upgrades |
Installation: Minutes vs Hours
See the difference proper packaging makes
The OpenResty Way 8+ steps
The GetPageSpeed Way 3 steps
Also available via APT for Debian and Ubuntu. Set up the APT repository.
115+ lua-resty Libraries, One Command Away
Every library from the OpenResty ecosystem and beyond, as proper system packages
HTTP & Networking
lua-resty-httplua-resty-dnslua-resty-websocketlua-resty-requests
Data Stores
lua-resty-redislua-resty-mysqllua-resty-memcachedlua-resty-kafkalua-resty-etcd
Security & Auth
lua-resty-jwtlua-resty-openidclua-resty-sessionlua-resty-acmelua-resty-waf
Performance & Caching
lua-resty-lrucachelua-resty-mlcachelua-resty-limit-trafficlua-resty-healthcheck
And 90+ more libraries covering templating, validation, UUID generation, email, file uploads, and more.
Browse Full Library CatalogOpenResty Gives You Lua. GetPageSpeed Gives You Everything.
100+ additional NGINX dynamic modules beyond Lua scripting
Common OpenResty Use Cases — Better with GetPageSpeed
Same Lua capabilities, more tools at your disposal
API Gateway
Building an API gateway with Lua? You get the same lua-nginx-module, same cosocket API, same balancer_by_lua_block — plus proper package management for all your lua-resty dependencies.
Web Application Firewall
Combine Lua-based security logic with ModSecurity WAF and NAXSI — modules OpenResty does not include. Layer multiple defense strategies in a single NGINX instance.
Recommendation: GetPageSpeedDynamic SSL/TLS (Auto-SSL)
lua-resty-acme works identically. Install it with dnf install lua5.1-resty-acme instead of compiling. Plus you get HTTP/3 and full HPACK encoding.
Custom Authentication
lua-resty-jwt, lua-resty-openidc, lua-resty-session — all available as system packages. Same code, zero compilation, automatic dependency resolution.
Recommendation: GetPageSpeedLegacy OpenResty Migration
Already running OpenResty in production? Migration is straightforward — your Lua code works unchanged because it is the same lua-nginx-module underneath. Just swap the packages.
Recommendation: GetPageSpeed (drop-in)Supported Distributions
Native packages for every major Linux distribution
RPM-based (dnf/yum)
- RHEL 7, 8, 9, 10
- AlmaLinux 8, 9, 10
- Rocky Linux 8, 9, 10
- CentOS 7
- Amazon Linux 2, 2023
- Fedora Latest
- Oracle Linux 8, 9, 10
- SLES 15, 16
DEB-based (apt)
- Debian 11, 12
- Ubuntu 22.04, 24.04
All packages built natively for x86_64 and aarch64 (ARM64).
Ready to Replace OpenResty with Something Better?
Same Lua power. More modules. Latest NGINX. Proper packaging.
Subscribe Now — From $10/moCancel anytime. No contracts. Instant access.
Read the complete NGINX Lua Module guide →Frequently Asked Questions
lua5.1-resty-*). Install them with dnf or apt — no OpenResty required. Browse the full library catalog. nginx-module-lua and your lua-resty libraries as packages. Copy your existing nginx.conf — it works as-is. Add the load_module directives for NDK and Lua. Your Lua code requires zero changes because it is the same module underneath. See the complete Lua module guide for detailed steps. ngx_http_lua_module) was originally developed by the OpenResty project and is open source. OpenResty bundles it with NGINX and libraries into a single package. GetPageSpeed ships the exact same module as a standalone dynamic module, giving you the freedom to combine it with any other NGINX modules and always run the latest NGINX.