Skip to content

03 — Shared drives

Locus

Locus turns the Strand + Lens stack into something that looks like a filesystem: files, directories, mounts, watchers, journal-backed governance, and permission modes. The same model powers personal drives, shared workspaces, and sync targets.

A closer lookA place for work to live.

Records and content live in a drive. The agent keeps a local working copy and shares deliberately.

  1. 01Keep a local copy
  2. 02Organize the working set
  3. 03Share what you choose
01 — Concepts
01

Files, directories, mounts on top of Strand.

02

Watchers + journal-backed governance.

03

Permission modes per path.

04

Sync targets — local-first, replicate where you choose.

02 — Code

A handful of lines.

use locus::{Locus, MountConfig};

let drive = Locus::mount("team/notes", MountConfig::default()).await?;
drive.write("readme.md", b"# Off-chain").await?;
let mut watch = drive.watch("/").await?;
while let Some(evt) = watch.next().await {
    println!("changed: {:?}", evt.path);
}