How arjunbalaji123/zero-mesh works
ZeroMesh is a decentralized encrypted file-storage network. Users upload and retrieve files through the CLI or REST/web interface: the file manager chunks and encrypts data, stores local copies, replicates chunks to peers, and records manifests; downloads retrieve chunks, decrypt and verify them, then assemble the file. The node integrates storage with Kademlia discovery and TCP messaging. The README documents capabilities beyond the sampled excerpts; links based only on that documentation are cited to the README, and unsampled implementation details are not inferred.
Main entry points: node.py ZeroMesh node · file_manager.py File manager · app.py REST API · routing_table.py Routing table
Components 20
User interfaces
- CLI
zeromesh/cli.py - REST API
zeromesh/api/app.py - Web dashboard
zeromesh/api/static/app.js
File pipeline
- File manager
zeromesh/storage/file_manager.py - Chunker and assembler
zeromesh/core/chunker.py - Hash and encryption
zeromesh/crypto/engine.py - Local chunk store
zeromesh/storage/chunk_store.py - Manifest registry
zeromesh/storage/manifest_registry.py
Peer network
- Routing table
zeromesh/dht/routing_table.py - K-buckets
zeromesh/dht/kbucket.py - Node identity
zeromesh/dht/node_id.py - Kademlia lookup
zeromesh/dht/lookup.py - TCP server
zeromesh/network/server.py - Peer connection
zeromesh/network/connection.py - Wire protocol
zeromesh/network/protocol.py - Peer scorer
zeromesh/network/peer_scorer.py
Node state and telemetry
- ZeroMesh node
zeromesh/node.py - Prometheus metrics
zeromesh/monitoring/metrics.py
Other components
- User
- Other peers
Connections 31
- User → CLI: runs commands
README.md - User → REST API: uses endpoints
README.md - REST API → Web dashboard: serves dashboard
README.md - CLI → ZeroMesh node: operates node
README.md - REST API → ZeroMesh node: uses node
zeromesh/api/app.py - REST API → File manager: uploads and downloads
zeromesh/api/app.py - REST API → Manifest registry: reads and deletes
zeromesh/api/app.py - REST API → Prometheus metrics: updates counters
zeromesh/api/app.py - File manager → Chunker and assembler: chunks and assembles
README.md - File manager → Hash and encryption: encrypts and decrypts
zeromesh/storage/file_manager.py - File manager → Local chunk store: writes and reads chunks
zeromesh/storage/file_manager.py - File manager → Manifest registry: saves and loads manifests
zeromesh/storage/file_manager.py - File manager → Routing table: selects peers
zeromesh/storage/file_manager.py - File manager → Peer scorer: ranks peers
zeromesh/storage/file_manager.py - File manager → Kademlia lookup: finds chunk peers
zeromesh/storage/file_manager.py - ZeroMesh node → File manager: coordinates file operations
README.md - ZeroMesh node → TCP server: starts peer service
README.md - ZeroMesh node → Routing table: maintains peer routes
README.md - ZeroMesh node → Kademlia lookup: provides lookup RPC
zeromesh/node.py - ZeroMesh node → Local chunk store: coordinates storage
README.md - ZeroMesh node → Manifest registry: coordinates manifests
README.md - ZeroMesh node → Peer scorer: records peer reliability
zeromesh/node.py - ZeroMesh node → Prometheus metrics: records telemetry
zeromesh/node.py - Routing table → K-buckets: updates buckets
zeromesh/dht/routing_table.py - Routing table → Node identity: computes distance
zeromesh/dht/routing_table.py - K-buckets → Node identity: keys peers
zeromesh/dht/kbucket.py - Kademlia lookup → Node identity: orders candidates
zeromesh/dht/lookup.py - TCP server → Peer connection: accepts connections
zeromesh/network/server.py - Peer connection → Wire protocol: encodes and decodes
zeromesh/network/connection.py - ZeroMesh node → Other peers: exchanges RPCs
README.md - Prometheus metrics → User: exposes scrape endpoint
README.md