mdld-parse 0.2.2 → 0.2.3

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 (4) hide show
  1. package/LICENCE +167 -0
  2. package/README.md +345 -190
  3. package/index.js +264 -248
  4. package/package.json +1 -1
package/LICENCE ADDED
@@ -0,0 +1,167 @@
1
+ # MDLD / MD-LD Community License
2
+
3
+ Version 0.2 — 2025
4
+
5
+ Copyright © 2025–present
6
+ **Denis Starov**
7
+ All rights reserved.
8
+
9
+ ---
10
+
11
+ ## 0. Definitions
12
+
13
+ For the purposes of this license:
14
+
15
+ **“MDLD” or “MD-LD”** refers to the Markdown-Linked Data specification, including all versions, drafts, documentation, reference implementations, tests, examples, and associated materials published by the author.
16
+
17
+ **“Commercial Use”** means any use of MDLD that is part of, or directly supports, a for-profit activity, including but not limited to the offering of products or services for sale, subscription, advertising, data monetization, or other commercial advantage.
18
+
19
+ **“Server-side use”** means processing, storing, transforming, or serving MDLD documents on infrastructure operated by a third party for multiple users, including hosted platforms and network-accessible services.
20
+
21
+ **“For-profit entity”** means any organization or legal entity operating with profit intent, including corporations, subsidiaries, startups, and entities backed by private equity or venture capital, regardless of current revenue.
22
+
23
+ **“Proprietary AI system”** means any artificial intelligence or machine learning system whose model weights, training data, or full source code are not publicly available under an OSI-approved open-source license.
24
+
25
+ ---
26
+
27
+ ## 1. Scope
28
+
29
+ This license applies to:
30
+
31
+ - The MDLD / MD-LD specification
32
+ - All reference implementations
33
+ - Documentation, examples, test suites, and published materials
34
+ - Associated repositories and official distributions
35
+
36
+ This license does not grant rights to independently created works that merely interoperate with MDLD, provided they do not copy or derive from the licensed materials.
37
+
38
+ ---
39
+
40
+ ## 2. Guiding intent (non-normative)
41
+
42
+ MDLD is designed to support individuals, educators, researchers, and communities in creating, exchanging, and working with structured knowledge in an open and durable way.
43
+
44
+ This license seeks to encourage broad personal and community use while preventing unacknowledged commercial appropriation, standard capture, and extraction of value into proprietary platforms, particularly in the context of hosted services and large-scale AI systems.
45
+
46
+ ---
47
+
48
+ ## 3. Permitted use (no permission required)
49
+
50
+ The following uses are permitted worldwide and royalty-free:
51
+
52
+ ### 3.1 Individual and community use
53
+
54
+ - Authoring, reading, and sharing MDLD documents
55
+ - Personal, local, or offline tools and workflows
56
+ - Open-source software released under OSI-approved licenses
57
+ - Non-commercial websites, static content, and community projects
58
+ - Internal use by individuals for personal productivity
59
+
60
+ ### 3.2 Research and education
61
+
62
+ - Academic research conducted by non-profit institutions
63
+ - Teaching, learning, and scholarly experimentation
64
+ - Non-commercial prototypes, demonstrations, and publications
65
+
66
+ ### 3.3 Personal AI and local automation
67
+
68
+ - Use of MDLD with local or third-party AI tools for personal, educational, or research purposes
69
+ - Interactive or single-user analysis of MDLD documents
70
+ - Automation workflows that do not provide MDLD processing as a hosted service to others
71
+
72
+ ---
73
+
74
+ ## 4. Restricted use (explicit permission required)
75
+
76
+ The following uses are not permitted without explicit written permission from the author:
77
+
78
+ ### 4.1 Commercial server-side services
79
+
80
+ - Offering MDLD processing, storage, or transformation as part of a hosted, multi-user, or server-side service
81
+ - Software-as-a-Service (SaaS), cloud platforms, or subscription products where MDLD is a core or marketed feature
82
+ - Paid APIs or hosted tools that accept or emit MDLD documents
83
+
84
+ ### 4.2 Artificial intelligence and machine learning systems
85
+
86
+ - Training, fine-tuning, or evaluating proprietary or closed-source AI or ML models using:
87
+ - the MDLD specification
88
+ - reference implementations
89
+ - example corpora, tests, or documentation
90
+ - Including MDLD materials in commercial datasets, benchmarks, or evaluation suites
91
+ - Providing paid AI features or services that rely on MDLD as an input or output format
92
+
93
+ ### 4.3 For-profit product and platform use
94
+
95
+ - Use of MDLD by for-profit entities as part of any product, platform, or service offering made available to customers, users, or clients
96
+ - Use that contributes to the development, protection, or monetization of proprietary technology, products, or services
97
+ - Use that is reasonably expected to support commercial differentiation, intellectual property claims, or capital formation
98
+
99
+ ### 4.4 Standard capture and misrepresentation
100
+
101
+ - Representing MDLD as an independently governed or competing standard without permission
102
+ - Claiming authorship, stewardship, or official status with respect to MDLD
103
+ - Publishing incompatible extensions, variants, or forks under the MDLD or MD-LD name
104
+
105
+ ### 4.5 Internal corporate use
106
+
107
+ Internal use of MDLD by for-profit entities is permitted solely for temporary evaluation or experimentation.
108
+
109
+ Continued internal use that supports, informs, or precedes a commercial product or service requires explicit permission.
110
+
111
+ ---
112
+
113
+ ## 5. Attribution and naming
114
+
115
+ Any permitted use must include clear attribution:
116
+
117
+ > “MDLD / MD-LD — Markdown-Linked Data, by Denis Starov”
118
+
119
+ The names “MDLD” and “MD-LD” may not be used to identify derivative formats, forks, or extensions without explicit permission.
120
+
121
+ ---
122
+
123
+ ## 6. No trademark grant
124
+
125
+ This license does not grant any trademark rights.
126
+
127
+ All trademarks, service marks, and names associated with MDLD remain the property of the author.
128
+
129
+ ---
130
+
131
+ ## 7. Commercial licensing
132
+
133
+ Commercial use is possible under a separate written agreement.
134
+
135
+ Commercial licenses may include rights for:
136
+
137
+ - SaaS and hosted services
138
+ - AI and machine learning systems
139
+ - Enterprise redistribution
140
+ - Long-term support or collaboration
141
+
142
+ Contact details for commercial licensing are provided in the official repository.
143
+
144
+ ---
145
+
146
+ ## 8. Termination
147
+
148
+ Any use in violation of this license automatically terminates all rights granted herein.
149
+
150
+ Upon termination, the violating party must immediately cease all use, distribution, and promotion of the MDLD materials.
151
+
152
+ Termination does not require notice and does not limit the author’s right to pursue other remedies.
153
+
154
+ ---
155
+
156
+ ## 9. No warranty
157
+
158
+ MDLD and all associated materials are provided “as is”, without warranty of any kind, express or implied.
159
+
160
+ ---
161
+
162
+ ## 10. License versions
163
+
164
+ This license applies on a per-version basis.
165
+
166
+ Future versions of this license do not retroactively alter rights granted under this version.
167
+ Users may elect to adopt newer versions at their discretion.