Skip to content

Commit 654bac4

Browse files
authored
chore(license): no one may sell Piquel, while its SDKs stay free for any app (#327)
I want Piquel to stay as free as Apache 2.0 lets it be, except that no one should make money off it. Everything moves to the [PolyForm Noncommercial License 1.0.0](https://polyformproject.org/licenses/noncommercial/1.0.0): anyone may use, change and share it for any purpose except a commercial one. The SDKs stay Apache 2.0, so any app, paid or not, can still sign its users in with Piquel. That means `crates/auth-sdk`, `packages/auth`, and `crates/common`, the one workspace crate the Rust SDK depends on. - `LICENSE` holds the PolyForm text and names the Apache folders. `LICENSE-APACHE` holds the Apache text. - The workspace licence is now `PolyForm-Noncommercial-1.0.0`, and `auth-sdk` and `common` override it. `cargo deny` allows PolyForm only for Piquel's own crates, by name. - The homepage card ("Open source" → "Public source"), the status bar, the terms (§6) and the README now describe the split. Follow-ups: - The `Required Notice` line names "Piquel" as the copyright holder. Swap in a legal name if needed. - Copy `LICENSE-APACHE` into each SDK package before publishing it. Proof: `cargo fmt --check`, clippy `-D warnings`, `cargo deny check advisories licenses` and piquel-web/piquel-ui tests pass. `cargo tree -p piquel-auth` shows only Apache workspace crates. I ran piquel-web locally and checked that the homepage, status bar and `/terms` show the new text. Reviewed with review-loop: 2 rounds with 2× GPT-6.1 Sol and Claude Opus 5.5. Verdict: approved > [!NOTE] > Written by Claude Opus 5.5 in Claude Code and reviewed by GPT-6.1 Sol and Claude Opus 5.5 (via T3 Code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## License and package metadata - Set the Cargo workspace license to `PolyForm-Noncommercial-1.0.0`. - Set `crates/auth-sdk` and `crates/common` to `Apache-2.0` directly. - Added `LICENSE` with the PolyForm Noncommercial License 1.0.0 terms. It identifies `crates/auth-sdk`, `crates/common`, and `packages/auth` as Apache-licensed. - Added `LICENSE-APACHE` with the Apache License 2.0 terms. - Updated `deny.toml` to allow PolyForm for the named Piquel crates. Its comment distinguishes those crates from third-party dependencies. ## Documentation and user-facing copy - Added a README license section describing the PolyForm license for Piquel and the Apache license for the SDK and common-code paths. - Updated the terms page to describe the Apache-licensed SDKs and dependencies, the PolyForm-licensed remaining code, and the distinction between code licenses and service terms. - Changed the homepage feature label from “Open source” to “Public source.” Its copy describes the noncommercial limits on Piquel code and Apache 2.0 licensing for SDK use. - Changed the status-bar wording from “Piquel is open source” to “Piquel's code is public.” ## Validation status The supplied change summary reports successful formatting, lint, license/advisory, and web/UI test checks. These results were not independently verified here. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 9f176b6 commit 654bac4

10 files changed

Lines changed: 316 additions & 13 deletions

File tree

‎Cargo.toml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ members = [
1313

1414
[workspace.package]
1515
edition = "2024"
16-
license = "Apache-2.0"
16+
# Non-commercial by default. The SDK and the crate it depends on (auth-sdk,
17+
# common) override this with Apache-2.0, so any application can use them.
18+
license = "PolyForm-Noncommercial-1.0.0"
1719
repository = "https://github.com/piquel-fr/piquel-fr"
1820
version = "0.1.0"
1921

‎LICENSE‎

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
Required Notice: Copyright 2026 Piquel (https://piquel.fr)
2+
3+
This license covers everything in this repository except the SDKs and the crate
4+
they depend on: crates/auth-sdk, crates/common and packages/auth.
5+
Those are licensed under the Apache License 2.0, in LICENSE-APACHE.
6+
7+
# PolyForm Noncommercial License 1.0.0
8+
9+
<https://polyformproject.org/licenses/noncommercial/1.0.0>
10+
11+
## Acceptance
12+
13+
In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
14+
15+
## Copyright License
16+
17+
The licensor grants you a copyright license for the software to do everything you might do with the software that would otherwise infringe the licensor's copyright in it for any permitted purpose. However, you may only distribute the software according to [Distribution License](#distribution-license) and make changes or new works based on the software according to [Changes and New Works License](#changes-and-new-works-license).
18+
19+
## Distribution License
20+
21+
The licensor grants you an additional copyright license to distribute copies of the software. Your license to distribute covers distributing the software with changes and new works permitted by [Changes and New Works License](#changes-and-new-works-license).
22+
23+
## Notices
24+
25+
You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms or the URL for them above, as well as copies of any plain-text lines beginning with `Required Notice:` that the licensor provided with the software. For example:
26+
27+
> Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
28+
29+
## Changes and New Works License
30+
31+
The licensor grants you an additional copyright license to make changes and new works based on the software for any permitted purpose.
32+
33+
## Patent License
34+
35+
The licensor grants you a patent license for the software that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the software.
36+
37+
## Noncommercial Purposes
38+
39+
Any noncommercial purpose is a permitted purpose.
40+
41+
## Personal Uses
42+
43+
Personal use for research, experiment, and testing for the benefit of public knowledge, personal study, private entertainment, hobby projects, amateur pursuits, or religious observance, without any anticipated commercial application, is use for a permitted purpose.
44+
45+
## Noncommercial Organizations
46+
47+
Use by any charitable organization, educational institution, public research organization, public safety or health organization, environmental protection organization, or government institution is use for a permitted purpose regardless of the source of funding or obligations resulting from the funding.
48+
49+
## Fair Use
50+
51+
You may have "fair use" rights for the software under the law. These terms do not limit them.
52+
53+
## No Other Rights
54+
55+
These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else. These terms do not imply any other licenses.
56+
57+
## Patent Defense
58+
59+
If you make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
60+
61+
## Violations
62+
63+
The first time you are notified in writing that you have violated any of these terms, or done anything with the software not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 32 days of receiving notice. Otherwise, all your licenses end immediately.
64+
65+
## No Liability
66+
67+
***As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.***
68+
69+
## Definitions
70+
71+
The **licensor** is the individual or entity offering these terms, and the **software** is the software the licensor makes available under these terms.
72+
73+
**You** refers to the individual or entity agreeing to these terms.
74+
75+
**Your company** is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. **Control** means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
76+
77+
**Your licenses** are all the licenses granted to you for the software under these terms.
78+
79+
**Use** means anything you do with the software requiring one of your licenses.

‎LICENSE-APACHE‎

Lines changed: 202 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,202 @@
1+
2+
Apache License
3+
Version 2.0, January 2004
4+
http://www.apache.org/licenses/
5+
6+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7+
8+
1. Definitions.
9+
10+
"License" shall mean the terms and conditions for use, reproduction,
11+
and distribution as defined by Sections 1 through 9 of this document.
12+
13+
"Licensor" shall mean the copyright owner or entity authorized by
14+
the copyright owner that is granting the License.
15+
16+
"Legal Entity" shall mean the union of the acting entity and all
17+
other entities that control, are controlled by, or are under common
18+
control with that entity. For the purposes of this definition,
19+
"control" means (i) the power, direct or indirect, to cause the
20+
direction or management of such entity, whether by contract or
21+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
22+
outstanding shares, or (iii) beneficial ownership of such entity.
23+
24+
"You" (or "Your") shall mean an individual or Legal Entity
25+
exercising permissions granted by this License.
26+
27+
"Source" form shall mean the preferred form for making modifications,
28+
including but not limited to software source code, documentation
29+
source, and configuration files.
30+
31+
"Object" form shall mean any form resulting from mechanical
32+
transformation or translation of a Source form, including but
33+
not limited to compiled object code, generated documentation,
34+
and conversions to other media types.
35+
36+
"Work" shall mean the work of authorship, whether in Source or
37+
Object form, made available under the License, as indicated by a
38+
copyright notice that is included in or attached to the work
39+
(an example is provided in the Appendix below).
40+
41+
"Derivative Works" shall mean any work, whether in Source or Object
42+
form, that is based on (or derived from) the Work and for which the
43+
editorial revisions, annotations, elaborations, or other modifications
44+
represent, as a whole, an original work of authorship. For the purposes
45+
of this License, Derivative Works shall not include works that remain
46+
separable from, or merely link (or bind by name) to the interfaces of,
47+
the Work and Derivative Works thereof.
48+
49+
"Contribution" shall mean any work of authorship, including
50+
the original version of the Work and any modifications or additions
51+
to that Work or Derivative Works thereof, that is intentionally
52+
submitted to Licensor for inclusion in the Work by the copyright owner
53+
or by an individual or Legal Entity authorized to submit on behalf of
54+
the copyright owner. For the purposes of this definition, "submitted"
55+
means any form of electronic, verbal, or written communication sent
56+
to the Licensor or its representatives, including but not limited to
57+
communication on electronic mailing lists, source code control systems,
58+
and issue tracking systems that are managed by, or on behalf of, the
59+
Licensor for the purpose of discussing and improving the Work, but
60+
excluding communication that is conspicuously marked or otherwise
61+
designated in writing by the copyright owner as "Not a Contribution."
62+
63+
"Contributor" shall mean Licensor and any individual or Legal Entity
64+
on behalf of whom a Contribution has been received by Licensor and
65+
subsequently incorporated within the Work.
66+
67+
2. Grant of Copyright License. Subject to the terms and conditions of
68+
this License, each Contributor hereby grants to You a perpetual,
69+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70+
copyright license to reproduce, prepare Derivative Works of,
71+
publicly display, publicly perform, sublicense, and distribute the
72+
Work and such Derivative Works in Source or Object form.
73+
74+
3. Grant of Patent License. Subject to the terms and conditions of
75+
this License, each Contributor hereby grants to You a perpetual,
76+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77+
(except as stated in this section) patent license to make, have made,
78+
use, offer to sell, sell, import, and otherwise transfer the Work,
79+
where such license applies only to those patent claims licensable
80+
by such Contributor that are necessarily infringed by their
81+
Contribution(s) alone or by combination of their Contribution(s)
82+
with the Work to which such Contribution(s) was submitted. If You
83+
institute patent litigation against any entity (including a
84+
cross-claim or counterclaim in a lawsuit) alleging that the Work
85+
or a Contribution incorporated within the Work constitutes direct
86+
or contributory patent infringement, then any patent licenses
87+
granted to You under this License for that Work shall terminate
88+
as of the date such litigation is filed.
89+
90+
4. Redistribution. You may reproduce and distribute copies of the
91+
Work or Derivative Works thereof in any medium, with or without
92+
modifications, and in Source or Object form, provided that You
93+
meet the following conditions:
94+
95+
(a) You must give any other recipients of the Work or
96+
Derivative Works a copy of this License; and
97+
98+
(b) You must cause any modified files to carry prominent notices
99+
stating that You changed the files; and
100+
101+
(c) You must retain, in the Source form of any Derivative Works
102+
that You distribute, all copyright, patent, trademark, and
103+
attribution notices from the Source form of the Work,
104+
excluding those notices that do not pertain to any part of
105+
the Derivative Works; and
106+
107+
(d) If the Work includes a "NOTICE" text file as part of its
108+
distribution, then any Derivative Works that You distribute must
109+
include a readable copy of the attribution notices contained
110+
within such NOTICE file, excluding those notices that do not
111+
pertain to any part of the Derivative Works, in at least one
112+
of the following places: within a NOTICE text file distributed
113+
as part of the Derivative Works; within the Source form or
114+
documentation, if provided along with the Derivative Works; or,
115+
within a display generated by the Derivative Works, if and
116+
wherever such third-party notices normally appear. The contents
117+
of the NOTICE file are for informational purposes only and
118+
do not modify the License. You may add Your own attribution
119+
notices within Derivative Works that You distribute, alongside
120+
or as an addendum to the NOTICE text from the Work, provided
121+
that such additional attribution notices cannot be construed
122+
as modifying the License.
123+
124+
You may add Your own copyright statement to Your modifications and
125+
may provide additional or different license terms and conditions
126+
for use, reproduction, or distribution of Your modifications, or
127+
for any such Derivative Works as a whole, provided Your use,
128+
reproduction, and distribution of the Work otherwise complies with
129+
the conditions stated in this License.
130+
131+
5. Submission of Contributions. Unless You explicitly state otherwise,
132+
any Contribution intentionally submitted for inclusion in the Work
133+
by You to the Licensor shall be under the terms and conditions of
134+
this License, without any additional terms or conditions.
135+
Notwithstanding the above, nothing herein shall supersede or modify
136+
the terms of any separate license agreement you may have executed
137+
with Licensor regarding such Contributions.
138+
139+
6. Trademarks. This License does not grant permission to use the trade
140+
names, trademarks, service marks, or product names of the Licensor,
141+
except as required for reasonable and customary use in describing the
142+
origin of the Work and reproducing the content of the NOTICE file.
143+
144+
7. Disclaimer of Warranty. Unless required by applicable law or
145+
agreed to in writing, Licensor provides the Work (and each
146+
Contributor provides its Contributions) on an "AS IS" BASIS,
147+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148+
implied, including, without limitation, any warranties or conditions
149+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150+
PARTICULAR PURPOSE. You are solely responsible for determining the
151+
appropriateness of using or redistributing the Work and assume any
152+
risks associated with Your exercise of permissions under this License.
153+
154+
8. Limitation of Liability. In no event and under no legal theory,
155+
whether in tort (including negligence), contract, or otherwise,
156+
unless required by applicable law (such as deliberate and grossly
157+
negligent acts) or agreed to in writing, shall any Contributor be
158+
liable to You for damages, including any direct, indirect, special,
159+
incidental, or consequential damages of any character arising as a
160+
result of this License or out of the use or inability to use the
161+
Work (including but not limited to damages for loss of goodwill,
162+
work stoppage, computer failure or malfunction, or any and all
163+
other commercial damages or losses), even if such Contributor
164+
has been advised of the possibility of such damages.
165+
166+
9. Accepting Warranty or Additional Liability. While redistributing
167+
the Work or Derivative Works thereof, You may choose to offer,
168+
and charge a fee for, acceptance of support, warranty, indemnity,
169+
or other liability obligations and/or rights consistent with this
170+
License. However, in accepting such obligations, You may act only
171+
on Your own behalf and on Your sole responsibility, not on behalf
172+
of any other Contributor, and only if You agree to indemnify,
173+
defend, and hold each Contributor harmless for any liability
174+
incurred by, or claims asserted against, such Contributor by reason
175+
of your accepting any such warranty or additional liability.
176+
177+
END OF TERMS AND CONDITIONS
178+
179+
APPENDIX: How to apply the Apache License to your work.
180+
181+
To apply the Apache License to your work, attach the following
182+
boilerplate notice, with the fields enclosed by brackets "[]"
183+
replaced with your own identifying information. (Don't include
184+
the brackets!) The text should be enclosed in the appropriate
185+
comment syntax for the file format. We also recommend that a
186+
file or class name and description of purpose be included on the
187+
same "printed page" as the copyright notice for easier
188+
identification within third-party archives.
189+
190+
Copyright [yyyy] [name of copyright owner]
191+
192+
Licensed under the Apache License, Version 2.0 (the "License");
193+
you may not use this file except in compliance with the License.
194+
You may obtain a copy of the License at
195+
196+
http://www.apache.org/licenses/LICENSE-2.0
197+
198+
Unless required by applicable law or agreed to in writing, software
199+
distributed under the License is distributed on an "AS IS" BASIS,
200+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201+
See the License for the specific language governing permissions and
202+
limitations under the License.

‎README.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -781,3 +781,11 @@ HTTP fixtures, including real signed Google ID tokens. Browser tests use Chromiu
781781
synced virtual authenticator and real Rust/PostgreSQL endpoints. Actual Apple/Google
782782
device synchronization and live provider credentials require separate validation;
783783
virtual authenticators and provider fixtures do not establish that evidence.
784+
785+
## License
786+
787+
Piquel is free to use, change and share for any purpose except a commercial one,
788+
under the [PolyForm Noncommercial License 1.0.0](LICENSE). The SDKs, and the
789+
crate they depend on, are under the [Apache License 2.0](LICENSE-APACHE) instead,
790+
so any application, commercial or not, can sign its users in with Piquel:
791+
`crates/auth-sdk`, `crates/common` and `packages/auth`.

‎apps/web/assets/policies/terms.html‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<p class="eyebrow">Piquel</p>
22
<h1>Terms of service</h1>
3-
<p>Last updated 3 November 2026.</p>
3+
<p>Last updated 4 November 2026.</p>
44

55
<p>
66
These terms govern your use of Piquel: the sign-in service at
@@ -105,9 +105,11 @@ <h2>5. Developers</h2>
105105
<h2>6. SDKs and source code</h2>
106106
<p>
107107
Piquel's source code and SDKs are published at
108-
<a href="https://github.com/piquel-fr/piquel-fr">github.com/piquel-fr/piquel-fr</a>
109-
under the Apache License 2.0. That license, not these terms, governs your use of the code. These
110-
terms govern your use of the service Piquel runs.
108+
<a href="https://github.com/piquel-fr/piquel-fr">github.com/piquel-fr/piquel-fr</a>. The SDKs, and
109+
the code they depend on, are under the Apache License 2.0, so any application may use them,
110+
commercial or not. The rest of the code is under the PolyForm Noncommercial License 1.0.0: you may
111+
use, change and share it for any purpose except a commercial one. Those licenses, not these terms,
112+
govern your use of the code. These terms govern your use of the service Piquel runs.
111113
</p>
112114

113115
<h2>7. Suspension and deletion</h2>

‎apps/web/src/pages.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ async fn home(links: HomeLinks<'_>) -> Result<impl View> {
9898
feature(title: "Your account, in your hands", text: "See and remove your passkeys, linked providers, email addresses, signed-in devices and the apps you allowed. Review your security history, download your data, or delete your account.", label: "Account settings", href: links.settings)
9999
feature(title: "For developers", text: "Register your app as an OpenID Connect client, so its users sign in with their Piquel account. Apps only get what their users approve.", label: "Developer console", href: links.developers)
100100
feature(title: "Open standards and SDKs", text: "Piquel speaks OpenID Connect and OAuth 2.0, so any standard library works. The Rust SDK, piquel-auth, validates tokens and signs users in for you.", label: "Documentation", href: DOCUMENTATION)
101-
feature(title: "Open source", text: "All of Piquel's code is public, under the Apache 2.0 license. Read exactly how your data is handled, report a problem, or contribute.", label: "Source code", href: SOURCE, wide: true)
101+
feature(title: "Public source", text: "All of Piquel's code is public. Read exactly how your data is handled, report a problem, or contribute. You may use it for anything but commercial purposes, and the SDKs are free for any app under Apache 2.0.", label: "Source code", href: SOURCE, wide: true)
102102
</div>
103103
})
104104
}

‎crates/auth-sdk/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "piquel-auth"
33
description = "Validate auth.piquel.fr tokens, declare typed scopes and sign users in"
44
version.workspace = true
55
edition.workspace = true
6-
license.workspace = true
6+
license = "Apache-2.0"
77
repository.workspace = true
88

99
[features]

0 commit comments

Comments
 (0)