psytools 0.5.4 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/LICENSE +39 -0
  2. package/README.md +10 -1
  3. package/package.json +2 -2
package/LICENSE CHANGED
@@ -1,3 +1,36 @@
1
+ This repository ships two different things, licensed differently.
2
+
3
+ The code — the TypeScript source, compiled output, type definitions,
4
+ scoring engine, validation, localization logic, and JSON Schema,
5
+ everything that makes psytools run — is licensed under the MIT
6
+ License below. Copyright (c) 2026 Samed Kahyaoglu.
7
+
8
+ The bundled instrument text — the titles, descriptions, instructions,
9
+ item wording, and answer-option labels of the seventeen third-party
10
+ psychological assessment instruments psytools ships, in every
11
+ language psytools provides them — is licensed by each instrument's
12
+ own rights holder, on the terms recorded instrument by instrument in
13
+ SOURCES.md. SOURCES.md, not the MIT License below, is where your
14
+ rights over any specific instrument's text come from.
15
+
16
+ Most bundled instruments are free to use, including in commercial
17
+ products, though a few carry a lighter condition of their own —
18
+ mandatory attribution, most notably. Five need their rights holder's
19
+ permission before commercial use: the ECR-R, the ERQ, and the HSPS,
20
+ which SOURCES.md tags "Research only," and the SWLS and the
21
+ Flourishing Scale, which SOURCES.md tags "Free with conditions" but
22
+ whose own terms are non-commercial-only — the same restriction in
23
+ substance, under a different tag. Two more, the AQ-10 and the RSES,
24
+ are neither free nor restricted for commercial use: their rights
25
+ holders simply haven't addressed it, so confirm with them before
26
+ shipping commercially. Read SOURCES.md before you rely on any
27
+ instrument's text, particularly before commercial use.
28
+
29
+ The MIT License below is the license for the code. The bundled
30
+ instrument text is licensed as described above, not under this MIT
31
+ grant.
32
+
33
+
1
34
  MIT License
2
35
 
3
36
  Copyright (c) 2026 Samed Kahyaoglu
@@ -19,3 +52,9 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
52
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
53
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
54
  SOFTWARE.
55
+
56
+
57
+ "The Software" above means the code described above — psytools' own
58
+ source, build output, and documentation. Rights over the bundled
59
+ instrument text come from that text's own rights holder, per
60
+ SOURCES.md.
package/README.md CHANGED
@@ -287,4 +287,13 @@ npm run build # ESM + CJS + type declarations into dist/
287
287
 
288
288
  ## License
289
289
 
290
- MIT
290
+ The code is MIT — Samed Kahyaoglu, 2026. See [LICENSE](LICENSE).
291
+
292
+ The bundled instrument text is a separate matter: each of the seventeen instruments is licensed by its own rights holder, on terms that differ instrument to instrument. The quick answer:
293
+
294
+ - **Nine ship free, including in commercial products, no permission needed:** PHQ-9, GAD-7, DASS-21, WHO-5, AUDIT, Mini-IPIP, CES-D, K10, K6.
295
+ - **The ASRS-v1.1 screener (`asrs6`) ships free, including commercially, with one mandatory condition — attribution.** Render the credit line psytools ships in `meta.attribution` wherever the screener or its results appear.
296
+ - **Three ship for non-commercial research only: ECR-R, ERQ, and HSPS.** Commercial use of any of these needs permission directly from that instrument's own rights holder (R. C. Fraley for the ECR-R; the Stanford Psychophysiology Laboratory for the ERQ; Elaine Aron for the HSPS) — that permission is theirs to give, not psytools'.
297
+ - **AQ-10, RSES, SWLS, and the Flourishing Scale ship free with conditions of their own, and the conditions aren't uniform.** AQ-10's and RSES's rights holders haven't addressed commercial use (confirm with them before shipping commercially). SWLS's and the Flourishing Scale's rights holder (Ed Diener and co-authors) licenses them for non-commercial purposes only — treat those two like the research-only three for commercial shipping.
298
+
299
+ [SOURCES.md](SOURCES.md) has the full record for every instrument — rights holder, citation, exact conditions, translation provenance. Read the relevant section before you ship an instrument, especially any instrument outside the first two bullets above.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "psytools",
3
- "version": "0.5.4",
3
+ "version": "0.6.1",
4
4
  "description": "Zero-dependency toolkit for psychological assessments: data models, response validation, scoring, and predefined inventories (PHQ-9, GAD-7, DASS-21, WHO-5, ASRS, AQ-10, AUDIT, Mini-IPIP, CES-D, ECR-R, ERQ, HSPS, SWLS, Flourishing, K10, K6, RSES) in multiple languages.",
5
5
  "keywords": [
6
6
  "psychology",
@@ -41,7 +41,7 @@
41
41
  "screening",
42
42
  "likert"
43
43
  ],
44
- "license": "MIT",
44
+ "license": "SEE LICENSE IN LICENSE",
45
45
  "author": "Samed Kahyaoglu <samed@luckys.dev>",
46
46
  "repository": {
47
47
  "type": "git",