@justtemporary/discovery
v0.1.0
Published
Connect-time bootstrap contract for resolving a doc to an attachment plan.
Readme
@justtemporary/discovery
Connect-time bootstrap contract for resolving a doc to an attachment plan.
This package is intentionally separate from @justtemporary/sync-protocol and the CRDT core.
It covers:
resolveDoc: return an attachment plan for a known doc- cache helpers for "resolve once, reconnect directly later"
- shared types used by standalone bootstrap servers such as
@justtemporary/discovery-server-node
Typical flow:
- client calls
resolveDoc - client caches the returned attachment plan
- client connects directly to the returned websocket endpoint
This keeps bootstrap out of the steady-state sync hot path.
Out of scope:
- sync protocol details
- storage or backend implementation
- regional routing policy
