@johnhenry/browsermesh-core 0.2.5 → 0.3.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/README.md +14 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
# browsermesh-core
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/@johnhenry/browsermesh-core)
|
|
4
|
+
[](LICENSE)
|
|
5
|
+
|
|
3
6
|
Identity, crypto, peer management, and trust primitives for BrowserMesh.
|
|
4
7
|
|
|
8
|
+
## Why this exists
|
|
9
|
+
|
|
10
|
+
`browsermesh-primitives` gives you an Ed25519 keypair and a bare capability token; it has no opinion about *peers* -- who you've seen, how much you trust them, or what they're currently allowed to do. `browsermesh-core` is the layer that turns raw identity primitives into a working peer model: `MeshIdentityManager`/`IdentityWallet` manage which identity is active, `MeshPeerManager`/`PeerState` track who's been seen and when, `TrustGraph` accumulates trust edges into a transitive score, and `MeshACL`/`CapabilityChain`/`CapabilityValidator` turn a raw `CapabilityToken` into an actual access decision. It sits directly on `browsermesh-primitives` and nothing else -- every downstream package that needs to answer "is this peer who they say they are, and are they allowed to do this" builds on `browsermesh-core` rather than reimplementing peer/trust bookkeeping itself.
|
|
11
|
+
|
|
12
|
+
## Cross-package relationship
|
|
13
|
+
|
|
14
|
+
- **Depends on** `@johnhenry/browsermesh-primitives` (required) -- `identity.mjs`, `acl.mjs`, `keyring.mjs`, and `trust.mjs` all import their base types (`PodIdentity`, capability/wire-format primitives) from there.
|
|
15
|
+
- **Used by** `@johnhenry/browsermesh-apps` (optional peer) -- `peer-registry.mjs` types its registry against `MeshPeerManager`/`TrustGraph`/`MeshACL`, and several modules (`mesh-hardening.mjs`, `mesh-keepalive.mjs`, `key-distribution.mjs`) lazily `import()` this package at runtime for `RetryWithBackoff`, `TransportFailover`, `TransportHealthCheck`, `MetricsRegistry`, and the `wrapKeyForMember`/`unwrapKeyForMember` key-wrapping helpers used by CloudStorage's key-distribution service.
|
|
16
|
+
- **Optionally reaches back into** `@johnhenry/browsermesh-apps` itself -- `peer-tools.mjs` lazily `import()`s `ScheduledTask` from `browsermesh-apps` when a peer tool needs to schedule follow-up work. This is a genuine (narrow, optional-on-both-sides) circular relationship: neither package requires the other to load, but each reaches into the other for one specific, lazily-imported piece.
|
|
17
|
+
|
|
5
18
|
## Provenance
|
|
6
19
|
|
|
7
20
|
Extracted from the private `clawser` monorepo (previously `packages/browsermesh-core`), where it was manually published to npm, unscoped, as `browsermesh-core@0.1.0` (2026-07-17) with no CI ever automating that publish. This is its first release as part of the `@johnhenry/browsermesh` monorepo; the version restarts at `0.0.0` per family convention.
|
|
@@ -34,7 +47,7 @@ npm install @johnhenry/browsermesh-core @johnhenry/browsermesh-primitives
|
|
|
34
47
|
## Usage
|
|
35
48
|
|
|
36
49
|
```js
|
|
37
|
-
import { MeshIdentityManager, MeshKeyring, TrustGraph } from 'browsermesh-core';
|
|
50
|
+
import { MeshIdentityManager, MeshKeyring, TrustGraph } from '@johnhenry/browsermesh-core';
|
|
38
51
|
```
|
|
39
52
|
|
|
40
53
|
## License
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@johnhenry/browsermesh-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Identity, crypto, peer management, and trust primitives for BrowserMesh",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.mjs",
|
|
@@ -33,6 +33,6 @@
|
|
|
33
33
|
},
|
|
34
34
|
"homepage": "https://opensource.johnhenry.me/browsermesh/",
|
|
35
35
|
"engines": {
|
|
36
|
-
"node": ">=
|
|
36
|
+
"node": ">=26.0.0"
|
|
37
37
|
}
|
|
38
38
|
}
|