LibreJS

Component ID

1835210

Component name

LibreJS

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

1564

Component created

Component changed

Component body

LibreJS module provides compatibility with the LibreJS browser plugin. It allows site administrators to configure the license and source code URL of each JavaScript file used by the site, and adds metadata to pages indicating that all inline JavaScript in the page is GPL v3+.

After installing the module, visit admin/config/development/librejs to configure the license and source code URL for each JavaScript file. LibreJS module will only discover JavaScript files as they are loaded when users visit various pages, so you will have to visit this page repeatedly to configure additional JavaScript files which have been detected.

The list of JavaScript licenses and source code URLs can then be viewed at librejs/jslicense by all roles granted the "access JavaScript license information" permission.

The license for inline and aggregated JavaScript code is GPL v3+ for compatibility with any Apache License v2.0 or AGPL v3 code which may be present (Apache License v2.0 and AGPL v3 are not compatible with GPL v2).

Note: You should only install this module if you are sure all inline JavaScript on your site can in fact be distributed under GPL v3+, and is not proprietary. Non-inline JavaScript (local files and external URLs) may use other licenses. Because the aggregated JavaScript files are tagged as GPL v3+, JavaScript files which have a non-free license (or have not yet had their license configured) will no longer be aggregated while LibreJS module is enabled.