3

I want to release an npm (NodeJS) module that will be a development dependency for extensions built for my product (will be used in testing). I don't want this module to be used in any released derivative work (commercial or free, open or closed source).

Is there an existing suitable license that I can use?

Nikolay Tsenkov
  • 626
  • 5
  • 11
  • 8
    The restriction of derived works would prevent your software from being open source, as defined by the Open Source Initiative. – Thomas Owens Mar 14 '14 at 16:35
  • 2
    How about writing your own? If I understand you right, you don't want any person to use it or just for private use? – Knerd Mar 14 '14 at 16:41
  • 1
    That would be "copyright". Open-source licenses are designed to allow greater freedom than copyright allows. If you don't adopt an open-source license your code still falls under copyright, which denies distribution. However, once you publish your code, how would you stop anyone from using it in their unpublished work? – Ant Mar 14 '14 at 16:44
  • I have edited the question - does that change things (if people can develop using it, but for personal, non-public use only)? – Nikolay Tsenkov Mar 14 '14 at 17:01
  • 1
    You say that publishing the code is a requirement of npm, where did you read that? – Encaitar Mar 14 '14 at 18:20
  • Why not just copyright it, make the source available and only pursue legal action against those who use it for something other than personal use? – JeffO Mar 14 '14 at 18:51
  • That's what I will probably go for. I am writing to some of the npm guys to check if that's ok with them. – Nikolay Tsenkov Mar 15 '14 at 08:59
  • I have spoken with someone from npm and they are fine with a copyright notice "All rights reserved" in the LICENSE file. – Nikolay Tsenkov Mar 16 '14 at 06:01
  • Latest npm requires SPDX license expression... – shaunc Jul 04 '15 at 02:01

3 Answers3

6

No, there are no major software licenses that allow only personal use. Unless for some reason you want someone to be able to rebuff you when you try and bring them to court for going too far, there's no reason to write a formal license of any kind.

A simple copyright statement is all that you really need. And even that may be overkill, if your product is otherwise still unreleased and in testing.

Update from the guy that asked the question: I have spoken with someone from npm and they are fine with a copyright notice "All rights reserved" in the LICENSE file.

Nikolay Tsenkov
  • 626
  • 5
  • 11
DougM
  • 6,371
  • So, putting a copyright notice in the root of the module will simply state that I keep all rights reserved for myself and people will still be able to get the module and use it in testing, right? If I understood correctly, this should be exactly what I am looking for. – Nikolay Tsenkov Mar 15 '14 at 08:10
  • in most cases, yes, simple copyright and permission is enough for testing. (there are exceptions and special cases, but you're likely not to encounter them in development of your own code that you distribute to paid or volunteer testers.) – DougM Mar 15 '14 at 15:02
  • To quote Wikipedia: The phrase continues to hold popular currency in spite of having no legal effect. – WoodrowShigeru Feb 12 '23 at 16:07
3

Such a license cannot possibly exist. The requirements you list are inconsistent. You want the license to be open-source, but you want it to violate the definition of "open-source". A license cannot be open-source and not open-source at the same time.

Jörg W Mittag
  • 103,514
  • 8
    Well, only to the FSF evangelists true believers definition of "open-source". But who says they have the only valid definition of what "open source" means? – Doc Brown Mar 14 '14 at 17:15
  • 1
    I didn't realise that open-source has so strict definition. What I meant by open-source, is that people will be able to see the actual, non-obfuscated source code. – Nikolay Tsenkov Mar 14 '14 at 17:19
  • 5
    @DocBrown: I can assure you that the Open Source Definition was not written by an "FSF evangelist true believer" (whatever that is). In fact, the OSI was specifically formed by FSF skeptics in opposition to "FSF evangelist true believers". – Jörg W Mittag Mar 14 '14 at 17:24
  • 4
    There is a license that can be both open-source and not open-source at the same time. It's called "Schrödinger's license". – Idan Arye Mar 16 '14 at 10:08
-2

This is a fantastic question.

This chart is Github's official link to help you choose a software license.

https://choosealicense.com/appendix/

Interesting that EVERY license they've listed requires the exact same terms for "Commercial" and "Private" use, which doesn't make any sense considering the funding needs of software and difference in ability to pay, especially from very large organizations.

(Note, I'm not saying there shouldn't be options that allow the same terms for commercial and private use, I'm saying it's very strange that not one single option that treats those two differently is listed, regardless of open source ideologies.)

One ANSWER is to use the All Rights Reserved license:

All Rights Reserved

https://gist.github.com/Techcable/e7bbc22ecbc0050efbcc

Then you can just sell licenses to organizations and exempt individuals from license requirements.

erwin
  • 105