Difference between revisions of "rel-jslicense"

From Microformats Wiki
Jump to navigation Jump to search
(note no current issues, verify EFF live example in wild, note research of previous examples / other techniques used for indicating js license, mv Consumers to Implementations)
(→‎Examples in the wild: add FSF.org, note use on a href)
Line 20: Line 20:
== Examples in the wild ==
== Examples in the wild ==
Examples of sites publishing rel=jslicense:
Examples of sites publishing rel=jslicense:
* [https://www.eff.org/ EFF.org]
* [https://www.eff.org/ EFF.org] (on <code>a href</code>)
* [http://www.fsf.org FSF.org] (on <code>a href</code>)
* ...
* ...

Latest revision as of 21:43, 2 July 2015

This article is a stub. You can help the microformats.org wiki by expanding it.

rel=jslicense is a method for linking to a URL to both the license and source code for the JavaScript programs provided by a given page or site.


On a page that provides multiple JavaScript programs, publishers should provide a visible hyperlink to a page that provides information about those programs's license and source code.

For an example of how to provide such a page with licensing information (and some reasons why), see: JavaScript License Web Label.


The JavaScript Web Labels recommendation also allows for inline JavaScript; such JavaScript may not appear on the Web Labels page.

Consuming Code

Consuming code should parse for rel=jslicense per normal HTML5 parsing rules, and if present, provide a UI to the user summarizing/describing those licenses, e.g. it could tell the user if the JS on the page was all open source, a free software license, etc.


None currently. rel-jslicense-issues can be created if necessary, or add brief issues inline below.

  • ...

Examples in the wild

Examples of sites publishing rel=jslicense:


Implementations of rel-jslicense, i.e. consuming code, UIs for publishing rel-jslicense etc.


While the links with rel=jslicense should link to human readable table of javascript license and source information, there is also a browser extension, LibreJS designed to parse these pages and to check whether or not the JavaScript is provided under a free software license.


Previous Examples

Examples of other various methods sites have used to markup and/or publish licenses for their javascript (provided here inline for convenience, could be moved to jslicense-examples for research archival if necessary)

  • DefectiveByDesign.org javascript
    • inline script tag in page with demarkers @licstart @licend inside /* */ JS comments
    • Table of rows of a link to a .js file and a link to its license
  • h-node.org javascript
    • Table of rows of a link to a .js file and a link to its license

See Also

Related pages