Add clear/list/bulk/count helpers across hyperdrive, autobase, CRDTs, observability, transport, pear-platform, and related categories for more complete manual module surfaces. Co-authored-by: Cursor <[email protected]>
Storage (Autobase)
Path: modules/storage-autobase/ · Modules: 5 (all production)
Doc hub: docs/storage-autobase/README.md
Autobase coordination for multi-writer logs: fork selection, view sync gossip, leases, indexer bus, and local write batching.
Shared helpers: ../_shared/autobase-base.js (autobaseStats, compareViewVersion, mergeViewRecord).
Packages
| Module | Protocol | P2P |
|---|---|---|
| hyper-p2p-autobase-fork-choice | autobase-fork-choice/v1 |
yes |
| hyper-p2p-autobase-view-sync | autobase-view-sync/v1 |
yes |
| hyper-p2p-autobase-writer-lease | autobase-writer-lease/v1 |
yes |
| hyper-p2p-autobase-indexer-bus | autobase-indexer-bus/v1 |
yes |
| hyper-p2p-autobase-light-writer | autobase-light-writer/v1 |
no |
Recent API helpers
- fork-choice:
mergeViews,hasView,removeView,scoreFork - writer-lease:
canWrite,snapshot,leaseRemainingMs,expireStaleLeases - indexer-bus:
countByType,replayFrom,filterByType,peekEvents - view-sync:
syncStatus,snapshot,viewHash,behindBy - light-writer:
proposeMany,peekOps,rollbackOps
Composition
fork-choice → pick canonical fork
view-sync → align version/hash across peers
writer-lease → gate who may append
light-writer → batch proposals → autobase.append
indexer-bus → fan-out index jobs after apply
Test
cd hyper-p2p-autobase-fork-choice && npm test