PotDrive
Open Drive

Reference

CLI

Store, deploy, fetch, inspect and renew from a terminal. Runs with Bun.

Setup

Terminal
git clone https://github.com/Anshv784/potdrive && cd potdrive && bun install
export POTDRIVE_SEED="your twelve words …"        # signs put, deploy and renew
export POTDRIVE_REGISTRY=0x…                        # optional: register ownership

Commands

CommandDoes
put <file> [--private] [--keep N]Store a file and print its share link. --keep prepays N renewals.
deploy <dir>Store a folder as a UnixFS directory and print its site URL.
get <cid> [-o path] [--key k]Fetch, verify every block, decrypt if sealed, save.
info <cid>Every block, its (block, index), size and expiry.
renew <cid>Renew every block of a file or folder.
lsEverything TransactionStorage holds right now.

Example

Terminal (illustrative output)
$ bun cli/potdrive.ts put ./deck-v2.pdf
  prepared   deck-v2.pdf · 3.40 MiB → 7 block(s)
  estimate   61.204 tPOT at most
  dedup      5 block(s), 2.81 MiB already on chain, not paid again
  authorized 0x8c1e5f0d… (block #76,112)
  stored     ████████████████████ 7/7 blocks
  verified   root served by bitswap in 412 ms
  link       https://potdrive.anshverma.tech/f/bafykbzace…?name=deck-v2.pdf

Edit this page on GitHub