me2em-protocol-monorepo 0.5.0-alpha.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.
File without changes
@@ -0,0 +1,73 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in the Me2em community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment:
12
+
13
+ ✅ Using welcoming and inclusive language
14
+ ✅ Being respectful of differing viewpoints and experiences
15
+ ✅ Gracefully accepting constructive criticism
16
+ ✅ Focusing on what is best for the community
17
+ ✅ Showing empathy towards other community members
18
+
19
+ Examples of unacceptable behavior:
20
+
21
+ ❌ The use of sexualized language or imagery, and sexual attention or advances
22
+ ❌ Trolling, insulting or derogatory comments, and personal or political attacks
23
+ ❌ Public or private harassment
24
+ ❌ Publishing others' private information without explicit permission
25
+ ❌ Other conduct which could reasonably be considered inappropriate in a professional setting
26
+
27
+ ## Enforcement Responsibilities
28
+
29
+ Community leaders (maintainers) are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
30
+
31
+ ## Scope
32
+
33
+ This Code of Conduct applies within all community spaces (GitHub, discussions, chat), and also applies when an individual is officially representing the community in public spaces (conferences, social media).
34
+
35
+ ## Enforcement
36
+
37
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at `hello@me2em.com`. All complaints will be reviewed and investigated promptly and fairly.
38
+
39
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
40
+
41
+ ## Enforcement Guidelines
42
+
43
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
44
+
45
+ ### 1. Correction
46
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional.
47
+ **Consequence**: Private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
48
+
49
+ ### 2. Warning
50
+ **Community Impact**: A violation through a single incident or series of actions.
51
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. Violating these terms may lead to a temporary or permanent ban.
52
+
53
+ ### 3. Temporary Ban
54
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
55
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period.
56
+
57
+ ### 4. Permanent Ban
58
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
59
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
60
+
61
+ ## Attribution
62
+
63
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
64
+
65
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
66
+
67
+ For answers to common questions about this code of conduct, see the FAQ at [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at [https://www.contributor-covenant.org/translations][translations].
68
+
69
+ [homepage]: https://www.contributor-covenant.org
70
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
71
+ [Mozilla CoC]: https://github.com/mozilla/diversity
72
+ [FAQ]: https://www.contributor-covenant.org/faq
73
+ [translations]: https://www.contributor-covenant.org/translations
@@ -0,0 +1,145 @@
1
+ # Contributing to me2em-protocol
2
+
3
+ Thank you for your interest in contributing to Me2em! This document outlines how to contribute to the protocol reference implementation, our architecture, and release processes.
4
+
5
+ ## 🗂️ Project Structure & Architecture
6
+
7
+ This repository is a `pnpm` workspace monorepo containing the core cryptographic primitives of the Me2em protocol.
8
+
9
+ > **Note:** The main marketing website, blog, and high-level guides are hosted in a **separate repository**: [`me2em-org/me2em-website`](https://github.com/me2em-org/me2em-website) (built with Astro). This repository is strictly for the protocol implementation and its API reference.
10
+
11
+ ```text
12
+ me2em-protocol/
13
+ ├── packages/
14
+ │ └── core/ # Core primitives: Identity, Handle, Session (@me2em/core)
15
+ ├── docs/ # Generated TypeDoc output (auto-deployed, do not edit manually)
16
+ ├── package.json # Root workspace configuration
17
+ ├── typedoc.json # TypeDoc configuration for API reference generation
18
+ └── CONTRIBUTING.md # This file
19
+ ```
20
+
21
+ ## 🚀 Getting Started
22
+
23
+ ### Prerequisites
24
+ - Node.js 18+
25
+ - pnpm 9+ (We strictly use `pnpm`, not `npm` or `yarn`)
26
+
27
+ ### Local Development Setup
28
+ ```bash
29
+ # 1. Clone the repository
30
+ git clone https://github.com/me2em-org/me2em-protocol.git
31
+ cd me2em-protocol
32
+
33
+ # 2. Install dependencies for all workspace packages
34
+ pnpm install
35
+
36
+ # 3. Build the core package
37
+ pnpm run build
38
+
39
+ # 4. Run tests
40
+ pnpm run test
41
+
42
+ # 5. Generate documentation locally (optional, for preview)
43
+ pnpm run build-docs
44
+ # You can then view it by opening `docs/index.html` or running `npx serve docs`
45
+ ```
46
+
47
+ ## 📦 Publishing to npm
48
+
49
+ Publishing is done manually to ensure strict version control. **Always use `pnpm`, never `npm`**, to maintain lockfile consistency.
50
+
51
+ 1. **Authenticate with pnpm registry:**
52
+ Ensure you are logged in. If not, run:
53
+ ```bash
54
+ pnpm login
55
+ ```
56
+ 2. **Update versions manually:** You must update the `"version"` field in **two** places to keep the workspace in sync:
57
+ - `package.json` (root)
58
+ - `packages/core/package.json`
59
+ 3. **Commit the version bump:**
60
+ ```bash
61
+ git add package.json packages/core/package.json
62
+ git commit -m "chore: bump version to X.Y.Z"
63
+ git push origin main
64
+ ```
65
+ 4. **Publish the package:**
66
+ Run the publish command specifically for the core package:
67
+ ```bash
68
+ pnpm publish --filter @me2em/core --access public
69
+ ```
70
+ *(Alternatively, from within the `packages/core` directory, you can run `pnpm publish --access public`)*
71
+
72
+ ## 📝 Documentation Pipeline
73
+
74
+ We do not maintain a separate documentation repository or use heavy frameworks like Docusaurus for the API reference.
75
+
76
+ - **Source of Truth:** All API documentation is written as [JSDoc/TSDoc](https://tsdoc.org/) comments directly in the TypeScript source files (`packages/core/src/**/*.ts`).
77
+ - **Automation:** The root `package.json` contains a `"build-docs": "typedoc"` script.
78
+ - **Deployment:** This repository is connected to **Cloudflare Pages**. On every `git push` to the `main` branch, Cloudflare automatically runs `pnpm install && pnpm run build-docs` and deploys the resulting `./docs` folder to **[docs.me2em.com](https://docs.me2em.com)**.
79
+
80
+ **Rule for contributors:** If you add or modify public methods, classes, or interfaces, you **must** add or update the corresponding JSDoc comments.
81
+
82
+ ## 🐛 Reporting Issues
83
+
84
+ Before creating a new issue:
85
+ 1. Search [existing issues](https://github.com/me2em-org/me2em-protocol/issues).
86
+ 2. Check if it's already fixed in the `main` branch.
87
+ 3. Use the appropriate [issue template](.github/ISSUE_TEMPLATE/).
88
+
89
+ ⚠️ **For security vulnerabilities:** See [SECURITY.md](SECURITY.md). Do not disclose publicly.
90
+
91
+ ## 💡 Proposing Changes
92
+
93
+ **Small fixes (typos, docs, minor bug fixes):**
94
+ 1. Fork the repository.
95
+ 2. Create a branch: `fix/short-description`.
96
+ 3. Make your changes and run `pnpm test`.
97
+ 4. Submit a Pull Request.
98
+
99
+ **New features or breaking changes:**
100
+ 1. Open a [Discussion](https://github.com/me2em-org/me2em-protocol/discussions) first.
101
+ 2. Describe the problem, proposed solution, and alternatives.
102
+ 3. Wait for feedback from maintainers. If approved, implement and submit a PR.
103
+
104
+ ## 📐 Coding Standards
105
+
106
+ ### TypeScript/JavaScript
107
+ - Follow the project's ESLint configuration.
108
+ - Use strict mode. Avoid `any` types.
109
+ - Write comprehensive JSDoc for all public APIs.
110
+ - Aim for 100% type coverage for new code.
111
+
112
+ ### Commits
113
+ - Use [Conventional Commits](https://www.conventionalcommits.org/).
114
+ - Example: `feat(core): add handle derivation with metadata` or `fix(crypto): resolve edge case in hkdf`.
115
+
116
+ ## 🔐 Cryptography Guidelines
117
+
118
+ Me2em is a security-critical project. When working with crypto:
119
+
120
+ ✅ **Do:**
121
+ - Use established, audited libraries (e.g., `@noble/ed25519`, `@noble/hashes`, Web Crypto API).
122
+ - Add property-based tests for cryptographic functions.
123
+ - Document security assumptions and threat models in code comments.
124
+
125
+ ❌ **Don't:**
126
+ - Implement your own cryptographic primitives.
127
+ - Hardcode secrets, private keys, or test seeds in the source code.
128
+ - Change key derivation parameters (like HKDF info/salt) without consensus and thorough review.
129
+
130
+ ## 🧪 Testing
131
+
132
+ - New features require new tests.
133
+ - Bug fixes should include a regression test.
134
+ - Aim for >90% coverage in `packages/core`.
135
+ - Run coverage locally: `pnpm run test:coverage`
136
+
137
+ ## 🤝 Review Process
138
+
139
+ 1. PR created → GitHub Actions CI runs automatically (lint, typecheck, test).
140
+ 2. Maintainer reviews within 3-5 business days.
141
+ 3. Address feedback by pushing updates to the same branch.
142
+ 4. Once approved, the PR is merged by a maintainer.
143
+
144
+ ---
145
+ 🙏 **Thank You!** Your contributions make Me2em better, more secure, and more accessible for everyone. Welcome to the community! 🎉
package/GOVERNANCE.md ADDED
@@ -0,0 +1,132 @@
1
+ # Governance Model: Me2em Ecosystem
2
+
3
+ > This document describes how decisions are made in the Me2em open-source project.
4
+
5
+ **Version**: 1.0
6
+ **Last Updated**: May 2026
7
+ **Scope**: All repositories under `github.com/me2em-org`
8
+
9
+ ---
10
+
11
+ ## 🎯 Philosophy
12
+
13
+ Me2em is built on three principles:
14
+
15
+ 1. **Privacy by Design**: Technical decisions must prioritize user privacy and cryptographic security.
16
+ 2. **Open Collaboration**: Anyone can contribute; merit is earned through quality work, not affiliation.
17
+ 3. **Decentralized Trust**: The protocol should enable trustless interactions; governance should reflect that.
18
+
19
+ ---
20
+
21
+ ## 👥 Roles
22
+
23
+ ### 👤 Contributor
24
+ Anyone who submits code, docs, issues, or feedback.
25
+
26
+ **Rights**:
27
+ - Comment on issues and PRs
28
+ - Propose features via Discussions
29
+ - Submit pull requests
30
+
31
+ **Path to next role**: 3+ merged PRs with positive reviews.
32
+
33
+ ### 🔧 Maintainer
34
+ Trusted contributors with write access to specific repositories.
35
+
36
+ **Responsibilities**:
37
+ - Review and merge PRs in their area
38
+ - Triage issues and label appropriately
39
+ - Help onboard new contributors
40
+ - Uphold code quality and security standards
41
+
42
+ **How to become**:
43
+ 1. Be an active Contributor (3+ merged PRs)
44
+ 2. Receive nomination from an existing Maintainer
45
+ 3. Approval by ≥2 Core Team members
46
+ 4. 2-week no-objection period
47
+
48
+ **Current Maintainers**: [List in `MAINTAINERS.md`]
49
+
50
+ ### 🧭 Core Team
51
+ Strategic decision-makers for the protocol and ecosystem.
52
+
53
+ **Responsibilities**:
54
+ - Approve breaking changes to the protocol spec
55
+ - Resolve maintainer disputes
56
+ - Manage security disclosures and releases
57
+ - Represent Me2em in external partnerships
58
+
59
+ **How to become**:
60
+ 1. Be a Maintainer for ≥6 months
61
+ 2. Demonstrate deep protocol understanding
62
+ 3. Nomination by ≥2 Core Team members
63
+ 4. Supermajority vote (≥75%) of existing Core Team
64
+
65
+ **Current Core Team**: [List in `CORE_TEAM.md`]
66
+
67
+ ### 🗳️ Community Advisory Council (Planned)
68
+ Representative body for broader community input (post-v1.0).
69
+
70
+ ---
71
+
72
+ ## 🗳️ Decision-Making
73
+
74
+ ### Technical Decisions (within a repo)
75
+ - **Process**: RFC via GitHub Discussion → Implementation PR → Maintainer review → Merge
76
+ - **Consensus**: Lazy consensus (no objections after 5 business days)
77
+ - **Tie-breaker**: Repo Maintainer(s)
78
+
79
+ ### Protocol Specification Changes
80
+ - **Process**: Me2em Improvement Proposal (MIP) → Core Team review → Community comment period (14 days) → Core Team vote
81
+ - **Threshold**: ≥2/3 Core Team approval
82
+ - **Documentation**: All MIPs archived in `specs/MIPs/`
83
+
84
+ ### Governance Changes
85
+ - **Process**: Proposal in Discussions → Core Team draft → Community comment (30 days) → Core Team supermajority (≥75%)
86
+ - **Ratification**: Published as `GOVERNANCE-vX.md`
87
+
88
+ ### Security Decisions
89
+ - **Process**: Private discussion among Core Team + security reporter → Fix → Coordinated disclosure
90
+ - **Emergency**: Core Team may act unilaterally for critical vulnerabilities, with post-mortem
91
+
92
+ ---
93
+
94
+ ## 🔄 Conflict Resolution
95
+
96
+ 1. **Direct discussion**: Parties attempt to resolve informally
97
+ 2. **Maintainer mediation**: Neutral Maintainer facilitates
98
+ 3. **Core Team escalation**: Final decision by Core Team vote
99
+ 4. **Community fork**: As last resort, community may fork (per Apache 2.0 license)
100
+
101
+ ---
102
+
103
+ ## 📊 Transparency
104
+
105
+ - All non-sensitive discussions happen in public (GitHub Issues/Discussions)
106
+ - Meeting notes (Core Team) published within 7 days
107
+ - Financial decisions (if any) documented in `TRANSPARENCY.md`
108
+ - Security incidents: post-mortem published after resolution
109
+
110
+ ---
111
+
112
+ ## 🚀 Roadmap Input
113
+
114
+ Anyone can propose roadmap items via:
115
+ - GitHub Discussions: `category:roadmap`
116
+ - Annual community survey (planned)
117
+
118
+ Core Team prioritizes based on:
119
+ 1. Security & stability
120
+ 2. Community demand (👍 reactions, use-case validation)
121
+ 3. Technical feasibility
122
+ 4. Alignment with Me2em philosophy
123
+
124
+ ---
125
+
126
+ ## 📜 Amendments
127
+
128
+ This document may be amended following the "Governance Changes" process above.
129
+
130
+ ---
131
+
132
+ *Part of the Me2em ecosystem: [github.com/me2em-org](https://github.com/me2em-org) | Contact: hello@me2em.com*
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.