syncwork

MADE WHAT U CAN'T

Visit Repo
syncwork banner

About

## The problem it solves

### 🚨 The Problem It Solves

Modern remote collaboration is highly fragmented. Teams constantly jump between **Google Docs** for writing, **Miro or Figma** for wireframing, **Trello or Jira** for project management, and **Google Sheets** for calculations. This fragmentation leads to:

  • **Context Switching Fatigue**: Constant tab-switching disrupts focus and breaks creative flow.
  • **Heavy Performance Overhead**: Keeping multiple heavy collaboration apps open hogs device RAM, drains laptop batteries, and crashes browsers under low bandwidth.
  • **Privacy and Setup Friction**: Most collaborative platforms require tedious registration, email invites, and team onboarding just to spin up a quick, secure workspace.
  • **Data Sync Lag**: Standard real-time servers experience high lag or go to sleep due to inactivity, causing collaborative sessions to desynchronize.

**Sync Suite** solves this by unifying a **Multiplayer Document Editor**, **Infinite Whiteboard**, **Collaborative Kanban Board**, and **High-Performance Spreadsheet Grid** into a single, unified, lightweight web workspace. Built on top of **Yjs CRDTs** and backed by a **24/7 non-sleeping, auto-garbage-collecting backend**, it delivers instant, secure, sub-millisecond collaboration with zero setup.

---

### 💡 What Can People Use It For?

  • **Hackathon & Agile Teams**: Brainstorm app layouts on the sketchpad, drag diagrams directly to the Kanban board as cards, list down features in the document editor, and plan project timelines in the spreadsheet—all under a single private workspace.
  • **Remote Classrooms & Student Groups**: Co-author study guides, sketch complex diagrams during lectures, and track group project milestones collaboratively.
  • **Product Managers & Designers**: Run quick design sprint retrospectives, draft specs, and organize backlog cards in real-time.
  • **Financial & Data Planning**: Instantly spin up a private sheet to crunch formulas (`=SUM()`, `=AVERAGE()`) with teammates without leaking company data.

---

### 🛡️ How It Makes Tasks Easier, Faster, and Safer

  • **Sub-Millisecond Synced Canvas & Grid**: Uses high-performance canvas engines and granular CRDT maps so users experience instant rendering without input lag, even on complex drawings or 300+ Excel formulas.
  • **Zero-Friction Private Rooms**: Users can instantly spin up isolated workspaces via unique 6-character room codes (`?room=CODE`).
  • **Server-Side Room Validation**: Prevents unauthorized or mistaken room entry by validating codes against the live server before redirecting users.
  • **Auto-Garbage Collection (Privacy first)**: The backend automatically monitors active rooms and completely deletes a room's data from server memory the moment the last user closes their tab. This prevents data leaks and saves server bandwidth.
  • **Conflict-Free Multiplayer**: Client IDs are dynamically assigned on launch, preventing synchronization crashes and cursor glitches if a user duplicates tabs or changes usernames.

## Challenges we ran into

### 🧠 Challenges We Ran Into

#### 1. The Luckysheet Collaborative Feedback Loop (Browser Crashing) * **The Hurdle**: Luckysheet is a massive canvas-based spreadsheet grid. When we first wired it up to Yjs, a remote cell update from User A would apply to User B's sheet. However, Luckysheet applies layout updates asynchronously. The state-lock released before the browser finished repainting, causing Luckysheet's event hooks to fire a duplicate "local user edit" back to Yjs. This created an infinite update loop that locked the CPU thread and crashed browser tabs instantly. * **How We Solved It**: We engineered a double-layer safety shield: 1. **Deep Comparators**: We added a serialization check (`JSON.stringify(cellObj) === JSON.stringify(yVal)`). If the incoming value is identical to the Yjs state, we reject the update and break the cascade. 2. **Asynchronous Lock Deferral**: We wrapped the lock release in a `setTimeout(..., 50)`. This defers releasing the update block until the browser has completely drained Luckysheet's internal layout repainting tasks.

---

#### 2. Canvas Viewport Clipping & Browser Zoom Interception * **The Hurdle**: The sketchpad requires panning and zoom. In fullscreen mode, the HTML5 canvas would clip or stretch because standard CSS overrides locked its dimensions. Furthermore, when users tried to pinch-to-zoom on their trackpads, it triggered the default browser-level page zoom instead of scaling the whiteboard sketch. * **How We Solved It**: 1. We resolved viewport clipping by programmatically querying the bounding box of the canvas's parent wrapper element (`getBoundingClientRect()`) and updating the canvas's internal resolution dynamically on window resize. 2. We intercepted and prevented default browser zooming by listening to the `wheel` event with passive mode disabled (`{ passive: false }`) and calling `event.preventDefault()` whenever the `ctrlKey` was detected (which indicates a trackpad pinch zoom).

---

#### 3. "Ghost Rooms" Memory Leaks on the Server * **The Hurdle**: By default, the `y-websocket` library caches documents in the server's memory indefinitely. During a hackathon with many rooms being generated, empty/abandoned room objects would sit in the server's RAM forever, leaking memory and leaving old rooms queryable even when empty. * **How We Solved It**: We implemented a garbage collection hook inside the Node backend (`server.js`). By listening to the WebSocket `close` event, we check if the room's connection count has dropped to `0`. If it has, the server immediately purges the room from memory (`docs.delete(roomName)`). This instantly invalidates old codes and frees up server RAM.

Screenshots

syncwork screenshot 1syncwork screenshot 2syncwork screenshot 3syncwork screenshot 4

Team

From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.