Nginx Releases Njs 1.0.0 JavaScript Module

nginx has recently published the release of njs 1.0.0, a module designed to integrate the JavaScript language interpreter into the nginx http server. This module allows users to incorporate JavaScript scripts into configuration files, enabling the extension of nginx’s capabilities. These scripts can be utilized to implement advanced logic for request processing, generate configurations, dynamically produce responses, modify requests or responses, and efficiently create stubs to address issues in web applications. The project code is primarily written in C and is distributed under the BSD license.

With the release of njs 1.0.0, the proprietary JavaScript engine njs is now deprecated. It is recommended to use the QuickJS engine, developed by Fabris Bellar, as the main engine moving forward. Some of the new features in njs 1.0.0 include enhanced request checking in the ngx.fetch() method and the standardization of exception handling classes for various engines.

/Reports, release notes, official announcements.