UsersSync & Collaboration

Sync & Collaboration

StudioBrain is designed as a desktop-first application that works offline. Hosted desktop sync is included on every plan. The web app and bring-your-own storage are available on Indie and higher plans.

Sync Overview

FeatureFreeIndieTeamEnterprise
Local-only editingYesYesYesYes
Desktop-to-cloud syncYesYesYesYes
Web access—YesYesYes
Mobile access——YesYes

How Sync Works

The desktop app syncs entity data with your cloud project through the same API the web app uses (api.studiobrain.ai). Each entity create, update, or delete on the cloud is recorded in the project’s change log with a server-assigned sequence number, and clients catch up by asking for changes since the last sequence they saw.

The Sync Loop

Desktop sync is a continuous background loop, not a one-shot upload:

  1. Push — Local edits are debounced (about 0.75 s, at most 5 s) and published to the cloud. Each publish carries the content digest of the cloud version it was based on.
  2. Pull — The desktop pulls cloud changes incrementally. A live notification from the project’s chat socket triggers an immediate pull; a 30-second poll is the fallback when that signal is down.
  3. Conflict detection — If the cloud version changed since the digest a local edit was based on, the edit is parked as a conflict instead of overwriting the cloud row.
  4. Backoff — After failures the loop backs off exponentially (5 s up to 5 min); when idle it relaxes to a 30-second cadence.

There are no separate user-selectable Push / Pull / Two-way modes.

What Gets Synced

ContentSynced
Entity Markdown files (frontmatter + body)Yes
Template files (_Templates/)Yes
Rules files (_Rules/)Yes
Layout JSON files (_Templates/Layouts/)Yes
Plugin configurationsYes
Entity metadata (timestamps, production status)Yes
Thumbnails and small imagesYes
Large binary assets (video, 3D models, audio)Optional (configurable)
SQLite databaseNo (rebuilt from files)
Local AI model filesNo

Sync Status and Review

The desktop status bar shows sync state, and the Sync Review panel lists pending changes and parked conflicts. Sync starts automatically once you are signed in to a cloud project; you do not need to press a button.

Conflict Resolution

Conflicts occur when the same entity is edited both locally and in the cloud between sync operations. StudioBrain never silently overwrites — it always surfaces conflicts for you to resolve.

How Conflicts Are Detected

A conflict is detected when a local edit was made against an older cloud version than the one now stored. The edit is parked (not lost) and shown in the Sync Review panel’s Conflicts tab.

Automatic Resolution

The Sync Review panel can compute a three-way merge and offers Merge all and a Smart Merge proposal. Nothing is applied until you confirm; a confirmed merge is republished as your local version.

Manual Resolution

In the Sync Review panel’s Conflicts tab, each parked conflict can be resolved with:

  • Keep local — Republish your edit over the cloud version. This is refused (409) if your local version is a strict subset of the current cloud row, unless you explicitly override it.
  • Take remote — Apply the cloud version locally and drop your pending change.
  • Apply merge — Save a merged version (three-way merge or Smart Merge) and republish it.
  • Retry — Re-offer the change as-is on the next publish cycle.

Real-Time Updates

The web app receives live entity and schema changes over a WebSocket (GET /api/ws) backed by a per-tenant Durable Object on Cloudflare. The desktop app does not use that channel; it receives an entity_changed signal on its project chat socket and then pulls.

StudioBrain does not support real-time co-editing of the same field (like Google Docs). Each user works independently and conflicts are resolved at sync time as described above.

Offline Mode

StudioBrain is fully functional offline. The desktop app uses a local SQLite database and local file storage — no server connection is needed for entity management, editing, or local AI features.

What Works Offline

  • All entity CRUD operations (create, read, update, delete)
  • Visual Editor, YAML Editor, Markdown Editor
  • Validation Panel (rules are stored locally)
  • Relationship Graph
  • Cross-Entity Search
  • Asset management (local files)
  • AI generation with BYO API keys (if the AI provider is reachable)
  • On-device AI (LiteRT) for free AI features
  • Plugin functionality (locally installed plugins)

What Requires Connection

  • Cloud sync (push/pull)
  • Web app access
  • Mobile app access
  • Live updates
  • Managed AI (BrainBits-based generation through the cloud AI worker)
  • Google Drive sync
  • BrainBits balance updates

Reconnecting

When you come back online:

  1. StudioBrain detects that the cloud is reachable again.
  2. The sync loop resumes and retries with backoff.
  3. Any entities you modified offline are pushed to the cloud.
  4. Any cloud changes from teammates are pulled down.
  5. Conflicts are surfaced for resolution as normal.

All offline work is preserved — nothing is lost.

Google Drive Integration

Indie, Team, and Enterprise subscribers can connect Google Drive as a storage backend for additional backup and sharing.

Setting Up Google Drive

  1. Go to Settings > Storage Providers.
  2. Click Connect Google Drive.
  3. Complete the Google OAuth consent flow. StudioBrain requests access to a dedicated folder in your Drive.
  4. Select which project folders to sync.

What Gets Synced to Drive

StudioBrain creates a StudioBrain/ folder in your Google Drive and mirrors your project structure. Entity Markdown files, templates, and rules are synced automatically. Large binary assets can optionally be included.

Google Drive Quota

Google Drive storage counts against your Google account’s quota. StudioBrain entity files are small (typically under 50 KB each), so even large projects with thousands of entities use minimal Drive space.

Project SizeApproximate Drive Usage (text only)
100 entities~5 MB
1,000 entities~50 MB
10,000 entities~500 MB

Disconnecting Google Drive

To disconnect:

  1. Go to Settings > Storage Providers.
  2. Click Disconnect next to Google Drive.
  3. Your local files are unaffected. Files already in Drive remain there until you delete them manually.

Storage Providers by Tier

ProviderFreeIndieTeamEnterprise
Local filesystemYesYesYesYes
Google Drive—YesYesYes
Dropbox—YesYesYes
OneDrive——YesYes
S3-compatible (own bucket)—YesYesYes
Azure Blob——YesYes

NAS / SMB and Git LFS are not offered as storage providers. To keep desktop content on a NAS, mount the share and point the Local filesystem provider at it — that works on every tier.

Hosted durable storage is limited by tier: 1 GB (Free), 5 GB (Indie), 10 GB per user pooled (Team), custom (Enterprise). Local desktop storage is unlimited on every tier. See Billing & Plans for the plan comparison. The internal source of truth is Storage, Sharing & BrainBits Structure (FINAL).

Next Steps