hashtree-cli
Hashtree daemon and CLI - content-addressed storage with P2P sync.
Installation
# Full install with P2P and social graph (default)
# Without social graph (nostrdb)
# Minimal install without P2P or social graph
Commands
# Add content
# Push to Blossom servers
# Get/cat content
# Pins
# Nostr identity
# Daemon
Social Graph
The daemon embeds nostrdb to maintain a local social graph. On startup it crawls follow lists (kind 3) from Nostr relays and uses follow distance to control write access to your Blossom server -- no allow-lists needed for people in your social circle.
The social graph API is available at /api/socialgraph/distance/:pubkey.
Configuration
Config file: ~/.hashtree/config.toml
[]
= ["https://cdn.iris.to", "https://hashtree.iris.to"]
= ["https://hashtree.iris.to"]
[]
= ["wss://relay.damus.io", "wss://nos.lol"]
= "npub1..." # defaults to own key
= 2 # BFS depth for follow graph crawl
= 3 # max follow distance for write access
Keys file: ~/.hashtree/keys
nsec1abc123... default
nsec1xyz789... work
Part of hashtree-rs.