@soulcraft/cor 3.0.0 → 3.0.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.
Files changed (2) hide show
  1. package/README.md +20 -8
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -29,7 +29,7 @@
29
29
 
30
30
  ---
31
31
 
32
- [Brainy](https://github.com/soulcraftlabs/brainy) is the open-source knowledge database — vectors, relationships, metadata, and full-text in one MIT-licensed engine. Cor swaps compiled Rust in under every hot path. **No code changes. No configuration.** Add the package and it activates; **remove it and everything keeps working** on the same files, at open-source speed. That's the contract in both directions.
32
+ [Brainy](https://github.com/soulcraftlabs/brainy) is the open-source knowledge database — vectors, relationships, metadata, and full-text in one MIT-licensed engine. Cor swaps compiled Rust in under every hot path. **No code changes. No configuration.** Install it and brainy (≥ 8.0.9) auto-detects it loudly: activation prints `Providers: 10/10 native`, a missing license warns by name, and a broken install makes `init()` throw rather than quietly run slow. **Remove it and everything keeps working** on the same files, at open-source speed. That's the contract in both directions.
33
33
 
34
34
  | Brainy runs it as | Cor replaces it with | You get |
35
35
  |---|---|---|
@@ -48,18 +48,30 @@ npm install @soulcraft/cor # or: bun add @soulcraft/cor
48
48
  ```
49
49
 
50
50
  ```typescript
51
- import { Brainy, NounType } from '@soulcraft/brainy'
51
+ import { Brainy, NounType, VerbType } from '@soulcraft/brainy'
52
52
 
53
53
  const brain = new Brainy({ storage: { type: 'filesystem', path: './data' } })
54
- await brain.init() // cor is auto-detected — every hot path is now native
54
+ await brain.init() // cor auto-detected (brainy ≥ 8.0.9) look for "Providers: 10/10 native"
55
55
 
56
- await brain.add({ data: 'native rust acceleration', type: NounType.Concept })
56
+ const cor = await brain.add({
57
+ data: 'Cor swaps compiled Rust in under every Brainy hot path',
58
+ type: NounType.Concept,
59
+ subtype: 'library',
60
+ metadata: { layer: 'native', year: 2026 },
61
+ })
62
+ const brainy = await brain.add({
63
+ data: 'Brainy is the open-source knowledge database',
64
+ type: NounType.Concept,
65
+ subtype: 'library',
66
+ metadata: { layer: 'engine', year: 2026 },
67
+ })
68
+ await brain.relate({ from: cor, to: brainy, type: VerbType.DependsOn, subtype: 'runtime' })
57
69
 
58
70
  const hits = await brain.find({
59
- query: 'fast vector search', // vector — what it means
60
- where: { status: 'active' }, // metadata — pushed INTO the walk
61
- connected: { from: teamId }, // graph — what it touches
62
- }) // one call, three indexes, fused
71
+ query: 'native acceleration', // vector — what it means
72
+ where: { layer: 'native' }, // metadata — pushed INTO the walk
73
+ connected: { to: brainy }, // graph — what it touches
74
+ }) // one call, three indexes, fused
63
75
  ```
64
76
 
65
77
  **Activate** (paid tiers; free = just use brainy):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soulcraft/cor",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Native Rust acceleration for Brainy \u2014 SIMD distance, vector quantization, zero-copy mmap, native embeddings. Free tier for storage, Pro license for compute acceleration.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",