memorio 4.6.7 → 4.6.9

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/COPYRIGHT.md ADDED
@@ -0,0 +1,6 @@
1
+ # Copyright
2
+
3
+ Copyright (c) 2025, Dario Passariello. All rights reserved.
4
+ <https://dario.passariello.ca>
5
+
6
+ This software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.
package/SECURITY.md ADDED
@@ -0,0 +1,48 @@
1
+ # Security
2
+
3
+ Memorio follows NIST and NSA security standards at the enterprise level.
4
+
5
+ ## Security Standards
6
+
7
+ - **NIST Guidelines**: Follows NIST SP 800-53 security controls and NIST Cybersecurity Framework
8
+ - **NSA Standards**: Defense-grade security practices; considers nation-state level threats in risk assessment
9
+
10
+ ## Supply Chain Security
11
+
12
+ - **Socket.dev**: Minimum target score 90%; all alarms must be resolved before release
13
+ - **Dependency Management**: Zero production dependencies (fully dependency-free); dev dependencies audited regularly
14
+ - **Prohibited**: No `eval()` usage, no encrypted/obfuscated code in builds, no hardcoded secrets
15
+
16
+ ## Code Security
17
+
18
+ - No hardcoded credentials or API keys
19
+ - Secure random session ID generation (`crypto.randomUUID` → `crypto.getRandomValues` → fallback)
20
+ - Input validation on all public APIs
21
+ - XSS prevention on DevTools data export
22
+ - Property-based access control on global objects (`Object.defineProperty` with `enumerable: false`)
23
+
24
+ ## OWASP Compliance
25
+
26
+ Addresses OWASP Top 10 (2021):
27
+ - A01:2021 — Broken Access Control (global object protection, property locks)
28
+ - A02:2021 — Cryptographic Failures (crypto.randomUUID for session IDs)
29
+ - A03:2021 — Injection (CSS sanitization in devtools)
30
+ - A05:2021 — Security Misconfiguration (minimal surface area, no bundled secrets)
31
+ - A06:2021 — Vulnerable and Outdated Components (regular npm audit, Socket.dev)
32
+ - A07:2021 — Identification and Authentication Failures (N/A — library, no auth)
33
+ - A08:2021 — Software and Data Integrity Failures (strict tsconfig, lock files)
34
+ - A09:2021 — Security Logging and Monitoring Failures (DevTools inspect, Logger module)
35
+ - A10:2021 — Server-Side Request Forgery (N/A — no network requests)
36
+
37
+ ## Reporting Security Issues
38
+
39
+ If you find a security vulnerability:
40
+
41
+ 1. Email [Dario Passariello](mailto:dariopassarielloa@gmail.com)
42
+ 2. Or visit https://dario.passariello.ca/contact/
43
+
44
+ Do not open public issues for security vulnerabilities.
45
+
46
+ ---
47
+ *Document version: 2.0 — Last updated: 2026-05-19*
48
+ *Owner: BigLogic Security Team*
package/SUMMARY.md ADDED
@@ -0,0 +1,28 @@
1
+ # Table of contents
2
+
3
+ * [README](README.md)
4
+
5
+ ## Core Modules
6
+
7
+ * [State](markdown/STATE.md) - Reactive global state management
8
+ * [Observer](markdown/OBSERVER.md) - Object observation pattern
9
+ * [useObserver](markdown/USEOBSERVER.md) - React hook for state observation
10
+ * [Dispatch](markdown/DISPATCH.md) - Event system for vanilla JS applications
11
+ * [Cache](markdown/CACHE.md) - In-memory caching (lost on refresh)
12
+ * [Store](markdown/STORE.md) - Persistent localStorage management
13
+ * [Session](markdown/SESSION.md) - Temporary sessionStorage management
14
+ * [IDB](markdown/IDB.md) - IndexedDB for large data storage
15
+
16
+ ## Platform & Compatibility
17
+
18
+ * [Platform & Context Isolation](markdown/PLATFORM.md) - Cross-platform support, session isolation
19
+ * [Security](markdown/SECURITY.md) - Security measures, vulnerability prevention
20
+ * [Changelog](markdown/CHANGELOG.md) - Version history and migration guide
21
+ * [Classic Import](markdown/IMPORT.md) - Named export guide for `import { state } from 'memorio'`
22
+
23
+ ## Additional Resources
24
+
25
+ * [License](../LICENSE.md)
26
+ * [Contributing](../CONTRIBUTING.md)
27
+ * [Code of Conduct](../CODE_OF_CONDUCT.md)
28
+ * [Security](../SECURITY.md)