yakmesh 1.0.0 → 1.0.2
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.
- package/CONTRIBUTING.md +120 -0
- package/LICENSE +54 -0
- package/README.md +16 -12
- package/TRADEMARK.md +103 -0
- package/assets/yakmesh-logo.svg +80 -0
- package/database/replication.js +318 -0
- package/package.json +2 -2
- package/security/mesh-auth.js +0 -123
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
<
|
|
4
|
+

|
|
5
|
+

|
|
6
|
+

|
|
7
|
+
|
|
8
|
+
Thank you for your interest in contributing to **YAKMESH** — the **Yielding Atomic Kernel Modular Encryption Secured Hub**.
|
|
9
|
+
|
|
10
|
+
We are building a "Sturdy & Secure" foundation for the post-quantum era.
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## 📋 Before You Contribute
|
|
15
|
+
|
|
16
|
+
1. **Read the documentation** at [yakmesh.dev](https://yakmesh.dev)
|
|
17
|
+
2. **Check existing issues** to avoid duplicates
|
|
18
|
+
3. **Follow our code of conduct** — be respectful and constructive
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## 🔐 Engineering Standards
|
|
23
|
+
|
|
24
|
+
### Cryptographic Requirements
|
|
25
|
+
|
|
26
|
+
All contributions involving cryptographic primitives **MUST**:
|
|
27
|
+
|
|
28
|
+
- ✅ Use **NIST-standardized Post-Quantum Cryptography** (ML-DSA-65 / FIPS 204)
|
|
29
|
+
- ✅ Use libraries from the `@noble` family (`@noble/hashes`, `@noble/post-quantum`)
|
|
30
|
+
- ❌ **NO legacy ECDSA/RSA** in security-critical paths
|
|
31
|
+
- ❌ **NO `Math.random()`** for security-sensitive operations (use `randomBytes()`)
|
|
32
|
+
|
|
33
|
+
### Timing & Synchronization
|
|
34
|
+
|
|
35
|
+
Changes to the timing/oracle layer must:
|
|
36
|
+
|
|
37
|
+
- Support precision hardware timestamps (PCIe atomic clocks, PTP, GPS)
|
|
38
|
+
- Maintain backward compatibility with NTP-only deployments
|
|
39
|
+
- Include tests for phase epoch calculations
|
|
40
|
+
|
|
41
|
+
### Code Quality
|
|
42
|
+
|
|
43
|
+
- All PRs must pass existing tests (`npm test`)
|
|
44
|
+
- Include tests for new functionality
|
|
45
|
+
- Follow existing code style (ES modules, async/await)
|
|
46
|
+
- Document public APIs with JSDoc comments
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## 🏷️ Branding & Trademark
|
|
51
|
+
|
|
52
|
+
**YAKMESH** is a trademark of the YAKMESH Project (PeerQuanta).
|
|
53
|
+
|
|
54
|
+
### If You Fork This Project
|
|
55
|
+
|
|
56
|
+
| ❌ You MUST | ✅ You MAY |
|
|
57
|
+
|-------------|------------|
|
|
58
|
+
| Remove the official YAKMESH logo | State "Based on YAKMESH technology" |
|
|
59
|
+
| Remove YAKMESH branding | State "Powered by YAKMESH" |
|
|
60
|
+
| Rename your software | Use the "Powered by" badge below |
|
|
61
|
+
|
|
62
|
+
### "Powered by YAKMESH" Badge
|
|
63
|
+
|
|
64
|
+
```markdown
|
|
65
|
+

|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Full policy: [yakmesh.dev/docs/trademark-policy.html](https://yakmesh.dev/docs/trademark-policy.html)
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## 🚨 Security Vulnerabilities
|
|
73
|
+
|
|
74
|
+
**Please do NOT open public issues for security flaws.**
|
|
75
|
+
|
|
76
|
+
Instead, email **security@peerquanta.com** directly so we can coordinate a responsible disclosure and hardened patch.
|
|
77
|
+
|
|
78
|
+
We follow a 90-day disclosure policy and will credit researchers in our security acknowledgments.
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## 📝 Pull Request Process
|
|
83
|
+
|
|
84
|
+
1. **Fork** the repository
|
|
85
|
+
2. **Create a branch** (`git checkout -b feature/my-feature`)
|
|
86
|
+
3. **Make your changes** following the standards above
|
|
87
|
+
4. **Test** your changes (`npm test`)
|
|
88
|
+
5. **Commit** with clear messages
|
|
89
|
+
6. **Push** and open a Pull Request
|
|
90
|
+
|
|
91
|
+
### PR Title Format
|
|
92
|
+
|
|
93
|
+
```
|
|
94
|
+
[category] Brief description
|
|
95
|
+
|
|
96
|
+
Examples:
|
|
97
|
+
[oracle] Add GPS time source detection
|
|
98
|
+
[mesh] Fix WebSocket reconnection logic
|
|
99
|
+
[docs] Update API reference
|
|
100
|
+
[security] Patch hash exposure in /status endpoint
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## 💬 Questions?
|
|
106
|
+
|
|
107
|
+
- **General:** Open a GitHub Discussion
|
|
108
|
+
- **Security:** security@peerquanta.com
|
|
109
|
+
- **Legal/Trademark:** legal@peerquanta.com
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
<div align="center">
|
|
114
|
+
<sub>Built with quantum principles. Secured by math.</sub>
|
|
115
|
+
<br><br>
|
|
116
|
+
<strong><a href="https://yakmesh.dev">yakmesh.dev</a></strong>
|
|
117
|
+
<br><br>
|
|
118
|
+
<sub>© 2026 YAKMESH Project. Sturdy & Secure.</sub>
|
|
119
|
+
</div>
|
|
120
|
+
]]>
|
package/LICENSE
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
< for the full trademark policy.
|
|
54
|
+
]]>
|
package/README.md
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
<img src="https://yakmesh.dev/assets/yakmesh-logo2.png" alt="
|
|
1
|
+
<div align="center">
|
|
2
|
+
<img src="https://yakmesh.dev/assets/yakmesh-logo2.png" alt="YAKMESH" width="200">
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
<h1>🏔️ YAKMESH™: Sturdy & Secure</h1>
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
<p><strong>Yielding Atomic Kernel Modular Encryption Secured Hub</strong></p>
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
<p>
|
|
9
|
+
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT"></a>
|
|
10
|
+
<a href="https://nodejs.org"><img src="https://img.shields.io/badge/Node.js-18+-green.svg" alt="Node.js"></a>
|
|
11
|
+
<a href="https://csrc.nist.gov/projects/post-quantum-cryptography"><img src="https://img.shields.io/badge/Crypto-Post--Quantum-blue.svg" alt="Post-Quantum"></a>
|
|
12
|
+
<a href="https://www.npmjs.com/package/yakmesh"><img src="https://img.shields.io/npm/v/yakmesh.svg" alt="npm version"></a>
|
|
13
|
+
</p>
|
|
12
14
|
</div>
|
|
13
15
|
|
|
14
16
|
---
|
|
@@ -94,7 +96,6 @@ yakmesh/
|
|
|
94
96
|
├── identity/ # Post-quantum key management
|
|
95
97
|
├── database/ # SQLite replication engine
|
|
96
98
|
├── adapters/ # Platform integration plugins
|
|
97
|
-
├── security/ # Pro authentication & encryption
|
|
98
99
|
├── webserver/ # Embedded Caddy web server
|
|
99
100
|
└── server/ # HTTP/WS server
|
|
100
101
|
```
|
|
@@ -166,9 +167,11 @@ YAKMESH Pro includes additional security features:
|
|
|
166
167
|
|
|
167
168
|
## License
|
|
168
169
|
|
|
169
|
-
- **Community Edition**: MIT License
|
|
170
|
+
- **Community Edition**: MIT License (see [LICENSE](LICENSE))
|
|
170
171
|
- **Pro Edition**: Proprietary License
|
|
171
172
|
|
|
173
|
+
See [TRADEMARK.md](TRADEMARK.md) for trademark usage policy.
|
|
174
|
+
|
|
172
175
|
---
|
|
173
176
|
|
|
174
177
|
<div align="center">
|
|
@@ -176,6 +179,7 @@ YAKMESH Pro includes additional security features:
|
|
|
176
179
|
<br><br>
|
|
177
180
|
<strong><a href="https://yakmesh.dev">yakmesh.dev</a></strong>
|
|
178
181
|
<br><br>
|
|
179
|
-
<sub>© 2026 YAKMESH Project. Sturdy & Secure.</sub>
|
|
182
|
+
<sub>© 2026 YAKMESH™ Project. Sturdy & Secure.</sub>
|
|
183
|
+
<br>
|
|
184
|
+
<sub>YAKMESH™ is a trademark of PeerQuanta, application pending (Serial No. 99594620).</sub>
|
|
180
185
|
</div>
|
|
181
|
-
]]>
|
package/TRADEMARK.md
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
<
|
|
4
|
+
|
|
5
|
+
## Trademark Information
|
|
6
|
+
|
|
7
|
+
| Property | Value |
|
|
8
|
+
|----------|-------|
|
|
9
|
+
| **Mark** | YAKMESH™ |
|
|
10
|
+
| **Owner** | PeerQuanta |
|
|
11
|
+
| **Status** | Application Pending |
|
|
12
|
+
| **USPTO Serial No.** | 99594620 |
|
|
13
|
+
| **Filing Date** | January 14, 2026 |
|
|
14
|
+
|
|
15
|
+
## Protected Assets
|
|
16
|
+
|
|
17
|
+
The following are trademarks of PeerQuanta:
|
|
18
|
+
|
|
19
|
+
- **YAKMESH™** — the word mark
|
|
20
|
+
- **The "Climbing Yak" Logo** — the mountain yak emblem
|
|
21
|
+
- **"Sturdy & Secure"** — the tagline
|
|
22
|
+
- **"Yielding Atomic Kernel Modular Encryption Secured Hub"** — the backronym
|
|
23
|
+
|
|
24
|
+
## License Separation
|
|
25
|
+
|
|
26
|
+
The YAKMESH™ software is released under the **MIT License**, which grants broad
|
|
27
|
+
rights to use, modify, and distribute the source code.
|
|
28
|
+
|
|
29
|
+
**However**, the MIT License does **not** grant any rights to use the YAKMESH™
|
|
30
|
+
trademarks. The code and the brand are separate:
|
|
31
|
+
|
|
32
|
+
| Asset | License | Rights Granted |
|
|
33
|
+
|-------|---------|----------------|
|
|
34
|
+
| Source code | MIT | Use, modify, distribute, sublicense |
|
|
35
|
+
| YAKMESH™ name | Trademark | None (requires permission) |
|
|
36
|
+
| Logo/branding | Trademark | None (requires permission) |
|
|
37
|
+
|
|
38
|
+
## Usage Guidelines
|
|
39
|
+
|
|
40
|
+
### ✅ Permitted Uses
|
|
41
|
+
|
|
42
|
+
You **may** use YAKMESH™ trademarks in the following ways:
|
|
43
|
+
|
|
44
|
+
1. **Attribution**: "Built on YAKMESH™ technology"
|
|
45
|
+
2. **Compatibility**: "Compatible with YAKMESH™ networks"
|
|
46
|
+
3. **Powered By Badge**: Use this badge in your documentation:
|
|
47
|
+
```markdown
|
|
48
|
+

|
|
49
|
+
```
|
|
50
|
+
4. **Academic/Editorial**: Discussing YAKMESH™ in articles, papers, or reviews
|
|
51
|
+
5. **Internal Use**: Private development and internal documentation
|
|
52
|
+
|
|
53
|
+
### ❌ Prohibited Uses
|
|
54
|
+
|
|
55
|
+
You may **not** use YAKMESH™ trademarks in the following ways:
|
|
56
|
+
|
|
57
|
+
1. **Product Names**: Naming your software "YAKMESH [Anything]"
|
|
58
|
+
2. **Impersonation**: Suggesting your project is the official YAKMESH™
|
|
59
|
+
3. **Domain Names**: Registering domains containing "yakmesh" (e.g., yakmesh-cloud.com)
|
|
60
|
+
4. **Forked Projects**: If you fork this repository, you **must**:
|
|
61
|
+
- Remove the YAKMESH™ name from all files
|
|
62
|
+
- Remove the official logo and branding
|
|
63
|
+
- Rename your project before public distribution
|
|
64
|
+
5. **Modified Logo**: Creating variations of the YAKMESH™ logo
|
|
65
|
+
6. **Merchandise**: Selling products bearing the YAKMESH™ mark without permission
|
|
66
|
+
|
|
67
|
+
## Fork Requirements
|
|
68
|
+
|
|
69
|
+
If you fork the YAKMESH™ repository:
|
|
70
|
+
|
|
71
|
+
| Before Distributing | Required Action |
|
|
72
|
+
|---------------------|-----------------|
|
|
73
|
+
| Project name | Rename to something other than YAKMESH™ |
|
|
74
|
+
| Logo files | Delete `assets/yakmesh-logo*.png` |
|
|
75
|
+
| README badges | Remove YAKMESH™ shields |
|
|
76
|
+
| Package name | Change in `package.json` |
|
|
77
|
+
| CLI name | Rename the CLI command |
|
|
78
|
+
|
|
79
|
+
You are welcome to state: *"This project is based on YAKMESH™ technology"*
|
|
80
|
+
|
|
81
|
+
## Enforcement
|
|
82
|
+
|
|
83
|
+
We actively monitor for trademark misuse. Violations may result in:
|
|
84
|
+
|
|
85
|
+
1. DMCA takedown requests
|
|
86
|
+
2. npm package name disputes
|
|
87
|
+
3. Domain name disputes (UDRP)
|
|
88
|
+
4. Legal action for willful infringement
|
|
89
|
+
|
|
90
|
+
## Contact
|
|
91
|
+
|
|
92
|
+
| Purpose | Contact |
|
|
93
|
+
|---------|---------|
|
|
94
|
+
| Trademark licensing | legal@peerquanta.com |
|
|
95
|
+
| Brand partnerships | partnerships@peerquanta.com |
|
|
96
|
+
| Report misuse | legal@peerquanta.com |
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
**YAKMESH™** is a trademark of PeerQuanta, application pending (Serial No. 99594620).
|
|
101
|
+
|
|
102
|
+
© 2026 PeerQuanta. Sturdy & Secure.
|
|
103
|
+
]]>
|