Folder: /

0 items
Select a file to inspect its immutable versions
No file selected.
VFS EventTarget Mutation Stream
Quick Code Samples (Run directly in DevTools console or your app)
// 1. Create session-bound file system
const fs = await createFS({ sessionId: "workspace-demo" });
const file = await fs.createFile("/notes.txt", "Initial content");

// 2. Update file (generates new immutable SHA-256 version)
await fs.updateFile(file.id, "Updated content with automatic hashing");

// 3. Undo previous mutation
await fs.undo();

// 4. Time travel: inspect versions and restore
const versions = await fs.listFileVersions(file.id);
await fs.restoreVersion(file.id, versions[1].hash);