|
| 1 | +--- |
| 2 | +import Layout from '../../layouts/Layout.astro'; |
| 3 | +import StatusPill from '../../components/StatusPill.astro'; |
| 4 | +import { sitePath } from '../../lib/siteUrl'; |
| 5 | +--- |
| 6 | + |
| 7 | +<Layout |
| 8 | + title="Real-Time Collaboration" |
| 9 | + description="Edit Varve documents together over a room you control: live cursors, cursor chat, spotlight follow, and undo that only reverses your own edits. App-hosted on your machine or self-hosted on your own server." |
| 10 | +> |
| 11 | + <div class="container-custom"> |
| 12 | + <main class="collab-page"> |
| 13 | + <nav class="breadcrumb" aria-label="Breadcrumb"> |
| 14 | + <a href={sitePath('/features')}>Features</a> / Real-Time Collaboration |
| 15 | + </nav> |
| 16 | + |
| 17 | + <header class="page-hero"> |
| 18 | + <StatusPill status="beta" /> |
| 19 | + <h1>Edit together, on a room you control.</h1> |
| 20 | + <p> |
| 21 | + Share a Varve document from the desktop app or your own room server. |
| 22 | + Changes replicate live; cursors, selections, and cursor chat show |
| 23 | + who is working where; and undo reverses only your own edits — never |
| 24 | + a collaborator's work. Your document stays local-first: joining a |
| 25 | + session never touches the file on your disk. |
| 26 | + </p> |
| 27 | + </header> |
| 28 | + |
| 29 | + <section class="collab-model site-card site-card--surface" aria-labelledby="collab-model-title"> |
| 30 | + <h2 id="collab-model-title">Ordered semantic operations, not a merge lottery.</h2> |
| 31 | + <p> |
| 32 | + Every committed edit travels as a validated, property-level change |
| 33 | + list — the same semantic capture Varve's history records. The room |
| 34 | + host orders operations; every participant applies the same sequence, |
| 35 | + so documents converge without last-write-wins whole-document |
| 36 | + overwrites. A change that fails validation resynchronizes visibly |
| 37 | + instead of silently dropping. |
| 38 | + </p> |
| 39 | + </section> |
| 40 | + |
| 41 | + <section class="collab-pillars" aria-label="Collaboration capabilities"> |
| 42 | + <div class="collab-pillar site-card"> |
| 43 | + <h3>Undo that respects the room</h3> |
| 44 | + <p> |
| 45 | + In a shared session, undo reverses only what <em>you</em> did. |
| 46 | + If a teammate changed something after you, your undo skips it and |
| 47 | + says why instead of clobbering their work. Deleting restores from |
| 48 | + your own history; undoing a creation keeps the object if someone |
| 49 | + else has already built on it. |
| 50 | + </p> |
| 51 | + </div> |
| 52 | + <div class="collab-pillar site-card"> |
| 53 | + <h3>Presence that stays out of the way</h3> |
| 54 | + <p> |
| 55 | + Live cursors, remote selection outlines, and participant avatars |
| 56 | + are ephemeral by construction — they never enter your document, |
| 57 | + your history, or your saved files. Cursor chat opens with |
| 58 | + <kbd>/</kbd>, expires in seconds, and is never persisted anywhere. |
| 59 | + </p> |
| 60 | + </div> |
| 61 | + <div class="collab-pillar site-card"> |
| 62 | + <h3>Spotlight, with consent</h3> |
| 63 | + <p> |
| 64 | + Spotlight your view to walk teammates through the canvas. |
| 65 | + Following is opt-in per person and any local camera interaction |
| 66 | + cancels it — nobody's viewport moves without their own say-so. |
| 67 | + </p> |
| 68 | + </div> |
| 69 | + </section> |
| 70 | + |
| 71 | + <section class="collab-hosting site-card site-card--surface" aria-labelledby="collab-hosting-title"> |
| 72 | + <h2 id="collab-hosting-title">Two hosting paths, one open implementation.</h2> |
| 73 | + <dl class="collab-hosting__paths"> |
| 74 | + <div> |
| 75 | + <dt>Host on this device</dt> |
| 76 | + <dd> |
| 77 | + The desktop app runs a room server in-process on your machine. |
| 78 | + Sessions are reachable from other apps and browser tabs on the |
| 79 | + same computer — enough for pairing, review, and working across |
| 80 | + a browser and the desktop. |
| 81 | + </dd> |
| 82 | + </div> |
| 83 | + <div> |
| 84 | + <dt>Self-host a room server</dt> |
| 85 | + <dd> |
| 86 | + Run the standalone room server (a single binary with durable |
| 87 | + storage) wherever you like and point Varve at it. You own the |
| 88 | + data, the retention, and the network; TLS terminates at your |
| 89 | + reverse proxy. No Varve-operated service sits in the middle. |
| 90 | + </dd> |
| 91 | + </div> |
| 92 | + </dl> |
| 93 | + <p class="collab-hosting__note"> |
| 94 | + Honest boundaries: cross-machine sessions need a server you can |
| 95 | + reach (LAN or internet with your own TLS), the host cannot read |
| 96 | + your documents without a room you created, and collaboration is |
| 97 | + not end-to-end encrypted — the room server stores documents in |
| 98 | + plaintext by design. |
| 99 | + </p> |
| 100 | + </section> |
| 101 | + |
| 102 | + <section class="collab-ctas" aria-label="Learn more"> |
| 103 | + <a class="site-card" href={sitePath('/features/local-first')}> |
| 104 | + <h3>Why local-first matters</h3> |
| 105 | + <p>Your file is the authority; a session is replication, not a takeover.</p> |
| 106 | + </a> |
| 107 | + </section> |
| 108 | + </main> |
| 109 | + </div> |
| 110 | +</Layout> |
| 111 | + |
| 112 | +<style> |
| 113 | + .collab-page { |
| 114 | + display: flex; |
| 115 | + flex-direction: column; |
| 116 | + gap: var(--space-6, 32px); |
| 117 | + padding-block-end: var(--space-8, 48px); |
| 118 | + } |
| 119 | + |
| 120 | + .collab-model p, |
| 121 | + .collab-pillar p, |
| 122 | + .collab-hosting p { |
| 123 | + max-width: 68ch; |
| 124 | + } |
| 125 | + |
| 126 | + .collab-pillars { |
| 127 | + display: grid; |
| 128 | + grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); |
| 129 | + gap: var(--space-4, 16px); |
| 130 | + } |
| 131 | + |
| 132 | + .collab-pillar h3 { |
| 133 | + margin-block: 0 var(--space-2, 8px); |
| 134 | + } |
| 135 | + |
| 136 | + .collab-hosting__paths { |
| 137 | + display: grid; |
| 138 | + grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); |
| 139 | + gap: var(--space-4, 16px); |
| 140 | + margin: 0 0 var(--space-3, 12px); |
| 141 | + } |
| 142 | + |
| 143 | + .collab-hosting__paths dt { |
| 144 | + font-weight: 600; |
| 145 | + margin-block-end: var(--space-1, 4px); |
| 146 | + } |
| 147 | + |
| 148 | + .collab-hosting__paths dd { |
| 149 | + margin: 0; |
| 150 | + } |
| 151 | + |
| 152 | + .collab-hosting__note { |
| 153 | + color: var(--color-text-muted); |
| 154 | + } |
| 155 | + |
| 156 | + .collab-ctas a { |
| 157 | + display: block; |
| 158 | + padding: var(--space-4, 16px); |
| 159 | + } |
| 160 | + |
| 161 | + .collab-ctas h3 { |
| 162 | + margin-block: 0 var(--space-1, 4px); |
| 163 | + } |
| 164 | + |
| 165 | + .collab-ctas p { |
| 166 | + margin: 0; |
| 167 | + color: var(--color-text-muted); |
| 168 | + } |
| 169 | + |
| 170 | + kbd { |
| 171 | + border: 1px solid var(--color-border-strong); |
| 172 | + border-radius: var(--radius-control-compact); |
| 173 | + padding: 0 0.35em; |
| 174 | + font-family: var(--font-mono, monospace); |
| 175 | + font-size: 0.85em; |
| 176 | + } |
| 177 | +</style> |
0 commit comments