Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Javascript scripting

5 sites No security coverage Drupal 10–11
View on drupal.org

This module allows you to run JavaScript code on the server side within Drupal. It converts your JavaScript into PHP, ensuring secure and efficient execution similar to spreadsheet formulas, and provides controlled output without direct external script execution.

Javascript scripting

The "JavaScript Scripting" module functions similarly to the formula feature in spreadsheet software, processing input parameters to yield results within a server-side environment.

Like formulas process data in a spreadsheet cell, this module facilitates the execution of user-defined JavaScript snippets within a Drupal field. These scripts, however, extend entity functionality and maintain strict security and control standards, paralleling PHP's server-side execution capabilities.

Highlights:

  • Code Conversion: JavaScript is transpiled into PHP, utilizing Drupal's twig-like caching system to optimize performance and ensure efficient script execution.
  • Server-Side Execution: Circumvents client-side vulnerabilities and negates the need for external JavaScript engines or runtimes.
  • Controlled Scripting: The module disallows direct import or execution of external JavaScript, enforcing tight execution parameters within Drupal’s ecosystem.
  • Explicit Output: Mirroring a spreadsheet cell output that's defined by its formula, this module governs script outputs, avoiding unforeseen side effects on the client-side and the user interface.

Leveraging the flexibility of JavaScript with the security and reliablity of PHP execution, developers are empowered to enrich Drupal entities without compromises in performance or security.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Sep 2025
Latest release
11 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Releases

Version Type Core Release date
1.0.1 Stable 10–11 Sep 12, 2025