-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathLICENSE
159 lines (106 loc) · 7.23 KB
/
LICENSE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
# Kohaku Code License 1.0
**Published by KohakuBlueLeaf**
## Purpose
The **Kohaku Code License** aims to provide maximum freedom for users to work with software and source code while protecting contributors from liability and ensuring the freedom of end users. It incorporates commercial usage restrictions to balance open access with sustainable development.
## Definitions
- **Software**: Any computer program, application, script, library, framework, or other software components, including source code, compiled code, and associated documentation.
- **Source Code**: The preferred form for making modifications to the Software, including but not limited to programming language source files, build scripts, configuration files, and documentation.
- **Derived Software**: Any software that is based on, incorporates, or is derived from the original Software. For Derived Software to qualify under this license, it must:
- Include complete source code
- Provide build instructions or scripts necessary to compile/build the software
- Include documentation sufficient for users to understand basic usage
Additionally, any Derived Software that is part of a larger software system must:
- Publish all component source code under this license
- Provide build and deployment scripts that enable recipients to compile and run the complete system
- Ensure that users of the system can be classified as **Software Users**
- **Binary Distribution**: Any compiled, packaged, or otherwise non-source code form of the Software.
- **Modify**: To alter, transform, or build upon the Software or Source Code.
- **Service Provider**: An entity that uses the Software to offer services to **Software Users**, thereby making the **Software Users** the recipients of the service.
- **Software User**: Any individual or entity that uses the Software, either directly or through services provided by a Service Provider.
- **End-User**: Any individual or entity that utilizes a service or product provided by a Service Provider which incorporates the Software.
- **Non-Commercial Purpose**: Uses that do not involve direct or indirect payment arising from the use of the Software, including personal use, research, experimentation, testing, or non-commercial organizational use.
- **Commercial Usage**: Any entity providing any kind of service or product using the Software in any commercial capacity.
## License Grant
### 1. General Permissions
Subject to compliance with this License, KohakuBlueLeaf grants you a non-exclusive, worldwide, non-transferable, non-sublicensable, revocable, royalty-free, and limited license to access, use, modify, create Derived Software, and distribute the Software for **Non-Commercial Purposes** and **Commercial Usage** under certain conditions.
### 2. Categories of Use
#### a. Direct Users
Individuals or entities that use the Software directly for their personal or internal purposes.
#### b. Service Providers
Entities that use the Software to offer services or products to Software Users.
### 3. User Rights
Software Users retain all rights to any data, content, or outputs they create using the Software.
### 4. Derivative Software
Any Derived Software must be published under the **Kohaku Code License**. The minimal requirements include:
- Complete source code
- Build instructions or scripts
- Basic usage documentation
**Additional Requirements for Derived Software in Larger Systems:**
- All component software must be published under the **Kohaku Code License**
- Complete build and deployment scripts must be provided
- Documentation must be sufficient for basic usage
- Source code for all components must be available
## Restrictions
### 1. Commercial Usage
- **Definition**: **Commercial Usage** is defined as any entity providing any kind of service or product using the Software in any commercial capacity.
- **Conditions for Requiring a Custom License**: Commercial Usage is prohibited **only if both** of the following conditions are met:
- **Total Revenue** exceeds $25,000 USD
- **Usage Duration** exceeds 3 months
- **Revenue Threshold and Usage Duration**:
- **Trial Period**: Entities are allowed to engage in **Commercial Usage** without a custom license for a trial period of **up to 3 months**, regardless of total revenue
- **Revenue Limit**: Entities with **Total Revenue** below or equal to $25,000 USD are permitted to continue **Commercial Usage** without a custom license
- **Exceeding Both Thresholds**: If an entity's **Total Revenue** exceeds $25,000 USD and the **Commercial Usage** period exceeds 3 months, the entity must request an exclusive custom license from the author
- **Requesting a Custom License**: Contact [Your Contact Email] to request a custom license for Commercial Usage exceeding both thresholds
### 2. Prohibited Uses
You may not use, modify, copy, reproduce, create Derived Software of, or distribute the Software for:
- Military purposes
- Surveillance purposes
- Biometric processing
- Any activity that infringes on third-party rights
- Any use violating applicable laws
- Circumventing security measures
- Imposing additional restrictions on recipients
### 3. Distribution Requirements
When distributing the Software or Derived Software, you must:
- Include complete source code
- Include this License
- Include build instructions
- Include the following notice:
```
"This software is licensed under the Kohaku Code License by KohakuBlueLeaf.
Copyright 2024 KohakuBlueLeaf.
IN NO EVENT SHALL KohakuBlueLeaf BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER
LIABILITY ARISING FROM THE USE OF THIS SOFTWARE."
```
- For Derived Software:
- Clearly indicate modifications
- Provide complete build system
- Document basic usage
- For Service Providers:
- Clearly indicate the use of the Software
- Provide attribution to original authors
- Make license terms available to users
## No Harm and No Liability
### 1. No Harm
Contributors are not liable for any harm arising from the creation or distribution of the Software.
### 2. No Liability
The Software is provided "as is" without warranty of any kind. Contributors are not liable for damages arising from Software use.
## Patent Grant
Contributors grant you a patent license for any patent claims they can license that are necessarily infringed by the Software.
## User Rights
Software Users retain all rights to data, content, and outputs created using the Software.
## Interpretation
Ambiguous terms shall be interpreted in favor of maximum freedom for users while preserving the core principles of this License.
## Acceptance
Using the Software constitutes acceptance of these terms.
## Termination
This License terminates automatically upon violation of any terms.
## Indemnification
You agree to indemnify KohakuBlueLeaf against claims arising from your use of the Software.
## General Provisions
- **Governing Law**: This License is governed by the laws of the Republic of China (Taiwan), without regard to conflict of law principles.
- **Severability**: Invalid provisions shall not affect other terms
- **Entire Agreement**: This License represents the complete agreement
- **No Waiver**: Failure to enforce does not constitute waiver
## Revisions
KohakuBlueLeaf may publish revised versions of this License. You may choose to use terms of any later version.