How pratikshakalbhor/devconv-ps1-swarm-archive works
This is a command-line Swarm archive publisher and recovery tool. The main workflow uploads a local folder as one collection, points an owner/topic feed at its reference, and records the published identity; recovery reads that feed and reconstructs the files using the public identifiers. A separate command buys postage batches. The graph includes configuration, feed helpers, collection and metadata handling, and the shared Bee client. Recovery relationships are based on its excerpt and README; unsampled implementation details are omitted.
Main entry points: publish.ts Publish command · recover.ts Recovery command · buy-batch.ts Buy batch command · bee-client.ts Bee client helpers
Components 12
Archive commands
- Publish command
src/publish.ts - Recovery command
src/recover.ts - Buy batch command
src/buy-batch.ts
Archive and feed
- Collection builder
src/lib/archive-collection.ts - Feed identity helpers
src/lib/feed-utils.ts - Publication record
src/lib/archive-meta.ts
Runtime and storage
- Runtime configuration
src/lib/config.ts - Bee client helpers
src/lib/bee-client.ts
Other components
- Archive operator
- Local archive folder
- Bee node
- Recovered files
Connections 21
- Archive operator → Publish command: runs
README.md - Local archive folder → Publish command: supplies folder
README.md - Publish command → Runtime configuration: loads settings
src/publish.ts - Publish command → Bee client helpers: checks node and batch
src/publish.ts - Publish command → Collection builder: builds collection
src/publish.ts - Publish command → Feed identity helpers: derives feed identity
src/publish.ts - Publish command → Bee node: uploads and updates feed
src/publish.ts - Publish command → Publication record: writes publication record
src/publish.ts - Collection builder → Bee node: provides upload payload
README.md - Archive operator → Recovery command: runs
README.md - Recovery command → Runtime configuration: loads endpoint settings
src/recover.ts - Recovery command → Bee client helpers: creates client
src/recover.ts - Recovery command → Feed identity helpers: parses topic and handles empty feed
src/recover.ts - Recovery command → Publication record: reads identity if needed
src/recover.ts - Recovery command → Bee node: reads feed and downloads files
src/recover.ts - Recovery command → Recovered files: writes files
src/recover.ts - Archive operator → Buy batch command: runs
README.md - Buy batch command → Runtime configuration: loads settings
src/buy-batch.ts - Buy batch command → Bee client helpers: checks node and batch
src/buy-batch.ts - Buy batch command → Bee node: buys postage batch
src/buy-batch.ts - Bee client helpers → Bee node: probes and reads batch
src/lib/bee-client.ts