从 8 种流行的开源许可证(MIT、Apache 2.0、GPL-3、BSD、MPL 2.0、ISC、Unlicense)中选择。并排查看权限 / 条件 / 限制,下载即可提交的 LICENSE 文件。
MIT License
choosealicense.comMIT License Copyright (c) 2026 Your Name Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
选择开源许可证是一行决定,但有多年后果。MIT 和 ISC 是宽松的(做任何事,只需保留声明)。Apache 2.0 添加明确的专利授权。GPL-3 是 copyleft(派生作品必须保持开源)。MPL 2.0 是文件级 copyleft(对 MPL 文件的更改必须保持开源,但可以与闭源代码混合)。OSS 许可证选择器将 8 种流行许可证并排显示,包括权限 / 条件 / 限制(来自 choosealicense.com 词汇),并生成可立即提交的 LICENSE 文件,其中代入你的姓名和年份。纯 JavaScript,在浏览器中运行 —— 无上传,无注册,无追踪。许可证本身是公共领域文本。
我想要最大采用率(MIT/Apache 模式): → MIT 或 Apache-2.0 我想要专利保护(Apache 2.0 授予): → Apache-2.0 我想要 copyleft(派生作品必须保持开源): → GPL-3.0 我想要文件级 copyleft(可与专有混合): → MPL-2.0 我想要最短的许可证(旧但仍有效): → ISC 或 BSD-2-Clause 我想要带禁止背书条款的 BSD: → BSD-3-Clause 我想要发布到公共领域: → Unlicense