Bonsai
Blog /

Dispersal: letting posts travel on their own

A tree doesn’t carry its seeds anywhere. The dandelion leaves it to the wind, the cherry to birds, the burdock to whatever animal brushes past. Botanists call this seed dispersal: growing the seed is the tree’s job; getting it somewhere it can sprout is someone else’s.

The Bonsai feature that publishes your writing to a website is called Dispersal.

Where the posts used to live

PARA has a box called Express for what you send out into the world: blog posts, docs, drafts for other platforms. In Bonsai that’s the 5_Express/ folder.

The trouble was that anything written there was still several steps away from being out. Take my personal blog, Message from Garden Place. Posts were written in an Obsidian vault and published with two Obsidian buttons, one for a dry run and one to go live. Behind them was a Python script in the blog repo: read the vault, convert the formatting, push to GitHub, let Vercel build, email the subscribers, and render WeChat and Xiaohongshu versions on the way out.

The script was fine. The problem was that it was tied to an Obsidian vault: if the posts were going to move into Bonsai, Bonsai needed its own “press to publish”.

Bonsai only grows the seeds

We started from one rule: Bonsai doesn’t render your site and doesn’t deploy it.

Every site builds its own way. Hugo, Astro, a homemade script; deployed on Vercel or Cloudflare; email through Resend; images that need local fonts and Chrome. Bonsai can’t learn all of that, and shouldn’t. More importantly, the keys for email and deploys already live in the repo on your computer. There’s no reason to hand them to Bonsai’s servers, or stuff them into GitHub Secrets, just to publish a post.

So Dispersal splits the work like this:

  • Bonsai keeps the posts and images, and is the single source.
  • The runtime on your computer: an agent in the site repo runs its publish script, following the guide the repo itself provides.
  • The site’s CI/CD builds and ships on push, as it always has.

The tree grows seeds; the wind does the travelling.

What happens when you press Publish

Every note under 5_Express/ has Publish in its More menu. Press it and a new conversation opens in the right pane with one sentence filled in: publish this note to the targets turned on in its frontmatter; dry run first, show me the result, publish for real only after I confirm.

Pick the runtime and the site repo in the setup bar and press Send. The agent then does three things on your computer:

  1. Calls the MCP tool export_folder for a download link valid for 10 minutes and pulls the whole folder, byte for byte, into a temporary directory. To the script it is just an ordinary vault.
  2. Runs the dry run and pastes the report to you as is: which post is missing a field, which link would break, which draft block was never closed.
  3. Goes live only when you say so.

Those are the same two steps as the old Obsidian buttons; the buttons have just become a sentence. Where a post goes is decided by switches in its frontmatter: for my blog, gardenplace: true means the blog itself, wechat: true and xiaohongshu: true mean other platforms. The keys are the site script’s own convention; Bonsai doesn’t interpret them.

What moving house added

Moving a blog from Obsidian into Bonsai showed a few gaps, which are now filled:

  • Images: Bonsai used to store only .md. Images now live next to the notes, with the same permissions.
  • Upload folder: drag a whole folder in; the structure stays and the notes are written by you.
  • Folder rename: my first upload nested itself as 5_Express/5_Express, so now there’s Rename. Notes and images move together, the old notes go to Recently deleted, and [[links]] resolve by name, so nothing needs editing.

Not done yet

To be honest, Dispersal today is a path you can walk, not a paved one:

  • The editor doesn’t show images referenced from a note yet; you see the ![[image.png]] line instead.
  • Only my own blog is connected so far. Bonsai’s own blog and docs, and other personal sites, still publish the old way.
  • A self-media pack, one post rendered per platform, already works locally in the blog script, but Bonsai has no dedicated entry for it.

To connect your own site, the docs have the recipe: a repo, a short publishing guide, and a few frontmatter switches.

The seeds grow in Bonsai. The wind is yours.