Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Restrictions of GPL on javascript libraries [closed]

Tags:

javascript

If I use GPL-licensed JavaScript components on my website, would it be considered as a release to the public (as client-side code of the components is loaded to users' browsers via http) and I have to "open-source" the whole website?

So, can we say that the usage of JavaScript components on a website is distribution of the code and it involves the distribution of the whole website code?

Hope, the question is clear and you can help me to understand this aspect of GPL.

like image 744
Aquatic Avatar asked Aug 06 '09 14:08

Aquatic


People also ask

Can I use GPL in closed source?

@eMAD parts of it can, yes. For example if it has GPLed JavaScript, then the source code for that must be available.

Can I stop others from using my program under the terms of GPL?

No. The GPL says that your modified versions must carry all the freedoms stated in the GPL. Thus, anyone who receives a copy of your version from you has the right to redistribute copies (modified or not) of that version.

Can you sell GPL-licensed software?

4. Can you sell GPL software/code? Yes, the GPL license allows users to sell the original as well as the modified software. It may be confusing, but free software is referred to as free in terms of freedom and not in terms of price.

How do I comply with GPL?

To comply with the GPL, you must engineer your process with a good approach, toolbox and policies. Sometimes this means scanning source code and automating compliance work with tools like FOSSA. Sometimes it means scanning binary code to confirm its content.


1 Answers

I am not a lawyer. I have talked to lawyers about using the GPL and LGPL for code to be interpreted / dynamically linked into non-free software. We all got big headaches. The question isn't just whether you have to release the rest of your site under GPL. It's whether a non-free browser can legally run GPL code.

My best non-legal advice is to never try to use the GPL on Javascript code. I'd never release a Javascript library under GPL, and if I found some code I wanted to use I'd try to get the author to give me an exception. The LGPL may be a better choice, but that license is so complex I suggest avoiding it as well.

The FSF themselves have an answer for you in their FAQ If a programming language interpreter has a license that is incompatible with the GPL, can I run GPL-covered programs on it?. That answer itself is frustratingly ambiguous, but it suggests paths where you could run GPL code in a non-GPL browser. You may also find the FSF essay The Javascript Trap interesting, although again it doesn't really give a clear answer to your question.

For context, it helps to remember that the GPL and LPGL were written in the Unix era when most everything was statically linked. No dynamic linking, no interpreted languages where the scripts themselves were considered valuable intellectual property, etc.

like image 97
Nelson Avatar answered Sep 30 '22 05:09

Nelson