HACKER Q&A
📣 reggirt

Best License for OSS Project


I'm planning on open sourceing some hobby projects of mine. Nothing special, really. What is the best license to use for this matter? Anyone should be able to use the code in whatever manner they wish. Thanks for the advise.


  👤 xvello Accepted Answer ✓
If you expect to receive external contributions, the Apache 2.0 license can be a pretty good choice, because it has a clause to automatically grant you a license on contributions (be them code or just ideas):

> Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions.

I am using it for https://letsblock.it, so that I can ensure the filter corpus is in the right license without requiring a CLA.


👤 cuken
I would suggest you check: https://choosealicense.com/

Breaks it down nicely.


👤 brudgers
CC-0 is designed to be equivalent to placing copywritten work in the public domain (there are jurisdictions that do not have a legal structure for public domain).

There are all sorts of other licenses of course and if CC-0 doesn't meet your needs, talk with your lawyer because any restrictions you want to enforce will require lawyering up to enforce. There are no "gnu police" and MIT an BSD don't enforce the MIT and BSD licenses.

Good luck.


👤 karmakaze
Look at choosealicense.com as suggested.

From what you've said, consider the "MIT" or "MIT No Attribution" (MIT-0) License.

https://github.com/aws/mit-0


👤 m0llusk
Public domain is controversial but has an extreme lack of friction: https://unlicense.org/

👤 jimmy2020
MIT is the best for everyone and best for you because it gives you flexibility when you have contributors