Architecture

Local Mode vs. Cloud Mode: Choosing Your Tier

A complete breakdown of Local Mode (browser-indexed, 100% private) vs. Cloud Mode (Email & Google sign-in, account linking, WebP uploads, and Google Drive cloud export).

# Local Mode vs. Cloud Mode: Choosing Your Tier

Nodestr operates under a strict **privacy-first architecture**, offering two operational tiers tailored to your storage and collaboration needs: **Local Mode** and **Cloud Mode**.

---

## 1. Feature & Capacity Comparison Matrix

| Operational Metric | Local Mode (Offline Browser) | Cloud Mode (Free Account) |
| :--- | :--- | :--- |
| **Account Required** | ❌ No sign-up required | ✅ Email/Password or Google Sign-In |
| **Data Privacy** | 100% In-Browser (IndexedDB) | Encrypted Cloud Database |
| **Max Active Workspaces** | **10 Workspaces** | **50 Workspaces** |
| **Active View Density** | **80 visible nodes** (Soft Warning) | **80 visible nodes** (Soft Warning) |
| **Total Workspace Nodes** | **200 Soft / 250 Hard Cap** | **350 Soft / 400 Hard Cap** |
| **Text Field Character Cap** | **15,000 characters** (~3k words) | **25,000 characters** (~5k words) |
| **Dynamic Port Clamping** | **12 ports / node** | **16 ports / node** |
| **Image Storage Budget** | Browser Storage (~200 KB) | **50 MB** Cloud Storage |
| **Local File Exports** | ✅ .docx, .xlsx, .csv, .md, .pdf, .txt | ✅ .docx, .xlsx, .csv, .md, .pdf, .txt |
| **Google Docs / Sheets Export** | ✅ Supported via Google Drive | ✅ Supported with automatic email login hint |
| **Undo Stack Depth** | 30 Snapshots (Most recent) | 30 Snapshots (Most recent) |

---

## 2. When to Use Local Mode

Local Mode is perfect if you:
- Require absolute data privacy for sensitive enterprise prompts or personal creative work.
- Want to start building instantly without creating an account.
- Are working offline or on unstable network connections.

All local workspaces are saved securely using your browser's IndexedDB engine, ensuring your data persists across browser restarts and tab refreshes.

---

## 3. When to Upgrade to Cloud Mode

Upgrading to a free Cloud Account is recommended if you:
- Need up to **50 active workspaces** for extensive project libraries.
- Want to upload high-resolution reference images (unlocking **50 MB of cloud storage**).
- Build large canvases requiring up to **400 nodes per workspace**.
- Want seamless cross-device synchronization and streamlined **Google Docs / Google Sheets** cloud export.

---

## 4. Email-Primary Authentication & "Continue with Google"

Nodestr provides flexible, friction-free Cloud authentication:
- **Email & Password (Primary)**: Register and sign in directly using your email address and password.
- **"Continue with Google" Social Sign-In**: Sign in or register with a single click using Google Identity Services.
- **Automatic Account Linking**: If you previously created a Nodestr account with your email and password and later click **"Continue with Google"** using the same verified email address, Nodestr automatically links your Google identity to your existing account—preserving all of your projects, workspaces, presets, and media uploads without creating duplicate accounts.
- **Direct Google Drive Export Integration**: Using the Document Exporter Node, you can push compiled documents and tables directly into native **Google Docs** and **Google Sheets** using Google's privacy-safe Drive permissions (which grant access strictly to create new files authored in Nodestr, never reading or accessing your existing personal Drive files).

> [!TIP]
> To protect multi-user privacy on shared devices, logging in or registering smoothly migrates local draft workspaces while keeping user storage keys strictly isolated per account.