How Rune stores a blog on-chain
Posts are content-addressed directories on onchfs, on Tezos X, with the same CID on every chain.
This post is for the curious: what actually happens when you press Publish on Rune?
A post is a directory
When you publish, Rune renders your post into a complete, self-contained HTML page with its styling inlined. Together with the Markdown source, any images and a small meta.json, it forms a directory:
my-post/
index.html the page, readable in any browser
post.md your Markdown
meta.json title, date, author, tags
images/ compressed images
That directory is written to onchfs. Files are split into 16 KB chunks, and every chunk, file and directory is identified by a hash of its content. The directory's hash is the post's CID.
Rendering is deterministic: the same post always produces exactly the same bytes, and therefore the same CID.
A blog is a directory of posts
Your blog's front page is another onchfs directory. It holds the post list, an Atom feed, a manifest.json, and links to every post directory by CID. Posts are never uploaded twice. Each time you publish, a new front page is written, and its manifest points to the previous one, so the history of your blog is chained on-chain as well.
Why Tezos X
Tezos X runs Michelson smart contracts on Etherlink, Tezos' layer 2. Storage there costs a fraction of layer 1: roughly 5 ꜩ per megabyte including fees, so a text post costs a few hundredths of a tez. Rune can also anchor a post on Tezos layer 1 for extra permanence.
The onchfs contracts Rune uses compute file identifiers the same way on Tezos L1, Tezos X and the EVM onchfs contracts. The same post has the same CID on every chain.
No wallet needed
Rune signs and pays for inscriptions with its own publisher account, so writers only need an email address. Since every post is content-addressed, it does not matter who paid: anyone can check that what they read is exactly what was published.