sugar.video

Storehouse: keeping videos online, paid by the people who care.

Anyone can keep a copy of a video and serve it. Anyone who cares about it can pay them to. The payer decides who gets paid, a public program on gno.land keeps the books, and every byte is checked, so nobody has to trust anybody. sugar.video is the first site built on it.

A whitepaper in plain words. The technical plan is HOSTING.md in sugar.video's code.

The problem

Videos disappear. Sites delete them, accounts get closed, links stop working. sugar.video itself deletes its oldest videos whenever its disk fills up, because keeping them costs money and nobody pays for it.

The usual answer is one big company that keeps everything and decides what stays. That company can change its mind, and so can whoever leans on it. Storehouse is a different answer: many small keepers, paid directly by the people who care about each video.

Who is who

A name you can check

Every file gets a name made from its own contents. The file is cut into small blocks, each block gets a fingerprint (a short number that changes completely if a single byte changes), and the fingerprints are combined in pairs, again and again, until one fingerprint is left. That last one is the file's name.

So you can take pieces of a video from anyone, even strangers, and check each piece against the name before you use it. A host that sends a wrong piece is caught on that piece and simply skipped. This is the same way BitTorrent names files (version 2), so the same file has the same name there too.

A video on sugar.video is a small bundle with a name of its own: the video, each voice, the captions and the picture shown before it plays.

How paying works

A payer makes a pledge: "keep this bundle, and pay this much a week to keep it." The pledge also says who gets paid:

Each pledge has two addresses, like two piggy banks. Money anyone puts in the first is given: it can only ever go to hosts and measurers, so a fan topping up a pledge knows it reaches the people keeping the video. Money in the second is the payer's own deposit: the payer can take back whatever isn't needed for the weeks still owed. Anyone can put money in from anywhere: a wallet, an exchange, another program, a friend.

Once a week, anyone can settle a pledge: the program takes that week's money out of it and credits it to the hosts (and the measurers' share to them), who collect it whenever they like. A week no host qualified for isn't refunded to the payer: its money stays owed to hosts and is paid out in the weeks after.

A payer can promise to keep paying until a certain week, but only with money already in the pledge, and that money then stays there until those weeks are paid. Hosts can see all of this before they agree to keep anything.

The program takes no cut, there is no new coin and no company in the middle; each transaction pays only gno.land's own small charge for the work it does, a fraction of a cent. The program never decides who deserves money. It only follows the payer's pledge and keeps the books in public, in GNOT.

Watching: free and steady, or paid and fast

Free. Every host gives every viewer a quick start, then a steady stream, up to a couple of gigabytes a day. The player takes different pieces from several hosts at the same time, so the streams add up, the way a torrent pulls from many people at once. The more hosts keep a video, the better it plays.

Fast. If you want a big download right now, you ask hosts what they charge for that many gigabytes, pick the cheapest, and pay it once with a small payment on gno.land (x402, a standard way for a web server to ask for payment). You get a ticket that lets you download that much at full speed. That part is still being tested on gno.land's test networks.

What stops cheating

sugar.video, built on it

A sugar.video link is private: only people with the link can watch. So nothing goes on the network unless someone presses Keep this video online on its page, which says plainly that keeping it makes it public.

Then sugar.video describes the video's files, serves them as a host, and lists the bundle where other hosts can find it. Hosts that follow sugar.video keep their own copies. When sugar.video needs the room and deletes its own copy (a week after its other files), the page doesn't say "deleted" any more: it plays the video from the hosts that keep it, checking every piece in your browser.

Anyone can help keep sugar.video's kept videos online with one command: storehouse host -follow https://sugar.video/net/keep. Anyone can fetch one, checked piece by piece: storehouse get c:<its name> -hosts https://sugar.video/net.

Why gno.land

The rules are a public program anyone can read, that no one can quietly change for one payer, and the money and promises are kept by the chain, not by a company's say-so. Payments are in GNOT, and a payer can let a small program top up a pledge from their wallet with a key that can only spend a capped amount, so the main key stays safe.

Where it is now