Plugin Development - Introduction
lua-nginx-module enables Lua scripting capabilities in Nginx. Instead of compiling Nginx with this module, Kong is distributed along with , which already includes lua-nginx-module. OpenResty is not a fork of Nginx, but a bundle of modules extending its capabilities.
Plugins consist of Lua modules interacting with the request/response objects or streams via the Plugin Development Kit (PDK) to implement arbitrary logic. The PDK is a set of Lua functions that a plugin can use to facilitate interactions between plugins and the core (or other components) of Kong.