koru-delta 2.0.0

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/LICENSE ADDED
@@ -0,0 +1,14 @@
1
+ Licensed under either of
2
+
3
+ * Apache License, Version 2.0
4
+ ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
5
+ * MIT license
6
+ ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
7
+
8
+ at your option.
9
+
10
+ ## Contribution
11
+
12
+ Unless you explicitly state otherwise, any contribution intentionally submitted
13
+ for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
14
+ dual licensed as above, without any additional terms or conditions.
package/LICENSE-APACHE ADDED
@@ -0,0 +1,190 @@
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 the 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
+ Copyright 2025 Sawyer Kent <sawyerkent.me@gmail.com>
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ See the License for the specific language governing permissions and
190
+ limitations under the License.
package/LICENSE-MIT ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Sawyer Kent <sawyerkent.me@gmail.com>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,386 @@
1
+ # KoruDelta — The Invisible Database
2
+
3
+ [![Crates.io](https://img.shields.io/crates/v/koru-delta.svg)](https://crates.io/crates/koru-delta)
4
+ [![Docs.rs](https://docs.rs/koru-delta/badge.svg)](https://docs.rs/koru-delta)
5
+ [![License: MIT OR Apache-2.0](https://img.shields.io/badge/license-MIT%20OR%20Apache--2.0-blue.svg)](LICENSE)
6
+
7
+ **Tagline:** *"Invisible. Causal. Everywhere."*
8
+
9
+ **One-line:** *KoruDelta gives you Git-like history, Redis-like speed, and distributed consistency—without configuration.*
10
+
11
+ ## What Makes It Different?
12
+
13
+ | Feature | SQLite | Redis | PostgreSQL | **KoruDelta** |
14
+ |---------|--------|-------|------------|---------------|
15
+ | Zero-config | ✅ | ❌ | ❌ | ✅ |
16
+ | Time travel / audit | ❌ | ❌ | ❌ (complex) | ✅ Built-in |
17
+ | Vector search | ❌ (extension) | ❌ | ✅ (pgvector) | ✅ Native |
18
+ | Causal consistency | ❌ | ❌ | ❌ | ✅ |
19
+ | Binary size | ~1MB | ~10MB | ~100MB | **~11MB** |
20
+ | History retention | ❌ | ❌ | ❌ | ✅ Unlimited |
21
+ | Materialized views | ❌ | ❌ | ✅ | ✅ Native |
22
+
23
+ **KoruDelta isn't just another database—it's a *time-aware* database.**
24
+
25
+ Every write is versioned. Query data as it existed 5 minutes ago. Compare versions with Git-style diffs. Build audit trails without application changes.
26
+
27
+ ## Quick Start
28
+
29
+ ```bash
30
+ # Install (10 seconds)
31
+ cargo install koru-delta
32
+
33
+ # Use (0 configuration)
34
+ kdelta set users/alice '{"name": "Alice", "age": 30}'
35
+ kdelta get users/alice
36
+ kdelta log users/alice # Full history
37
+ kdelta get users/alice --at "2026-02-01T00:00:00Z" # Time travel
38
+ ```
39
+
40
+ ```rust
41
+ use koru_delta::KoruDelta;
42
+
43
+ #[tokio::main]
44
+ async fn main() -> Result<(), Box<dyn std::error::Error>> {
45
+ let db = KoruDelta::start().await?;
46
+
47
+ // Single write
48
+ db.put("users", "alice", serde_json::json!({
49
+ "name": "Alice",
50
+ "email": "alice@example.com"
51
+ })).await?;
52
+
53
+ // Batch write (10-50x faster for bulk operations)
54
+ db.put_batch(vec![
55
+ ("products", "p1", serde_json::json!({"name": "Widget", "price": 9.99})),
56
+ ("products", "p2", serde_json::json!({"name": "Gadget", "price": 19.99})),
57
+ ]).await?;
58
+
59
+ // Get current value
60
+ let user = db.get("users", "alice").await?;
61
+
62
+ // Get history
63
+ let history = db.history("users", "alice").await?;
64
+
65
+ // Time travel
66
+ let past_user = db.get_at("users", "alice", timestamp).await?;
67
+
68
+ Ok(())
69
+ }
70
+ ```
71
+
72
+ ## Performance
73
+
74
+ **Real benchmarks** (MacBook Pro M1, 16GB RAM, SSD):
75
+
76
+ | Metric | KoruDelta | SQLite (fsync) | Notes |
77
+ |--------|-----------|----------------|-------|
78
+ | **Writes (single)** | ~201 ops/sec | ~3,700 ops/sec | KoruDelta: WAL + versioning |
79
+ | **Writes (batch)** | ~3,500 ops/sec* | N/A | 16x faster with `put_batch` |
80
+ | **Reads** | ~134K ops/sec | ~267K ops/sec | Hot memory cache |
81
+ | **Binary size** | 11MB | 1MB | Single static binary |
82
+ | **Memory** | Configurable | Configurable | 512MB default |
83
+
84
+ \* Batch write: 1000 items in 280ms vs 4.66s for individual writes
85
+
86
+ **Why slower writes?** KoruDelta does more:
87
+ - Every write creates a version (immutable history)
88
+ - Content-addressed deduplication (Blake3 hashes)
89
+ - Causal graph tracking
90
+ - Automatic memory tier promotion
91
+
92
+ **Batch writes** (`put_batch`) amortize fsync cost across many items, delivering 10-50x speedups for bulk operations.
93
+
94
+ **Trade-off:** Speed for superpowers. If you need audit trails, time travel, or causal consistency, KoruDelta eliminates weeks of application development.
95
+
96
+ ## Core Features
97
+
98
+ ### 🕰️ Time Travel (Built-in)
99
+
100
+ ```rust
101
+ // Every change is versioned forever
102
+ let history = db.history("users", "alice").await?;
103
+
104
+ // Query past state
105
+ let past = db.get_at("users", "alice", yesterday).await?;
106
+
107
+ // Compare versions
108
+ kdelta diff users/alice
109
+ ```
110
+
111
+ **Use cases:** Audit trails, compliance (HIPAA/GDPR), debugging, undo/redo.
112
+
113
+ ### 📊 Materialized Views (v2.0.0)
114
+
115
+ ```rust
116
+ use koru_delta::views::ViewDefinition;
117
+ use koru_delta::query::{Query, Filter};
118
+
119
+ let view = ViewDefinition {
120
+ name: "active_users".to_string(),
121
+ source_collection: "users".to_string(),
122
+ query: Query {
123
+ filters: vec![Filter::eq("status", "active")],
124
+ ..Default::default()
125
+ },
126
+ created_at: chrono::Utc::now(),
127
+ description: Some("Active users only".to_string()),
128
+ auto_refresh: true,
129
+ };
130
+
131
+ db.create_view(view).await?;
132
+ let results = db.query_view("active_users").await?; // Instant
133
+ ```
134
+
135
+ Views persist across restarts and auto-refresh on writes.
136
+
137
+ ### 🔍 Vector Search (v2.0.0)
138
+
139
+ ```rust
140
+ use koru_delta::vector::Vector;
141
+
142
+ // Store embedding
143
+ let embedding = Vector::new(vec![0.1, 0.2, 0.3, ...], "text-embedding-3-small");
144
+ db.embed("docs", "doc1", embedding, None).await?;
145
+
146
+ // Semantic search
147
+ let results = db.embed_search(
148
+ Some("docs"),
149
+ &query_vector,
150
+ VectorSearchOptions { top_k: 10, threshold: 0.0, model_filter: None }
151
+ ).await?;
152
+ ```
153
+
154
+ Build RAG applications, semantic document search, recommendation engines.
155
+
156
+ ### 🔔 Real-time Subscriptions
157
+
158
+ ```rust
159
+ let (sub_id, mut rx) = db.subscribe(Subscription {
160
+ collection: Some("orders".to_string()),
161
+ key: None,
162
+ filter: None,
163
+ change_types: vec![ChangeType::Insert, ChangeType::Update],
164
+ name: Some("order-monitor".to_string()),
165
+ }).await;
166
+
167
+ while let Ok(event) = rx.recv().await {
168
+ println!("New order: {}", event.key);
169
+ }
170
+ ```
171
+
172
+ ### 🔐 Self-Sovereign Auth
173
+
174
+ ```rust
175
+ use koru_delta::auth::{mine_identity, IdentityUserData};
176
+
177
+ // Mine an identity (proof-of-work prevents spam)
178
+ let identity = mine_identity(
179
+ IdentityUserData::new("alice"),
180
+ 4 // difficulty: 4 leading hex zeros
181
+ ).await;
182
+
183
+ // identity.id = public key
184
+ // identity.secret_key = private key (keep secure!)
185
+ ```
186
+
187
+ No central authority. Users own their keys.
188
+
189
+ ### 🌐 Browser/WASM
190
+
191
+ ```javascript
192
+ import init, { KoruDeltaWasm } from 'koru-delta';
193
+
194
+ await init();
195
+
196
+ // Persistent database (IndexedDB)
197
+ const db = await KoruDeltaWasm.newPersistent();
198
+
199
+ await db.put('users', 'alice', { name: 'Alice', age: 30 });
200
+ const user = await db.get('users', 'alice');
201
+
202
+ // Batch writes for better performance (10-50x faster)
203
+ await db.putBatch([
204
+ { namespace: 'users', key: 'alice', value: { name: 'Alice' } },
205
+ { namespace: 'users', key: 'bob', value: { name: 'Bob' } },
206
+ ]);
207
+
208
+ // Data survives page refreshes!
209
+ ```
210
+
211
+ ## When to Use KoruDelta
212
+
213
+ ### ✅ Perfect For
214
+
215
+ | Use Case | Why KoruDelta Wins |
216
+ |----------|-------------------|
217
+ | **Audit-heavy apps** | Built-in versioning, no schema changes |
218
+ | **Local-first software** | Works offline, syncs when online |
219
+ | **Edge/IoT** | 11MB binary, survives power loss |
220
+ | **AI agents** | Vector search + memory tiering |
221
+ | **Config management** | Time travel, easy rollbacks |
222
+ | **Compliance** | Immutable history, cryptographic proofs |
223
+
224
+ ### ⚠️ Not For
225
+
226
+ | Use Case | Use Instead |
227
+ |----------|-------------|
228
+ | 100K+ writes/sec analytics | ClickHouse, TimescaleDB |
229
+ | Complex SQL JOINs | PostgreSQL |
230
+ | Multi-region active-active | CockroachDB, Spanner |
231
+ | Pure caching | Redis |
232
+
233
+ ## Architecture
234
+
235
+ ### The Secret: Distinction Calculus
236
+
237
+ KoruDelta is built on [koru-lambda-core](https://github.com/swyrknt/koru-lambda-core)—a minimal axiomatic system for distributed computation:
238
+
239
+ - **Mathematical guarantees** - Safety from formal foundations
240
+ - **Structural integrity** - Can't corrupt by design
241
+ - **Deterministic operations** - Same inputs → same results
242
+ - **Natural distribution** - Consensus emerges from axioms
243
+
244
+ ### Storage: WAL + Content-Addressed
245
+
246
+ ```
247
+ ~/.korudelta/db/
248
+ ├── wal/000001.wal # Append-only log (immutable)
249
+ └── values/ab/cd1234... # Deduplicated by content hash
250
+ ```
251
+
252
+ **Benefits:**
253
+ - O(1) writes (append, not rewrite)
254
+ - Crash-safe (never overwrites data)
255
+ - Automatic deduplication
256
+ - The log IS the history
257
+
258
+ ### Memory: Brain-Inspired Tiering
259
+
260
+ | Tier | Capacity | Access | Eviction |
261
+ |------|----------|--------|----------|
262
+ | **Hot** | 10K items | ~400ns | LRU |
263
+ | **Warm** | Recent chronicle | ~1µs | Age-based |
264
+ | **Cold** | Consolidated epochs | ~10µs | Fitness score |
265
+ | **Deep** | Genomic (1KB) | Load on demand | Manual |
266
+
267
+ Like human memory: frequently used items stay hot, patterns consolidate to deep storage.
268
+
269
+ ## CLI Reference
270
+
271
+ ```bash
272
+ # Basic CRUD
273
+ kdelta set users/alice '{"name": "Alice"}'
274
+ kdelta get users/alice
275
+ kdelta delete users/alice
276
+
277
+ # Time travel
278
+ kdelta get users/alice --at "2026-02-01T00:00:00Z"
279
+ kdelta log users/alice # History
280
+ kdelta diff users/alice # Compare versions
281
+
282
+ # Views
283
+ kdelta view create active_users users --filter 'status = "active"'
284
+ kdelta view list
285
+ kdelta view query active_users
286
+ kdelta view refresh active_users
287
+
288
+ # Queries
289
+ kdelta query users --filter 'age > 30' --sort name --limit 10
290
+ kdelta query sales --sum amount # Aggregation
291
+
292
+ # HTTP API
293
+ kdelta serve --port 8080
294
+ kdelta --url http://localhost:8080 get users/alice
295
+
296
+ # Cluster (experimental)
297
+ kdelta start --join 192.168.1.100
298
+ ```
299
+
300
+ ## Examples
301
+
302
+ ```bash
303
+ # Full feature showcase
304
+ cargo run --example crisis_coordination_demo
305
+
306
+ # Distributed cluster validation
307
+ cargo run --example cluster_e2e_test
308
+
309
+ # Stress testing
310
+ cargo run --example stress_test --release
311
+
312
+ # Original demos
313
+ cargo run --example ecommerce_demo
314
+ ```
315
+
316
+ ## Project Stats
317
+
318
+ - **15,000+ lines** Rust code
319
+ - **424 tests** (all passing)
320
+ - **0 compiler warnings**
321
+ - **11MB** binary size
322
+ - Cross-platform: Linux, macOS, Windows, WASM
323
+
324
+ ## Distributed Status
325
+
326
+ **Current (v2.0.0):** Single-node production ready
327
+
328
+ **Multi-node clustering:** Infrastructure exists, HTTP broadcast gap. Planned for v2.1.0.
329
+
330
+ | Feature | Status |
331
+ |---------|--------|
332
+ | Node discovery | ✅ Working |
333
+ | Initial sync on join | ✅ Working |
334
+ | Live replication | ⚠️ Gap (v2.1.0) |
335
+ | Gossip protocol | ✅ Working |
336
+
337
+ ## Security
338
+
339
+ - **Auth:** Proof-of-work identity mining (prevents spam)
340
+ - **Crypto:** Ed25519 signatures, Blake3 hashing
341
+ - **Model:** Self-sovereign (users own keys, no central auth server)
342
+ - **TLS:** Recommended for HTTP API (use reverse proxy)
343
+
344
+ ## Operations
345
+
346
+ ```bash
347
+ # Resource limits (via code)
348
+ let config = CoreConfig {
349
+ memory: MemoryConfig {
350
+ hot_capacity: 10000,
351
+ max_memory_mb: 512,
352
+ ..Default::default()
353
+ },
354
+ resource_limits: ResourceLimits {
355
+ max_disk_mb: 10 * 1024, // 10GB
356
+ max_open_files: 256,
357
+ max_connections: 100,
358
+ ..Default::default()
359
+ },
360
+ ..Default::default()
361
+ };
362
+
363
+ # Logging
364
+ export KORU_LOG=info # error, warn, info, debug, trace
365
+ ```
366
+
367
+ **Monitoring:** Structured logs via `tracing`. Prometheus metrics planned for v2.1.
368
+
369
+ ## Contributing
370
+
371
+ See [CONTRIBUTING.md](CONTRIBUTING.md) and [ARCHITECTURE.md](ARCHITECTURE.md).
372
+
373
+ ## License
374
+
375
+ MIT OR Apache-2.0
376
+
377
+ ## Links
378
+
379
+ - [GitHub](https://github.com/swyrknt/koru-delta)
380
+ - [Design](DESIGN.md) - Philosophy and decisions
381
+ - [Architecture](ARCHITECTURE.md) - Technical deep dive
382
+ - [CLI Guide](CLI_GUIDE.md) - Complete command reference
383
+
384
+ ---
385
+
386
+ *KoruDelta: Where data meets history, and simplicity meets power.*