Files
modules/applications-economy
Raven ScottandCursor 67f96281c6 Expand pear, media, experimental, state, and messaging modules
Add manual API helpers across categories: pear runtime/embed/runner/spawn,
preflight cancel, update gossip history, headless UI pipe helpers, media
origin weights and latency paths, experimental void/tension/time-capsule,
CRDT conflict-set and grow-only-set, job dispatcher peek, trust graph decay,
session rotateAll, topic channel batch unsubscribe, fulltext searchOr, FEC
batch encode, marketplace cheapest listing, and noise session closeAll.

Co-authored-by: Cursor <[email protected]>
2026-05-21 02:39:38 -04:00
..

Applications (economy)

Path: modules/applications-economy/ · Modules: 3 (production)

P2P economy primitives: credit ledger, auction gossip, marketplace listings. Hub: ../../docs/applications-economy/README.md.

When to use

  • Account balances with credit/debit and mesh sync (credit-ledger)
  • Second-price style bidding over gossip (auction-gossip)
  • Tagged listings with sold state (marketplace-listing)

Modules

Module Protocol Summary
hyper-p2p-credit-ledger credit-ledger/v1 Open account, credit/debit, totalSupply()
hyper-p2p-auction-gossip auction-gossip/v1 Open auction, bids, withdraw, cancel, close
hyper-p2p-marketplace-listing marketplace-listing/v1 Listings, tag/price search, remove

Quick start

const { HyperP2PCreditLedger } = require('hyper-p2p-credit-ledger')
const ledger = new HyperP2PCreditLedger({ topic: 'economy' })
await ledger.ready()
ledger.openAccount('alice')
ledger.credit('alice', 100, 'grant')
console.log(ledger.balance('alice'), ledger.totalSupply())

Test

cd hyper-p2p-auction-gossip && npm install && npm test