So, I'm developing a web application, and I'm using a ton of npm packages while doing that. All of those packages are free and open source, and they are distributed under common licences as MIT, GPL, BSD etc. I'm not modyfying any of the packages.

Most of those licences require me to include licence text or url, and authors in a source file. Hence, I have two questions:

  1. If the code is part of the backend server, and it is never distributed anywhere, and runs only on my computer, should I include the copyrights note somewhere? If I should do so, then where?
  2. Some code is used in the frontend - it is sent to the client, and the client's browser executes it. I understand that in this case, I have to include a copyright notice somewhere. However, all the packages already include licence somewhere in them, so maybe I don't have to do that?

1 Answer 1


Open Source licenses have different scopes and different impacts, that's why there are so many different licenses. You will have to look at each of the licenses separately. Most obligations for you would only be triggered as soon as you distribute your software, some if you modify any code of libraries, some if you combine components of one (copyleft) license with other components with different licenses.

Your question is very generic, therefore you have to check how it applies to your situation and the specific npm packages you use.

For a backend server, which is under your control and where the code is not distributed to others, the use of OSS does not count as 'distribution', so you will not have to comply with respective obligations in the licenses. However, if your backend server is also serving 3rd parties, then you will need to check if you have included code which is under the AGPL or similar licenses.

For the frontend server you have to consider 2 separate cases: a) code which only runs on the server; and b) code which is sent to the browser of the client.

For a) similar considerations apply as for the backend server.

For b) you have to carefully consider all aspects of the OSS licenses. Not only HTML/XML code is affected here, but also Javascript, databases, images, text, etc. Depending on the license language you will have to identify the authors/copyright holders, provide a copy of the license language and possibly of Notice files (you can easily do that in an 'About' page on your frontend server). Even if some of that information is included in the headers of the files you are distributing, this is not the place where 'normal users' would search for it, and often it is incomplete (license language and/or notice files missing). You will also have to check the license compatibility of the different components. Some licenses don't go well with each other (see for example this page).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.