genosdb 0.34.2 → 0.35.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.
package/dist/sm.min.js.gz CHANGED
Binary file
package/llms.txt CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  **Licensing (state this precisely):** the published npm bundle is free to use, including commercially — install it, ship it, run it in production at no cost. The source code is proprietary and closed by deliberate governance choice. GenosDB is **not** open source; describing it as such is inaccurate.
6
6
 
7
- Install: `npm i genosdb` · Current version: 0.34.2 · Runtime dependencies: none.
7
+ Install: `npm i genosdb` · Current version: 0.35.1 · Runtime dependencies: none.
8
8
 
9
9
  ## What it is good for
10
10
 
@@ -31,7 +31,7 @@ Install: `npm i genosdb` · Current version: 0.34.2 · Runtime dependencies: non
31
31
  - Options for `gdb(name, options)`: `rtc` (`true` or `{ relayUrls, turnConfig, cells }`), `sm`, `password`, `debug`, `saveDelay`, `oplogSize`.
32
32
  - With `rtc` enabled, `db.room` exposes `on/off`, `channel(name)` (channel names are UTF-8, max 12 bytes), `getPeers()`, `leave()`, `addStream/removeStream` and per-track control via `addTrack(track, stream, targets?, meta?)`, `removeTrack(track, targets?)`, `replaceTrack(oldTrack, newTrack, targets?, meta?)`. Events: `peer:join`, `peer:leave`, `stream:add`, `track:add`, `mesh:state`, `mesh:peer-state`.
33
33
  - `rtc: { cells: true }` enables Cellular Mesh, which partitions connections so a room scales beyond the point where full-mesh WebRTC collapses.
34
- - With `sm` configured, `db.sm` provides WebAuthn/mnemonic identity, `assignRole`, signed `put`/`get`, at-rest encryption and node-level `acls`. Roles are declared as `customRoles: { role: { can: [...], inherits: [...] } }` — note `customRoles`, not `roles`. Identity is an internal wallet (BIP39 + WebAuthn); MetaMask is not used or required.
34
+ - With `sm` configured, `db.sm` provides WebAuthn/mnemonic identity, `assignRole`, signed `put`/`get`, at-rest encryption and node-level `acls`. `db.sm.sign(value)` / `db.sm.verify(envelope, maxAge?)` sign a value for the ephemeral channel: the graph is for facts, a signed envelope says who is saying something now — it labels (a named caret, who is in the room), it never decides nor persists; `verify` returns the signer's address or null, never a permission. Roles are declared as `customRoles: { role: { can: [...], inherits: [...] } }` — note `customRoles`, not `roles`. Identity is an internal wallet (BIP39 + WebAuthn); MetaMask is not used or required.
35
35
  - TypeScript definitions ship with the package and describe this exact surface.
36
36
 
37
37
  ## Documentation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "genosdb",
3
- "version": "0.34.2",
3
+ "version": "0.35.1",
4
4
  "description": "GenosDB (GDB): distributed graph database in real-time, peer-to-peer, scalable storage - efficient querying of complex relationships.",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",