π License Selection Guide
Choose the right license for your project
Quick Comparisonβ
| License | Permissions | Conditions | Use Case |
|---|---|---|---|
| MIT | Commercial use, modify, distribute | Must include license | Maximum freedom |
| Apache-2.0 | Commercial use, modify, distribute, patent use | Must include license + changes | Enterprise-friendly |
| GPL-3.0 | Commercial use, modify, distribute | Must open source derivatives | Strong copyleft |
π’ MIT Licenseβ
Best for: Maximum adoption, libraries, tools
You CAN:β
- β Use commercially
- β Modify
- β Distribute
- β Use privately
You MUST:β
- π Include license and copyright notice
You CANNOT:β
- β Hold author liable
Example Projectsβ
- React, Vue.js, jQuery, Node.js, Rails
π΅ Apache License 2.0β
Best for: Enterprise software, patent protection needed
You CAN:β
- β Use commercially
- β Modify
- β Distribute
- β Use privately
- β Use patents
You MUST:β
- π Include license and copyright notice
- π State changes made
You CANNOT:β
- β Hold author liable
- β Use trademarks
Example Projectsβ
- Kubernetes, TensorFlow, Apache projects
π΄ GPL-3.0 License (Current)β
Best for: Projects that must remain open source
You CAN:β
- β Use commercially
- β Modify
- β Distribute
- β Use privately
You MUST:β
- π Include license and copyright notice
- π State changes made
- π Disclose source code
- π Use same license for derivatives
You CANNOT:β
- β Hold author liable
Example Projectsβ
- Linux kernel, WordPress, GIMP
π€ How to Chooseβ
Do you want maximum adoption?
βββ Yes β MIT
βββ No
β
βββ Do you need patent protection?
β βββ Yes β Apache-2.0
β βββ No
β β
β βββ Do you want derivatives to stay open source?
β βββ Yes β GPL-3.0
β βββ No β MIT or Apache-2.0
π Changing the Licenseβ
From this Templateβ
- Delete the current
LICENSEfile - Create a new
LICENSEfile with your chosen license - Update copyright year and name in the new license
- Update any license badges in
README.md
License Text Sourcesβ
- MIT: https://choosealicense.com/licenses/mit/
- Apache-2.0: https://choosealicense.com/licenses/apache-2.0/
- GPL-3.0: https://choosealicense.com/licenses/gpl-3.0/
π Additional Resourcesβ
- Choose a License - GitHub's license chooser
- SPDX License List - Full list of open source licenses
- OSI Approved Licenses - Open Source Initiative
β οΈ Disclaimerβ
This guide is for informational purposes only and does not constitute legal advice. Consult a legal professional for specific licensing questions.