Files
modules/applications-economy
Raven ScottandCursor f1536f9b6b Expand pubsub, economy, routing-advanced, and platform categories.
Manual pass adds listChannels, totalSupply, openCount, listSessionIds, new api.md files, corrected trust/reactive/conflict getStats docs, and category README hubs for routing-advanced, measurement, pear-platform, and trust-security.

Co-authored-by: Cursor <[email protected]>
2026-05-21 00:58:14 -04:00
..
2026-05-21 00:07:44 -04:00
2026-05-21 00:07:44 -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, close with winner
hyper-p2p-marketplace-listing marketplace-listing/v1 Create/search/sell listings

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